Skip to content

Commit

Permalink
Fix ci issue in test_vit (#8013)
Browse files Browse the repository at this point in the history
Fixes #8012


### 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>
  • Loading branch information
KumoLiu authored Aug 13, 2024
1 parent 9dbfe16 commit 34ce94d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ lpips==0.1.4
nvidia-ml-py
huggingface_hub
pyamg>=5.0.0
git+https://github.com/Project-MONAI/GenerativeModels.git@7428fce193771e9564f29b91d29e523dd1b6b4cd
git+https://github.com/facebookresearch/segment-anything.git@6fdee8f2727f4506cfbbe553e23b895e27956588
2 changes: 1 addition & 1 deletion tests/test_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_ill_arg(
)

@parameterized.expand(TEST_CASE_Vit[:1])
@SkipIfBeforePyTorchVersion((1, 9))
@SkipIfBeforePyTorchVersion((2, 0))
def test_script(self, input_param, input_shape, _):
net = ViT(**(input_param))
net.eval()
Expand Down

0 comments on commit 34ce94d

Please sign in to comment.