Skip to content

Commit

Permalink
fixing setup.py removal of pytorch for new torch 2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Feb 18, 2023
1 parent e86cd01 commit e559dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
try:
import torch
a = torch.ones(2, 3)
version = int(torch.__version__.split(".")[1])
if version >= 6:
major_version, minor_version, _ = torch.__version__.split(".")
if major_version == "2" or int(minor_version) >= 6:
install_deps.remove("torch>=1.6")
except:
pass
Expand Down

0 comments on commit e559dae

Please sign in to comment.