Skip to content

Commit bd84150

Browse files
authored
Merge pull request #668 from Alejandro-Casanova/patch-25
fix wrongly triggering assert
2 parents c87474b + 80c250c commit bd84150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/exercises/09_pytorch_model_deployment_exercises.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"try:\n",
7272
" import torch\n",
7373
" import torchvision\n",
74-
" assert int(torch.__version__.split(\".\")[1]) >= 12, \"torch version should be 1.12+\"\n",
74+
" assert int(torch.__version__.split(\".\")[1]) >= 12 or int(torch.__version__.split(\".\")[0]) > 1, \"torch version should be 1.12+\"\n",
7575
" assert int(torchvision.__version__.split(\".\")[1]) >= 13, \"torchvision version should be 0.13+\"\n",
7676
" print(f\"torch version: {torch.__version__}\")\n",
7777
" print(f\"torchvision version: {torchvision.__version__}\")\n",

0 commit comments

Comments
 (0)