Upgrade to TensorFlow 2.8

main
Aurélien Geron 2022-03-01 11:41:27 +13:00
parent b658ab40c0
commit a2f8391951
12 changed files with 27 additions and 27 deletions

View File

@ -77,7 +77,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"And TensorFlow ≥ 2.7:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -88,7 +88,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.7.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -77,7 +77,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -88,7 +88,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -59,7 +59,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -70,7 +70,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -77,7 +77,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -88,7 +88,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.7.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -94,7 +94,7 @@
"id": "GJtVEqxfpKzw" "id": "GJtVEqxfpKzw"
}, },
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -107,7 +107,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -88,7 +88,7 @@
"id": "GJtVEqxfpKzw" "id": "GJtVEqxfpKzw"
}, },
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -101,7 +101,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -98,7 +98,7 @@
"id": "GJtVEqxfpKzw" "id": "GJtVEqxfpKzw"
}, },
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -111,7 +111,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -100,7 +100,7 @@
"id": "GJtVEqxfpKzw" "id": "GJtVEqxfpKzw"
}, },
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -113,7 +113,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -100,7 +100,7 @@
"id": "GJtVEqxfpKzw" "id": "GJtVEqxfpKzw"
}, },
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -113,7 +113,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -100,7 +100,7 @@
"id": "GJtVEqxfpKzw" "id": "GJtVEqxfpKzw"
}, },
"source": [ "source": [
"And TensorFlow ≥ 2.6:" "And TensorFlow ≥ 2.8:"
] ]
}, },
{ {
@ -113,7 +113,7 @@
"source": [ "source": [
"import tensorflow as tf\n", "import tensorflow as tf\n",
"\n", "\n",
"assert tf.__version__ >= \"2.6.0\"" "assert tf.__version__ >= \"2.8.0\""
] ]
}, },
{ {

View File

@ -33,11 +33,11 @@ dependencies:
- pip: - pip:
- tensorboard-plugin-profile~=2.5.0 # profiling plugin for TensorBoard - tensorboard-plugin-profile~=2.5.0 # profiling plugin for TensorBoard
- tensorboard~=2.8.0 # TensorFlow's visualization toolkit - tensorboard~=2.8.0 # TensorFlow's visualization toolkit
- tensorflow-addons~=0.15.0 # used in chapters 11 & 16 (for AdamW & seq2seq) - tensorflow-addons~=0.16.1 # used in chapters 11 & 16 (for AdamW & seq2seq)
- tensorflow-datasets~=4.5.2 # datasets repository, ready to use - tensorflow-datasets~=4.5.2 # datasets repository, ready to use
- tensorflow-hub~=0.12.0 # trained ML models repository, ready to use - tensorflow-hub~=0.12.0 # trained ML models repository, ready to use
- tensorflow-serving-api~=2.7.0 # or tensorflow-serving-api-gpu if gpu - tensorflow-serving-api~=2.8.0 # or tensorflow-serving-api-gpu if gpu
- tensorflow~=2.7.1 # Deep Learning library - tensorflow~=2.8.0 # Deep Learning library
- transformers~=4.16.2 # Natural Language Processing lib for TF or PyTorch - transformers~=4.16.2 # Natural Language Processing lib for TF or PyTorch
- urlextract~=1.5.0 # optionally used in chapter 3, exercise 4 - urlextract~=1.5.0 # optionally used in chapter 3, exercise 4
- gym[atari,accept-rom-license]~=0.21.0 # used only in chapter 18 - gym[atari,accept-rom-license]~=0.21.0 # used only in chapter 18

View File

@ -27,9 +27,9 @@ transformers~=4.16.2
# you must install CUDA, cuDNN and more: see tensorflow.org for the detailed # you must install CUDA, cuDNN and more: see tensorflow.org for the detailed
# installation instructions. # installation instructions.
tensorflow~=2.7.1 tensorflow~=2.8.0
# Optional: the TF Serving API library is just needed for chapter 18. # Optional: the TF Serving API library is just needed for chapter 18.
tensorflow-serving-api~=2.7.0 # or tensorflow-serving-api-gpu if gpu tensorflow-serving-api~=2.8.0 # or tensorflow-serving-api-gpu if gpu
tensorboard~=2.8.0 tensorboard~=2.8.0
tensorboard-plugin-profile~=2.5.0 tensorboard-plugin-profile~=2.5.0
@ -37,7 +37,7 @@ tensorflow-datasets~=4.5.2
tensorflow-hub~=0.12.0 tensorflow-hub~=0.12.0
# Optional: used in chapters 11 & 16 (for AdamW & seq2seq) # Optional: used in chapters 11 & 16 (for AdamW & seq2seq)
tensorflow-addons~=0.15.0 tensorflow-addons~=0.16.1
##### Reinforcement Learning library (chapter 18) ##### Reinforcement Learning library (chapter 18)
@ -56,7 +56,7 @@ Pillow~=9.0.0
graphviz~=0.19.1 graphviz~=0.19.1
pyglet~=1.5.21 pyglet~=1.5.21
#pyvirtualdisplay # needed in chapter 18, if on a headless server #pyvirtualdisplay # needed in chapter 18, if on a headless server
# (i.e., without screen, e.g., Colab or VM) # (i.e., without screen, e.g., Colab or VM)