Commit a6937898 authored by LSinev's avatar LSinev
Browse files

Fix torch version comparisons

Comparisons like
version.parse(torch.__version__) > version.parse("1.6")
are True for torch==1.6.0+cu101 or torch==1.6.0+cpu

version.parse(version.parse(torch.__version__).base_version) are preferred (and available in pytorch_utils.py
parent a507908c
Showing with 91 additions and 49 deletions
+91 -49
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment