mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
added single node distdataparallel
This commit is contained in:
@@ -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)])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user