Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torch_xla/distributed/parallel_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def per_device_loader(self, device):
return PerDeviceLoader(self, torch.device(device))

def per_device_samples(self):
return len(self._loader) // len(self._devices)
return len(self._cpu_loader) // len(self._devices)

def next_item(self, device):
dqueue = self._queues[device]
Expand Down