Skip to content

Commit f2a21ad

Browse files
committed
Add note about update
1 parent 09eaca3 commit f2a21ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytorch_lightning/overrides/data_parallel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def parallel_apply(self, replicas, inputs, kwargs):
164164
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
165165

166166
def forward(self, *inputs, **kwargs): # pragma: no-cover
167+
# TODO: Update uneven inputs code path when PyTorch 1.8 is released.
167168
if DDP_JOIN_AND_REBUILD_BUCKETS_AVAILABLE and self.ddp_join_enabled:
168169
ones = torch.ones(
169170
1, device=self.device

0 commit comments

Comments
 (0)