Skip to content

Commit

Permalink
Add _unsafe_view to list
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanYashchuk committed Sep 22, 2022
1 parent 254161d commit 79c18da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch/_prims/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def _is_view_or_reshape(self, func):
or "torch.view_copy" == torch.overrides.resolve_name(func)
or "torch.reshape" == torch.overrides.resolve_name(func)
or func == torch.ops.aten.view.default
or func == torch.ops.aten._unsafe_view.default
)

def __torch_function__(
Expand Down

0 comments on commit 79c18da

Please sign in to comment.