Skip to content

Commit

Permalink
Skip "test_gaussian_filter" as a workaround for blossom killed (Proje…
Browse files Browse the repository at this point in the history
…ct-MONAI#7474)

workaround for Project-MONAI#7445

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Yu0610 <612410030@alum.ccu.edu.tw>
  • Loading branch information
KumoLiu authored and Yu0610 committed Apr 11, 2024
1 parent 8e2ca54 commit 4cabb28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_gaussian_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from parameterized import parameterized

from monai.networks.layers import GaussianFilter
from tests.utils import skip_if_quick
from tests.utils import SkipIfAtLeastPyTorchVersion, skip_if_quick

TEST_CASES = [[{"type": "erf", "gt": 2.0}], [{"type": "scalespace", "gt": 3.0}], [{"type": "sampled", "gt": 5.0}]]
TEST_CASES_GPU = [[{"type": "erf", "gt": 0.8, "device": "cuda"}], [{"type": "sampled", "gt": 5.0, "device": "cuda"}]]
Expand All @@ -34,6 +34,7 @@
]


@SkipIfAtLeastPyTorchVersion((2, 2, 0)) # https://github.com/Project-MONAI/MONAI/issues/7445
class TestGaussianFilterBackprop(unittest.TestCase):

def code_to_run(self, input_args):
Expand Down Expand Up @@ -94,6 +95,7 @@ def test_train_slow(self, input_args):
self.code_to_run(input_args)


@SkipIfAtLeastPyTorchVersion((2, 2, 0)) # https://github.com/Project-MONAI/MONAI/issues/7445
class GaussianFilterTestCase(unittest.TestCase):

def test_1d(self):
Expand Down

0 comments on commit 4cabb28

Please sign in to comment.