forked from pytorch/FBGEMM
-
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.
Refactor based on recent torch tensor view support (pytorch#1816)
Summary: Pull Request resolved: pytorch#1816 torch.view recently added reinterpret_cast dtype support: https://pytorch.org/docs/stable/generated/torch.Tensor.view.html Previously we have to rely on numpy, which introduces the extra H2D/D2H overhead. Differential Revision: D46585543 fbshipit-source-id: af3ddbf46559f6ff736c4158c2ba3b8f269601bc
- Loading branch information
1 parent
d1c4a6f
commit 4dc54f2
Showing
2 changed files
with
65 additions
and
137 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