-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically get device from first model parameter if
device
param…
…eter to `summary` is `None` (#211) * introduce `get_device` to torchinfo.py - use it to determine device if no device is given to summary - Automatically determines device of model so that it does not have to be moved in case of multi-GPU-setup. - shoud fix [issue #209](#209). Test to check that to be written on different device. This commit is to set up the functionality without breaking old tests. * add tests for multi-gpu to gpu_test.py
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
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