Deprecation warning
thomasahle opened this issue · 0 comments
thomasahle commented
I'm running the jit.py
file using
torch==2.0.1
and cuda 11.7
.
It seems that tensor.type has been deprecated, so I'm getting a lot of warnings like this:
/lltm_cuda.cpp:28:40: 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]
28 | #define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/thomas/repos/lowrank-cuda/lltm_cuda.cpp:30:24: note: in expansion of macro ‘CHECK_CUDA’
30 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/thomas/repos/lowrank-cuda/lltm_cuda.cpp:41:3: note: in expansion of macro ‘CHECK_INPUT’
41 | CHECK_INPUT(old_h);
| ^~~~~~~~~~~