Instead of creating two models, you can create just one model like this. Then you can simply warp the model with nn.DataParallel.
Instead of creating two models, you can create just one model like this. Then you can simply warp the model with nn.DataParallel.