mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 19:14:37 +08:00
fix iterable dataset (issue 9899) (#9952)
This commit is contained in:
@@ -140,7 +140,7 @@ class DistributedTorchRunner(TorchRunner):
|
||||
if self.add_dist_sampler:
|
||||
self.train_loader = with_sampler(self.train_loader)
|
||||
|
||||
if self.validation_loader and should_wrap_dataloader(
|
||||
if self.validation_loader is not None and should_wrap_dataloader(
|
||||
self.validation_loader):
|
||||
if self.add_dist_sampler:
|
||||
self.validation_loader = with_sampler(self.validation_loader)
|
||||
|
||||
Reference in New Issue
Block a user