Skip to content

Commit b1db08b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1d2f57e commit b1db08b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/engines/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(
127127
sampler = getattr(data_loader, "sampler", None)
128128

129129
# set the epoch value for DistributedSampler objects when an epoch starts
130-
if isinstance(sampler, DistributedSampler):
130+
if isinstance(sampler, DistributedSampler):
131131
@self.on(Events.EPOCH_STARTED)
132132
def set_sampler_epoch(engine: Engine) -> None:
133133
sampler.set_epoch(engine.state.epoch)

0 commit comments

Comments
 (0)