Skip to content

Commit 9c2881b

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

monai/inferers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def sliding_window_inference(
6060
*args: Any,
6161
**kwargs: Any,
6262
) -> torch.Tensor | tuple[torch.Tensor, ...] | dict[Any, torch.Tensor]:
63-
63+
6464
"""
6565
Sliding window inference on `inputs` with `predictor`.
6666

monai/metrics/meandice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor
139139
y_pred = y_pred.permute(0, 4, 1, 2, 3).contiguous()
140140
if isinstance(y, torch.Tensor) and y.ndim == 5 and y.shape[-1] in (1, 3, 4):
141141
y = y.permute(0, 4, 1, 2, 3).contiguous()
142-
142+
143143
dims = y_pred.ndimension()
144144
if dims < 3:
145145
raise ValueError(f"y_pred should have at least 3 dimensions (batch, channel, spatial), got {dims}.")

0 commit comments

Comments
 (0)