Skip to content

Commit

Permalink
Fix tf 2.14 installation in tutorials (#1346)
Browse files Browse the repository at this point in the history
Add patch part to TF version in tutorials to make sure TF 2.14 is installed (without mentioning the patch version and using ~= in pip install, it kept the 2.17 version that is installed in the colab). In addition, remove [and-cuda] to enable successful installation in colab.

Co-authored-by: reuvenp <[email protected]>
  • Loading branch information
reuvenperetz and reuvenp authored Jan 28, 2025
1 parent 1b2548e commit c3ec981
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
},
"outputs": [],
"source": [
"TF_VER = '2.14'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow~={TF_VER}"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
},
"outputs": [],
"source": [
"TF_VER = '2.14'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow~={TF_VER}"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"source": [
"TF_VER = '2.14.0'\n",
"\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"!pip install -q tensorflow~={TF_VER}"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"outputs": [],
"source": [
"TF_VER = '2.14'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow~={TF_VER}"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
},
"outputs": [],
"source": [
"TF_VER = '2.14'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow~={TF_VER}"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"execution_count": null,
"outputs": [],
"source": [
"TF_VER = '2.14'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow~={TF_VER}"
],
"metadata": {
"collapsed": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"cell_type": "code",
"source": [
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"!pip install -q tensorflow~={TF_VER}"
],
"metadata": {
"id": "xTvVA__4NItc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"outputs": [],
"source": [
"TF_VER = '2.14.0'\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"!pip install -q tensorflow~={TF_VER}"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"source": [
"TF_VER = '2.14.0'\n",
"\n",
"!pip install -q tensorflow[and-cuda]~={TF_VER}"
"!pip install -q tensorflow~={TF_VER}"
],
"metadata": {
"id": "kCLHJUhTlPDi"
Expand Down

0 comments on commit c3ec981

Please sign in to comment.