Skip to content

Commit d308c13

Browse files
authored
Change output to make example run
`welcome` constant doesn't exist in this example. Either add the welcome constant into the example and change the shell output or do what is done here and print the array of each constant to make the example run.
1 parent 1be55e5 commit d308c13

File tree

1 file changed

+2
-6
lines changed
  • docs/tutorials/1-basics/basic_math_operations

1 file changed

+2
-6
lines changed

docs/tutorials/1-basics/basic_math_operations/README.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The ``session``, which is the environment for running the operations, is execute
7878
# Run the session
7979
with tf.Session() as sess:
8080
writer = tf.summary.FileWriter(os.path.expanduser(FLAGS.log_dir), sess.graph)
81-
print("output: ", sess.run(welcome))
81+
print("output: ", sess.run([a,b,x,y]))
8282
8383
# Closing the writer.
8484
writer.close()
@@ -94,11 +94,7 @@ The results for running in the terminal is as bellow:
9494

9595
.. code:: shell
9696
97-
a = 5.0
98-
b = 10.0
99-
a + b = 15.0
100-
a/b = 0.5
101-
97+
[5.0, 10.0, 15.0, 0.5]
10298
10399
104100
If we run the Tensorboard using ``tensorboard --logdir="absolute/path/to/log_dir"`` we get the following when visualiaing the ``Graph``:

0 commit comments

Comments
 (0)