Closed edpizzi closed 2 years ago
This pull request was exported from Phabricator. Differential Revision: D31070769
This pull request was exported from Phabricator. Differential Revision: D31070769
This pull request was exported from Phabricator. Differential Revision: D31070769
This pull request has been merged in facebookresearch/ClassyVision@659d7f788c941a8c0d08dd74e198b66bd8afa7f5.
Summary: Use
Tensor.to(...)
to move a tensor to the desired device and dtype instead of usingtorch.tensor(...)
. The current approach generates warnings like the following:Differential Revision: D31070769