You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have met several problems during compiling and find out corresponding solutions to share with everyone.
warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
25 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
The error is localized in line 25 of bvh.cpp: #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
Probably because of the torch version, x.type().is_cuda() is no longer available. (My version of pytorch is 2.2.0)
Just change it to x.is_cuda(), then i compiled it successfully.
The text was updated successfully, but these errors were encountered:
I have met several problems during compiling and find out corresponding solutions to share with everyone.
The error is localized in line 25 of bvh.cpp:
#define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
Probably because of the torch version,
x.type().is_cuda()
is no longer available. (My version of pytorch is 2.2.0)Just change it to
x.is_cuda()
, then i compiled it successfully.The text was updated successfully, but these errors were encountered: