Skip to content

Commit 8181888

Browse files
committed
Fix decorator
1 parent 63ba1c4 commit 8181888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ def requires_torch_greater_or_equal(version: str):
4242
torch_version = Version(torch.__version__)
4343
provided_version = Version(version)
4444
return unittest.skipUnless(
45-
torch_version < provided_version,
45+
torch_version >= provided_version,
4646
f"torch version {torch_version} is less than {provided_version}",
4747
)

0 commit comments

Comments
 (0)