Skip to content

Commit

Permalink
parallel_loader: fix AttributeError (#8314) (#8315)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuiaws authored Oct 25, 2024
1 parent 699daf2 commit 15aefe4
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
@@ -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]

0 comments on commit 15aefe4

Please sign in to comment.