-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add SetFitModel.to * Add docstring for 'to' to clarify that we don't copy Note that this does mean that we differ from e.g. torch, which creates a moved copy rather than moving the e.g. tensor itself to a different device. * Add tests for 'to'. If CUDA is available, then try to move a model from the CPU to the GPU and back to the CPU. * Reformat test_modeling Co-authored-by: Tom Aarsen <Cubiegamedev@gmail.com> Co-authored-by: Jegor Kitškerkin <jegor.kitskerkin@gmail.com>
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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