We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d2f57e commit b1db08bCopy full SHA for b1db08b
monai/engines/workflow.py
@@ -127,7 +127,7 @@ def __init__(
127
sampler = getattr(data_loader, "sampler", None)
128
129
# set the epoch value for DistributedSampler objects when an epoch starts
130
- if isinstance(sampler, DistributedSampler):
+ if isinstance(sampler, DistributedSampler):
131
@self.on(Events.EPOCH_STARTED)
132
def set_sampler_epoch(engine: Engine) -> None:
133
sampler.set_epoch(engine.state.epoch)
0 commit comments