I want to get the data of a tensor, and ld throw an error while using ATen library:
Undefined symbols for architecture x86_64: "long* at::Tensor::data<long>() const"
However, Tensor::data<int64_t>
, Tensor::data<int>
and Tensor::data<long long>
work well. Does anyone know why the fundamental type long
failed?
Environment:
- MacOS 10.14.2
- clang 4.2.1
- torch 0.4.0 (installed by pip3.6)
- c++ 17