Skip to content

Commit 0df2d73

Browse files
Eric Zhangfacebook-github-bot
authored andcommitted
Update onnx test skip condition
Summary: Pull Request resolved: #5297 onnx test was being skipped by checking version == 1.16.0. But onnx released version 1.16.1 which still fails the test but no longer skips. Now, the test is skipped for 1.16.1 as well as any future versions Reviewed By: wat3rBro Differential Revision: D57917730 fbshipit-source-id: c40c9b17aab9560ebfd495d4b6d7d64cc77f5a09
1 parent 39d77a7 commit 0df2d73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_export_onnx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def inference_func(model, image):
9898
)
9999

100100
@unittest.skipIf(
101-
version.Version(onnx.version.version) == version.Version("1.16.0"),
102-
"This test fails on ONNX Runtime 1.16",
101+
version.Version(onnx.version.version) >= version.Version("1.16.0"),
102+
"This test fails on ONNX Runtime >= 1.16",
103103
)
104104
def testKeypointHead(self):
105105
class M(torch.nn.Module):

0 commit comments

Comments
 (0)