added single node distdataparallel

This commit is contained in:
William Falcon 2019-07-03 16:38:03 -04:00
parent 32eddf492e
commit 23137ea08a
1 changed files with 1 additions and 0 deletions

View File

@ -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)])