mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Merge pull request #668 from Alejandro-Casanova/patch-25
fix wrongly triggering assert
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user