Skip to content

Commit

Permalink
torch version string man fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy committed Nov 15, 2021
1 parent 12663c7 commit a7099e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _argparse(pattern, argv, is_flag=True, is_list=False):
CC_FLAGS = []
NVCC_FLAGS = []

TORCH_VERSION = [int(v) for v in torch.__version__.split('.')]
TORCH_VERSION = [int(v) for v in torch.__version__.replace('+', '.').split('.')[:3]]

if CPU_ONLY:
print("--------------------------------")
Expand Down

0 comments on commit a7099e2

Please sign in to comment.