Skip to content

Commit d09a226

Browse files
committed
skip pytorch2.6 test in auto3d
Signed-off-by: YunLiu <[email protected]>
1 parent 334472f commit d09a226

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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/integration/test_auto3dseg_ensemble.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from monai.utils import check_parent_dir, optional_import, set_determinism
3434
from monai.utils.enums import AlgoKeys
3535
from tests.test_utils import (
36-
SkipIfBeforePyTorchVersion,
36+
SkipIfAtLeastPyTorchVersion,
3737
get_testing_algo_template_path,
3838
skip_if_downloading_fails,
3939
skip_if_no_cuda,
@@ -109,7 +109,7 @@ def create_sim_data(dataroot, sim_datalist, sim_dim, **kwargs):
109109

110110
@skip_if_quick
111111
@skip_if_no_cuda
112-
@SkipIfBeforePyTorchVersion((1, 11, 1))
112+
@SkipIfAtLeastPyTorchVersion((2, 6, 0))
113113
@unittest.skipIf(not has_tb, "no tensorboard summary writer")
114114
class TestEnsembleBuilder(unittest.TestCase):
115115
def setUp(self) -> None:

0 commit comments

Comments
 (0)