Skip to content

ATen is out of date #8

Description

@samhodge

I am getting:

4 errors generated.
make[2]: *** [src/ATen/CMakeFiles/ATen.dir/ATen/CPUByteType.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/Volumes/Hodge/dev/pytorch-cpp/ATen/build/src/ATen/ATen/CPUCharType.cpp:1913:12: error: conversion from
'long' to 'at::Scalar' is ambiguous
return THCharTensor_sumall(self_->tensor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
AT_FORALL_SCALAR_TYPES(DEFINE_IMPLICIT_CTOR)
^
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/build/src/ATen/ATen/CPUCharType.cpp:1947:12: error: conversion from
'long' to 'at::Scalar' is ambiguous
return THCharTensor_prodall(self_->tensor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
AT_FORALL_SCALAR_TYPES(DEFINE_IMPLICIT_CTOR)
^
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/build/src/ATen/ATen/CPUCharType.cpp:2002:12: error: conversion from
'long' to 'at::Scalar' is ambiguous
return THCharTensor_trace(self_->tensor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
AT_FORALL_SCALAR_TYPES(DEFINE_IMPLICIT_CTOR)
^
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/build/src/ATen/ATen/CPUCharType.cpp:2534:12: error: conversion from
'long' to 'at::Scalar' is ambiguous
return THCharTensor_dot(self_->tensor, tensor_->tensor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
AT_FORALL_SCALAR_TYPES(DEFINE_IMPLICIT_CTOR)
^
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
/Volumes/Hodge/dev/pytorch-cpp/ATen/src/ATen/../ATen/Scalar.h:25:26: note: candidate constructor
4 errors generated.

I will test to see if that is fixed on the ATen master.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions