Merge pull request #668 from Alejandro-Casanova/patch-25

fix wrongly triggering assert
This commit is contained in:
Daniel Bourke authored and GitHub committed 2023-10-05 16:47:56 +10:00
commit bd84150de7
1 file changed
+1 -1
@@ -71,7 +71,7 @@
"try:\n", "try:\n",
" import torch\n", " import torch\n",
" import torchvision\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", " assert int(torchvision.__version__.split(\".\")[1]) >= 13, \"torchvision version should be 0.13+\"\n",
" print(f\"torch version: {torch.__version__}\")\n", " print(f\"torch version: {torch.__version__}\")\n",
" print(f\"torchvision version: {torchvision.__version__}\")\n", " print(f\"torchvision version: {torchvision.__version__}\")\n",