-
Notifications
You must be signed in to change notification settings - Fork 515
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: 65bf589faa4034804f895eada4352af6e6d8a1a4
- Loading branch information
1 parent
d1c4a6f
commit 1476a20
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