From: Allen Lavoie Date: Thu, 3 May 2018 19:53:47 +0000 (-0700) Subject: Small fix for an eager colab notebook. X-Git-Tag: upstream/v1.9.0_rc1~165^2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b767a835b61061ef4d167dc1ee935f2f85a3e87;p=platform%2Fupstream%2Ftensorflow.git Small fix for an eager colab notebook. PiperOrigin-RevId: 195296384 --- diff --git a/tensorflow/contrib/eager/python/examples/notebooks/1_basics.ipynb b/tensorflow/contrib/eager/python/examples/notebooks/1_basics.ipynb index 0279db8..9fd2d8d 100644 --- a/tensorflow/contrib/eager/python/examples/notebooks/1_basics.ipynb +++ b/tensorflow/contrib/eager/python/examples/notebooks/1_basics.ipynb @@ -478,7 +478,7 @@ "source": [ "# Time GPU-based matrix multiplications.\n", "\n", - "if is_gpu_available:\n", + "if tf.test.is_gpu_available():\n", " # First use of the GPU will be slow:\n", " print(\"Time to conduct first matmul on GPU:\")\n", " %time tf.matmul(gpu_tensor, gpu_tensor)\n",