Skip to content

Commit e00df4d

Browse files
committed
autofix
Signed-off-by: R. Garcia-Dias <[email protected]>
1 parent 1e3339d commit e00df4d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

monai/utils/jupyter_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def plot_engine_status(
234234

235235

236236
def _get_loss_from_output(
237-
output: list[torch.Tensor | dict[str, torch.Tensor]] | dict[str, torch.Tensor] | torch.Tensor,
237+
output: list[torch.Tensor | dict[str, torch.Tensor]] | dict[str, torch.Tensor] | torch.Tensor
238238
) -> torch.Tensor:
239239
"""Returns a single value from the network output, which is a dict or tensor."""
240240

tests/transforms/test_gibbs_noise.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import unittest
1515
from copy import deepcopy
16+
from itertools import product
1617

1718
import numpy as np
1819
from parameterized import parameterized
@@ -21,7 +22,7 @@
2122
from monai.transforms import GibbsNoise
2223
from monai.utils.misc import set_determinism
2324
from monai.utils.module import optional_import
24-
from tests.test_utils import TEST_NDARRAYS, assert_allclose, dict_product
25+
from tests.test_utils import TEST_NDARRAYS, assert_allclose
2526

2627
_, has_torch_fft = optional_import("torch.fft", name="fftshift")
2728

0 commit comments

Comments
 (0)