Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning #82

Open
thomasahle opened this issue May 25, 2023 · 0 comments
Open

Deprecation warning #82

thomasahle opened this issue May 25, 2023 · 0 comments

Comments

@thomasahle
Copy link

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);
      |   ^~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant