forked from pytorch/torchrec
-
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.
fix missing device in fake operator (pytorch#2203)
Summary: Pull Request resolved: pytorch#2203 # context * when we have the input tensors on the meta device, it calls the fake operator * however the device information is unintentionally missed so the output tensor is on the default device (cpu) * this is an incorrect behavior Reviewed By: gnahzg, iamzainhuda Differential Revision: D57077813 fbshipit-source-id: a3c1fa8c044e677265bcf8dcd8be38cc5ea696cb
- Loading branch information
1 parent
144fba9
commit 7186507
Showing
2 changed files
with
28 additions
and
4 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