From 5ebc076706e04bcd3f32fdc6ac95979cde6f7d9b Mon Sep 17 00:00:00 2001 From: SuperElephant Date: Mon, 18 Feb 2019 22:23:39 +0000 Subject: [PATCH] basic_math_operations error correction correct the code according to ipynb version --- docs/tutorials/1-basics/basic_math_operations/README.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/1-basics/basic_math_operations/README.rst b/docs/tutorials/1-basics/basic_math_operations/README.rst index 412293b..c2cb6a1 100644 --- a/docs/tutorials/1-basics/basic_math_operations/README.rst +++ b/docs/tutorials/1-basics/basic_math_operations/README.rst @@ -78,7 +78,10 @@ The ``session``, which is the environment for running the operations, is execute # Run the session with tf.Session() as sess: writer = tf.summary.FileWriter(os.path.expanduser(FLAGS.log_dir), sess.graph) - print("output: ", sess.run(welcome)) + print("a =", sess.run(a)) + print("b =", sess.run(b)) + print("a + b =", sess.run(x)) + print("a/b =", sess.run(y)) # Closing the writer. writer.close()