Add to device here
zihaoz96 opened this issue · comments
ZihaoZHENG commented
Labrak Yanis commented
RuntimeError: module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cpu
Labrak Yanis commented
The issue is related to the DataParallel
layer at the end of the initialization block for the TorchVision models. Thus, we need to remove the layer to make it working on CPU devices.
Note: Will be merged in the version 0.72
Code edited:
Sources:
Labrak Yanis commented
Close with the push: 8529361