Khawar_Islam:

encoder = network.EncoderCell().cuda()
binarizer = network.Binarizer().cuda()
decoder = network.DecoderCell().cuda()



you can encapsulate network.EncoderCell,  network.Binarizer, network.DecoderCell in a single nn.Module class and then use nn.Dataparallel on that class.
Make sure your script has access to multiple GPUs by torch.cuda.device_count().