-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't change device if input_data is given (#236)
* Only change device if no input-data is given * Add .out-file for test_device_parallelism * Move test_device_parallelism to gpu_test.py * Assert devices unchanged * Move input_data to device if it is given by user * Fix small issues: 1. Move logic for setting device in `process_input` into `set_device` if `input_data` is given 2. Replace exception that is likely never raised with assertion (also in `process_input`) * Remove unnecessary comment
- Loading branch information
Showing
4 changed files
with
78 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
========================================================================================== | ||
Layer (type:depth-idx) Output Shape Param # | ||
========================================================================================== | ||
MultiDeviceModel [5] -- | ||
├─Linear: 1-1 [10] 110 | ||
├─ReLU: 1-2 [10] -- | ||
├─Linear: 1-3 [5] 55 | ||
========================================================================================== | ||
Total params: 165 | ||
Trainable params: 165 | ||
Non-trainable params: 0 | ||
Total mult-adds (M): 0.00 | ||
========================================================================================== | ||
Input size (MB): 0.00 | ||
Forward/backward pass size (MB): 0.00 | ||
Params size (MB): 0.00 | ||
Estimated Total Size (MB): 0.00 | ||
========================================================================================== |
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