-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nets now can be loaded even if device=None (#876)
In #600, we introduced the option to set device=None, which means that skorch should not move any data to any device. However, this setting introduced a bug when trying to load the net, as that code didn't explicitly deal with device=None. With this PR, the bug is fixed. Implementation If device=None, we really have no way of knowing what device to map the parameters to. The most reasonable thing to do is to use the fallback, which is 'cpu'.
- Loading branch information
1 parent
eecf94f
commit ef23ce4
Showing
3 changed files
with
26 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
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