I am trying to install pytorch on a Mac Pro with the following specs:
OS: 10.11
Python: 2.7
Cuda: 8.0.61
Apple LLVM version 7.0.2
I seem to have followed all the steps mentioned at https://github.com/pytorch/pytorch
and tried some of the recommendations given in several posts in this forum.
However, I am currently stuck with this error and can’t find a way out. Any help would be highly appreciated
In file included from /Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/CPUByteTensor.cpp:1:
In file included from /Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/CPUByteTensor.h:11:
In file included from /Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/TensorMethods.h:4:
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:16:14: error:
call to constructor of 'at::Scalar' is ambiguous
Scalar() : Scalar(0L) {}
^ ~~
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
AT_FORALL_SCALAR_TYPES(DEFINE_IMPLICIT_CTOR)
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:18:35: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
#define AT_FORALL_SCALAR_TYPES(_) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:19:19: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(uint8_t,Byte,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:20:18: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(int8_t,Char,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:21:20: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(double,Double,d) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:22:18: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(float,Float,d) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:23:14: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(int,Int,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:24:19: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(int64_t,Long,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:14:7: note:
candidate is the implicit move constructor
class Scalar {
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:14:7: note:
candidate is the implicit copy constructor
In file included from /Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/CPUCharTensor.cpp:1:
In file included from /Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/CPUCharTensor.h:11:
In file included from /Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/TensorMethods.h:4:
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:16:14: error:
call to constructor of 'at::Scalar' is ambiguous
Scalar() : Scalar(0L) {}
^ ~~
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
AT_FORALL_SCALAR_TYPES(DEFINE_IMPLICIT_CTOR)
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:18:35: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
#define AT_FORALL_SCALAR_TYPES(_) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:19:19: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(uint8_t,Byte,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:20:18: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(int8_t,Char,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:21:20: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(double,Double,d) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
1 error generated.
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:22:18: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(float,Float,d) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:23:14: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(int,Int,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:28:26: note:
candidate constructor
/Users/Ashis/Documents/Github/pytorch/torch/lib/build/ATen/ATen/Type.h:24:19: note:
expanded from macro 'AT_FORALL_SCALAR_TYPES'
_(int64_t,Long,i) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:23:3: note:
expanded from macro 'DEFINE_IMPLICIT_CTOR'
Scalar(type vv) \
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:14:7: note:
candidate is the implicit move constructor
class Scalar {
^
/Users/Ashis/Documents/Github/pytorch/torch/lib/ATen/../ATen/Scalar.h:14:7: note:
candidate is the implicit copy constructor
1 error generated.
make[2]: *** [CMakeFiles/ATen.dir/ATen/CPUByteStorage.cpp.o] Error 1
make[2]: *** [CMakeFiles/ATen.dir/ATen/CPUCharStorage.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/ATen.dir/ATen/CPUByteTensor.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/ATen.dir/ATen/CPUCharTensor.cpp.o] Error 1
1 error generated.
1 error generated.
make[2]: *** [CMakeFiles/ATen.dir/ATen/CPUByteType.cpp.o] Error 1
make[2]: *** [CMakeFiles/ATen.dir/ATen/CPUCharType.cpp.o] Error 1
make[1]: *** [CMakeFiles/ATen.dir/all] Error 2
make: *** [all] Error 2