From a2f8391951f11616fa6c96b8774f3d4909c6bce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Tue, 1 Mar 2022 11:41:27 +1300 Subject: [PATCH] Upgrade to TensorFlow 2.8 --- 10_neural_nets_with_keras.ipynb | 4 ++-- 11_training_deep_neural_networks.ipynb | 4 ++-- 12_custom_models_and_training_with_tensorflow.ipynb | 4 ++-- 13_loading_and_preprocessing_data.ipynb | 4 ++-- 14_deep_computer_vision_with_cnns.ipynb | 4 ++-- 15_processing_sequences_using_rnns_and_cnns.ipynb | 4 ++-- 16_nlp_with_rnns_and_attention.ipynb | 4 ++-- 17_autoencoders_and_gans.ipynb | 4 ++-- 18_reinforcement_learning.ipynb | 4 ++-- 19_training_and_deploying_at_scale.ipynb | 4 ++-- environment.yml | 6 +++--- requirements.txt | 8 ++++---- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/10_neural_nets_with_keras.ipynb b/10_neural_nets_with_keras.ipynb index d2b6120..c48f989 100644 --- a/10_neural_nets_with_keras.ipynb +++ b/10_neural_nets_with_keras.ipynb @@ -77,7 +77,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "And TensorFlow ≥ 2.7:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -88,7 +88,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.7.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/11_training_deep_neural_networks.ipynb b/11_training_deep_neural_networks.ipynb index d4cb2fa..a947d62 100644 --- a/11_training_deep_neural_networks.ipynb +++ b/11_training_deep_neural_networks.ipynb @@ -77,7 +77,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -88,7 +88,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/12_custom_models_and_training_with_tensorflow.ipynb b/12_custom_models_and_training_with_tensorflow.ipynb index 733b429..5536a75 100644 --- a/12_custom_models_and_training_with_tensorflow.ipynb +++ b/12_custom_models_and_training_with_tensorflow.ipynb @@ -59,7 +59,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -70,7 +70,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/13_loading_and_preprocessing_data.ipynb b/13_loading_and_preprocessing_data.ipynb index de45fd6..7d26767 100644 --- a/13_loading_and_preprocessing_data.ipynb +++ b/13_loading_and_preprocessing_data.ipynb @@ -77,7 +77,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -88,7 +88,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.7.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/14_deep_computer_vision_with_cnns.ipynb b/14_deep_computer_vision_with_cnns.ipynb index fa4196b..6342b73 100644 --- a/14_deep_computer_vision_with_cnns.ipynb +++ b/14_deep_computer_vision_with_cnns.ipynb @@ -94,7 +94,7 @@ "id": "GJtVEqxfpKzw" }, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -107,7 +107,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/15_processing_sequences_using_rnns_and_cnns.ipynb b/15_processing_sequences_using_rnns_and_cnns.ipynb index 8b84d99..e2db3e5 100644 --- a/15_processing_sequences_using_rnns_and_cnns.ipynb +++ b/15_processing_sequences_using_rnns_and_cnns.ipynb @@ -88,7 +88,7 @@ "id": "GJtVEqxfpKzw" }, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -101,7 +101,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/16_nlp_with_rnns_and_attention.ipynb b/16_nlp_with_rnns_and_attention.ipynb index 6d2e344..901a069 100644 --- a/16_nlp_with_rnns_and_attention.ipynb +++ b/16_nlp_with_rnns_and_attention.ipynb @@ -98,7 +98,7 @@ "id": "GJtVEqxfpKzw" }, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -111,7 +111,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/17_autoencoders_and_gans.ipynb b/17_autoencoders_and_gans.ipynb index 792d992..229e7ad 100644 --- a/17_autoencoders_and_gans.ipynb +++ b/17_autoencoders_and_gans.ipynb @@ -100,7 +100,7 @@ "id": "GJtVEqxfpKzw" }, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -113,7 +113,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/18_reinforcement_learning.ipynb b/18_reinforcement_learning.ipynb index c24cc6f..ddf4d9d 100644 --- a/18_reinforcement_learning.ipynb +++ b/18_reinforcement_learning.ipynb @@ -100,7 +100,7 @@ "id": "GJtVEqxfpKzw" }, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -113,7 +113,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/19_training_and_deploying_at_scale.ipynb b/19_training_and_deploying_at_scale.ipynb index 10613c8..340c0bf 100644 --- a/19_training_and_deploying_at_scale.ipynb +++ b/19_training_and_deploying_at_scale.ipynb @@ -100,7 +100,7 @@ "id": "GJtVEqxfpKzw" }, "source": [ - "And TensorFlow ≥ 2.6:" + "And TensorFlow ≥ 2.8:" ] }, { @@ -113,7 +113,7 @@ "source": [ "import tensorflow as tf\n", "\n", - "assert tf.__version__ >= \"2.6.0\"" + "assert tf.__version__ >= \"2.8.0\"" ] }, { diff --git a/environment.yml b/environment.yml index 86efd01..90a346e 100644 --- a/environment.yml +++ b/environment.yml @@ -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 diff --git a/requirements.txt b/requirements.txt index 3634321..bc37b92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,9 +27,9 @@ 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 @@ -37,7 +37,7 @@ 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) @@ -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)