added single node distdataparallel
This commit is contained in:
parent
32eddf492e
commit
23137ea08a
|
@ -28,6 +28,7 @@ class LightningDataParallel(DataParallel):
|
|||
"""
|
||||
|
||||
def parallel_apply(self, replicas, inputs, kwargs):
|
||||
print('parallel_apply called')
|
||||
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue