fix wrongly triggering assert

torch is already on version 2, so this assert is triggered unnecessarily
This commit is contained in:
Alejandro Casanova authored and GitHub committed 2023-10-04 20:00:04 +02:00
1 parent cdc0a0a544
commit 80c250c85f
1 file changed
+1 -1
@@ -71,7 +71,7 @@
"try:\n",
" import torch\n",
" import torchvision\n",
" assert int(torch.__version__.split(\".\")[1]) >= 12, \"torch version should be 1.12+\"\n",
" assert int(torch.__version__.split(\".\")[1]) >= 12 or int(torch.__version__.split(\".\")[0]) > 1, \"torch version should be 1.12+\"\n",
" assert int(torchvision.__version__.split(\".\")[1]) >= 13, \"torchvision version should be 0.13+\"\n",
" print(f\"torch version: {torch.__version__}\")\n",
" print(f\"torchvision version: {torchvision.__version__}\")\n",