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

Switch to torch.linalg.norm #3984

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Switch to torch.linalg.norm #3984

merged 2 commits into from
Jul 18, 2023

Conversation

loadams
Copy link
Collaborator

@loadams loadams commented Jul 18, 2023

See linked issue, but torch.norm is deprecated, so this switches to torch.linalg.norm and renamed changed parameters.

torch.linalg.norm was added in torch 1.7.0.

Function signature changes:

torch.norm(input, p='fro', dim=None, keepdim=False, out=None, dtype=None)
torch.linalg.norm(A, ord=None, dim=None, keepdim=False, *, out=None, dtype=None)

@loadams loadams enabled auto-merge July 18, 2023 21:39
@loadams loadams added this pull request to the merge queue Jul 18, 2023
Merged via the queue into master with commit a655d7d Jul 18, 2023
@loadams loadams deleted the loadams/torch-norm branch February 28, 2024 18:15
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.

[BUG] Usage of deprecated torch.norm
2 participants