Skip to content

Commit

Permalink
[cherry-pick] R2.5.1 cherry pick #8315 (#8317)
Browse files Browse the repository at this point in the history
Co-authored-by: mcuiaws <mikecui@amazon.com>
  • Loading branch information
ManfeiBai and mcuiaws authored Oct 25, 2024
1 parent 9b87f40 commit eafb094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_xla/distributed/parallel_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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

0 comments on commit eafb094

Please sign in to comment.