forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed segfault when trying to permute empty tensor (pytorch#116335)
Fixes pytorch#116325. Fixed unchecked access to first element of `dims` when permuting an empty tensor. Added test to prevent regressions. Pull Request resolved: pytorch#116335 Approved by: https://github.com/Skylion007
- Loading branch information
1 parent
015bd0e
commit 3a4fe83
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters