From d54310163e2579d6a2fadda47266d3467e1f3776 Mon Sep 17 00:00:00 2001 From: Sebastian Stein Date: Mon, 17 Feb 2020 11:26:54 +0100 Subject: [PATCH] make TensorFlow 2 examples compatible with Python 3 --- tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb b/tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb index 8a9479c0..a1fdad54 100644 --- a/tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb +++ b/tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb @@ -37,7 +37,7 @@ "source": [ "# Create a Tensor.\n", "hello = tf.constant(\"hello world\")\n", - "print hello" + "print(hello)" ] }, { @@ -55,7 +55,7 @@ ], "source": [ "# To access a Tensor value, call numpy().\n", - "print hello.numpy()" + "print(hello.numpy())" ] } ],