Small fix for an eager colab notebook.
authorAllen Lavoie <allenl@google.com>
Thu, 3 May 2018 19:53:47 +0000 (12:53 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 3 May 2018 20:38:19 +0000 (13:38 -0700)
PiperOrigin-RevId: 195296384

tensorflow/contrib/eager/python/examples/notebooks/1_basics.ipynb

index 0279db8..9fd2d8d 100644 (file)
       "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",