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
The latest pytorch nightly has removed torch.testing.assert_allclose #1981
Comments
I actually authored the mitigation code in the kornia/kornia/testing/__init__.py Line 235 in a79fbcb
Change this to from torch.testing._comparison import default_tolerances and you should be good again. |
@pmeier do you think is safe to remove the try/catch block ? apparently this gives us also some headaches with mypy |
It will be after you bump the minimum dependency to Lines 38 to 40 in b9f26e0
|
@ducha-aiki @shijianjian opinions here? |
Describe the bug
The latest PyTorch nightly has removed
torch.testing.assert_allclose
:pytorch/pytorch#87974
Kornia needs to update this code: https://github.com/kornia/kornia/blob/master/kornia/testing/__init__.py#L271
Reproduction steps
Expected behavior
successful return
Environment
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py
conda
,pip
, source):The text was updated successfully, but these errors were encountered: