-
Notifications
You must be signed in to change notification settings - Fork 511
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 (#1816)
Summary: Pull Request resolved: #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. Reviewed By: sryap Differential Revision: D46585543 fbshipit-source-id: a1d4e792e61c15c71bb36d47a574d2c052e0a02f
- Loading branch information
1 parent
d1c4a6f
commit 3d249b3
Showing
2 changed files
with
66 additions
and
136 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