Fix suggestion

This commit is contained in:
Santiago Castro 2021-11-03 10:26:35 -04:00 committed by GitHub
parent c7be85d4e7
commit 83fbd069cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ except ImportError:
BICUBIC = Image.BICUBIC
if [int(n) for n in torch.__version__.split(".")] < [1, 7, 1]:
if [int(n.split("+")[0]) for n in torch.__version__.split(".")] < [1, 7, 1]:
warnings.warn("PyTorch version 1.7.1 or higher is recommended")