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

Update tensor.py #1530

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Update tensor.py #1530

merged 3 commits into from
Oct 30, 2023

Conversation

supercgor
Copy link
Contributor

After torch=2.1.0, set_default_tensor_dtype is deprecated and it will give a warning, so use the way they recommended.

/home/supercgor/.conda/envs/ras/lib/python3.10/site-packages/torch/__init__.py:614: UserWarning: torch.set_default_tensor_type() is deprecated as of PyTorch 2.1, please use torch.set_default_dtype() and torch.set_default_device() as alternatives. (Triggered internally at /opt/conda/conda-bld/pytorch_1695392067780/work/torch/csrc/tensor/python_tensor.cpp:451.) _C._set_default_tensor_type(t)

After torch=2.1.0, set_default_tensor_dtype is deprecated and it will give a warning, so use the way they recommended.

`
/home/supercgor/.conda/envs/ras/lib/python3.10/site-packages/torch/__init__.py:614: UserWarning: torch.set_default_tensor_type() is deprecated as of PyTorch 2.1, please use torch.set_default_dtype() and torch.set_default_device() as alternatives. (Triggered internally at /opt/conda/conda-bld/pytorch_1695392067780/work/torch/csrc/tensor/python_tensor.cpp:451.)
  _C._set_default_tensor_type(t)
`
@lululxvi lululxvi merged commit f0d3abe into lululxvi:master Oct 30, 2023
14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants