forked from AdaptiveMotorControlLab/CEBRA
-
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.
Improve device support and add support for Apple Silicon chipset (`mp…
…s`) (AdaptiveMotorControlLab#34) * add to() method to move cebra models (sklearn API) from devices * better name of test * assign self.device_ if it exists only * modify check_device() to allow GPU id specification * adapt test given the possibility of specifying GPU ids * add support for mps device * add mps to _set_device() in io * add mps logic when cuda_if_available + fix test for torch versions < 1.12 * fix test when cuda is not available * fix test when pytorch < 1.12
- Loading branch information
Showing
5 changed files
with
345 additions
and
21 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
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
Oops, something went wrong.