Skip to content

Commit

Permalink
torch version compatible (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzhang-hub committed Jun 24, 2024
1 parent c2cc6d9 commit 7f05d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlrover/trainer/torch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@


def version_less_than_230():
return Version(torch.__version__) < Version("2.3.0")
return Version(torch.__version__) <= Version("2.2.2")

0 comments on commit 7f05d90

Please sign in to comment.