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

Tests: Fix norm incompatibility >= torch 1.12.0 #155

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

chr5tphr
Copy link
Owner

  • from torch version 1.12.0, torch.linalg.norm only supports the norm
    over at most 2 dimensions
  • this caused test_integrated_gradients_path to fail, as it uses the
    norm over more than 2 dimensions
  • fix this by implementing the norm manually

@chr5tphr chr5tphr marked this pull request as ready for review July 14, 2022 12:19
@chr5tphr chr5tphr changed the title Tests: Fix norm incompatibility > torch 1.12.0 Tests: Fix norm incompatibility >= torch 1.12.0 Jul 14, 2022
- from torch version 1.12.0, torch.linalg.norm only supports the norm
  over at most 2 dimensions
- this caused test_integrated_gradients_path to fail, as it uses the
  norm over more than 2 dimensions
- fix this by implementing the norm manually
@chr5tphr chr5tphr merged commit 7380555 into master Jul 14, 2022
@chr5tphr chr5tphr deleted the tests-fix-torch-norm branch July 14, 2022 12:38
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.

None yet

1 participant