From d507ec815a0ab9fc81374e24b45271f0a61238aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 6 Apr 2020 18:57:38 +1200 Subject: [PATCH] Update nbformat_minor --- 17_autoencoders_and_gans.ipynb | 6 +++--- 19_training_and_deploying_at_scale.ipynb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/17_autoencoders_and_gans.ipynb b/17_autoencoders_and_gans.ipynb index 858fbb7..bd1a64a 100644 --- a/17_autoencoders_and_gans.ipynb +++ b/17_autoencoders_and_gans.ipynb @@ -65,7 +65,7 @@ "from tensorflow import keras\n", "assert tf.__version__ >= \"2.0\"\n", "\n", - "if not tf.test.is_gpu_available():\n", + "if not tf.config.list_physical_devices('GPU'):\n", " print(\"No GPU was detected. LSTMs and CNNs can be very slow without a GPU.\")\n", " if IS_COLAB:\n", " print(\"Go to Runtime > Change runtime and select a GPU hardware accelerator.\")\n", @@ -1621,7 +1621,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.7.6" }, "nav_menu": { "height": "381px", @@ -1638,5 +1638,5 @@ } }, "nbformat": 4, - "nbformat_minor": 1 + "nbformat_minor": 4 } diff --git a/19_training_and_deploying_at_scale.ipynb b/19_training_and_deploying_at_scale.ipynb index 6c0a9a3..291e5fd 100644 --- a/19_training_and_deploying_at_scale.ipynb +++ b/19_training_and_deploying_at_scale.ipynb @@ -63,7 +63,7 @@ "from tensorflow import keras\n", "assert tf.__version__ >= \"2.0\"\n", "\n", - "if not tf.test.is_gpu_available():\n", + "if not tf.config.list_physical_devices('GPU'):\n", " print(\"No GPU was detected. CNNs can be very slow without a GPU.\")\n", " if IS_COLAB:\n", " print(\"Go to Runtime > Change runtime and select a GPU hardware accelerator.\")\n", @@ -1146,9 +1146,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.7.6" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 }