Hi,
I like to use a pre-trained model in pytorch. Although I changed the device type to ‘cpu’, I still get the following error:
“RuntimeError: module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cpu”
The model is originally saved  with DataParallel.
I change the device of both data and model to ‘cpu’.