Skip to content

Commit

Permalink
Upgrade to TensorFlow 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Feb 28, 2022
1 parent b658ab4 commit a2f8391
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions 10_neural_nets_with_keras.ipynb
Expand Up @@ -77,7 +77,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"And TensorFlow ≥ 2.7:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -88,7 +88,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.7.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 11_training_deep_neural_networks.ipynb
Expand Up @@ -77,7 +77,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -88,7 +88,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 12_custom_models_and_training_with_tensorflow.ipynb
Expand Up @@ -59,7 +59,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -70,7 +70,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 13_loading_and_preprocessing_data.ipynb
Expand Up @@ -77,7 +77,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -88,7 +88,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.7.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 14_deep_computer_vision_with_cnns.ipynb
Expand Up @@ -94,7 +94,7 @@
"id": "GJtVEqxfpKzw"
},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -107,7 +107,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 15_processing_sequences_using_rnns_and_cnns.ipynb
Expand Up @@ -88,7 +88,7 @@
"id": "GJtVEqxfpKzw"
},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -101,7 +101,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 16_nlp_with_rnns_and_attention.ipynb
Expand Up @@ -98,7 +98,7 @@
"id": "GJtVEqxfpKzw"
},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -111,7 +111,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 17_autoencoders_and_gans.ipynb
Expand Up @@ -100,7 +100,7 @@
"id": "GJtVEqxfpKzw"
},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -113,7 +113,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 18_reinforcement_learning.ipynb
Expand Up @@ -100,7 +100,7 @@
"id": "GJtVEqxfpKzw"
},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -113,7 +113,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 19_training_and_deploying_at_scale.ipynb
Expand Up @@ -100,7 +100,7 @@
"id": "GJtVEqxfpKzw"
},
"source": [
"And TensorFlow ≥ 2.6:"
"And TensorFlow ≥ 2.8:"
]
},
{
Expand All @@ -113,7 +113,7 @@
"source": [
"import tensorflow as tf\n",
"\n",
"assert tf.__version__ >= \"2.6.0\""
"assert tf.__version__ >= \"2.8.0\""
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions environment.yml
Expand Up @@ -33,11 +33,11 @@ dependencies:
- pip:
- tensorboard-plugin-profile~=2.5.0 # profiling plugin for TensorBoard
- 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-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~=2.7.1 # Deep Learning library
- tensorflow-serving-api~=2.8.0 # or tensorflow-serving-api-gpu if gpu
- tensorflow~=2.8.0 # Deep Learning library
- transformers~=4.16.2 # Natural Language Processing lib for TF or PyTorch
- urlextract~=1.5.0 # optionally used in chapter 3, exercise 4
- gym[atari,accept-rom-license]~=0.21.0 # used only in chapter 18
8 changes: 4 additions & 4 deletions requirements.txt
Expand Up @@ -27,17 +27,17 @@ transformers~=4.16.2
# you must install CUDA, cuDNN and more: see tensorflow.org for the detailed
# installation instructions.

tensorflow~=2.7.1
tensorflow~=2.8.0
# 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-plugin-profile~=2.5.0
tensorflow-datasets~=4.5.2
tensorflow-hub~=0.12.0

# Optional: used in chapters 11 & 16 (for AdamW & seq2seq)
tensorflow-addons~=0.15.0
tensorflow-addons~=0.16.1

##### Reinforcement Learning library (chapter 18)

Expand All @@ -56,7 +56,7 @@ Pillow~=9.0.0
graphviz~=0.19.1
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)


Expand Down

0 comments on commit a2f8391

Please sign in to comment.