Skip to content

Switch to torch.linalg.norm - #3984

Merged
loadams merged 2 commits into
masterfrom
loadams/torch-norm
Jul 18, 2023
Merged

loadams merged 2 commits into
masterfrom
loadams/torch-norm

Conversation

@loadams

@loadams loadams commented Jul 18, 2023 •

Copy link
Copy Markdown
Collaborator

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