Skip to content

Commit 6c98f21

Browse files
committed
Merger fix
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 8eca43a commit 6c98f21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

monai/inferers/merger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def __init__(
5353
cropped_shape: Sequence[int] | None = None,
5454
device: torch.device | str | None = None,
5555
) -> None:
56+
if merged_shape is None:
57+
raise ValueError("Argument `merged_shape` must be provided")
58+
5659
self.merged_shape: tuple[int, ...] = tuple(merged_shape)
5760
self.cropped_shape: tuple[int, ...] = tuple(self.merged_shape if cropped_shape is None else cropped_shape)
5861
self.device = device

0 commit comments

Comments
 (0)