Skip to content

Commit 97dd0df

Browse files
committed
Trying a better way of getting length
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 83e0ae6 commit 97dd0df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

monai/engines/workflow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
from __future__ import annotations
1313

1414
import warnings
15-
from collections.abc import Callable, Iterable, Sequence
15+
from collections.abc import Callable, Iterable, Sequence, Sized
1616
from typing import TYPE_CHECKING, Any
17-
from collections.abc import Sized
1817

1918
import torch
2019
import torch.distributed as dist

0 commit comments

Comments
 (0)