Skip to content

Commit d1f4e6f

Browse files
authored
fix comprehension error (#1995)
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
1 parent b4d8780 commit d1f4e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/networks/nets/efficientnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def _calculate_output_image_size(input_image_size: List[int], stride: Union[int,
768768

769769
# checks to extract integer stride in case tuple was received
770770
if isinstance(stride, tuple):
771-
all_strides_equal = all([stride[0] == s for s in stride])
771+
all_strides_equal = all(stride[0] == s for s in stride)
772772
if not all_strides_equal:
773773
raise ValueError("unequal strides are not possible, got {}".format(stride))
774774

0 commit comments

Comments
 (0)