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.
Make sure session_ids Tensor on the same device as model output (pyto…
…rch#2274) Summary: Pull Request resolved: pytorch#2274 in order to support running NDCGMetric (https://fburl.com/code/c25larm3) on gpu, `session_ids_to_tensor` should create Tensor on the same device as model outputs (labels). Reviewed By: joshuadeng Differential Revision: D60800906 fbshipit-source-id: 754d3d987e7ac59b9d6aef64a94b6a2d259c06aa
- Loading branch information
1 parent
d50d319
commit 07dd9b9
Showing
2 changed files
with
41 additions
and
5 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