DataParallel doesn't work when calling model.module.some_attribute

Hi, I met the same problem and want to use multi gpus even with model.module.predict, predict is a part defined in the model class. So, could you tell me the simple way you @gollum found? Thanks!

1 Like