Skip to content

Commit 59786d2

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/metrics/meandice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __init__(
124124
ignore_empty=self.ignore_empty,
125125
num_classes=self.num_classes,
126126
)
127-
127+
128128

129129
def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor: # type: ignore[override]
130130
"""
@@ -299,7 +299,7 @@ def compute_channel(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor
299299
if denorm <= 0:
300300
return torch.tensor(1.0, device=y_o.device)
301301
return torch.tensor(0.0, device=y_o.device)
302-
302+
303303
def __call__(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor | tuple[torch.Tensor, torch.Tensor]:
304304
"""
305305
Compute the metric for the given prediction and ground truth.

0 commit comments

Comments
 (0)