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.
Make sure fake tensor functions return on proper device (pytorch#3258)
Summary: Pull Request resolved: pytorch#3258 X-link: facebookresearch/FBGEMM#359 I didnt realize that the device of faketensors matters in abstract functions, but torch.compile will check it in some cases. This small diff adds proper device placement to all fbgemm abstract operators. Reviewed By: jiawenliu64 Differential Revision: D64667681 fbshipit-source-id: 79b36af21cf8ad867d52beeb59f137368f0a48da
- Loading branch information
1 parent
f728c94
commit 0c13ab9
Showing
1 changed file
with
16 additions
and
6 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