-
- Downloads
Move criterion to selected device
As the criterion is not part of the model but instead a hyperparameter due to the use of configuration files, it is not moved to the GPU if selected as a device. We therefore manually move the criterion to the proper device, which is bad practice when using lightning but works.
parent
e26fe458
No related branches found
No related tags found
Checking pipeline status
Showing
- src/ptbench/models/alexnet.py 7 additions, 0 deletionssrc/ptbench/models/alexnet.py
- src/ptbench/models/densenet.py 7 additions, 0 deletionssrc/ptbench/models/densenet.py
- src/ptbench/models/densenet_rs.py 7 additions, 0 deletionssrc/ptbench/models/densenet_rs.py
- src/ptbench/models/logistic_regression.py 7 additions, 0 deletionssrc/ptbench/models/logistic_regression.py
- src/ptbench/models/pasa.py 9 additions, 2 deletionssrc/ptbench/models/pasa.py
- src/ptbench/models/signs_to_tb.py 7 additions, 0 deletionssrc/ptbench/models/signs_to_tb.py
Loading
Please register or sign in to comment