forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend __new__ on subclasses to set custom_device and custom_strides
Pull Request resolved: pytorch#77970 Approved by: https://github.com/Chillee
- Loading branch information
1 parent
678213e
commit 98e0816
Showing
5 changed files
with
19 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import torch | ||
|
||
from torch._subclasses.base_tensor import BaseTensor | ||
from torch._subclasses.fake_tensor import FakeTensor, _device_not_kwarg_ops | ||
|
||
__all__ = [ | ||
"BaseTensor", | ||
"FakeTensor", | ||
"_device_not_kwarg_ops", | ||
] |
This file was deleted.
Oops, something went wrong.
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