Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tensor_flow_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def nn_example():
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))

# add a summary to store the accuracy
tf.summary.scalar('accuracy', accuracy)
accuracy_summary = tf.summary.scalar('accuracy', accuracy)

merged = tf.summary.merge_all()
merged = tf.summary.merge(accuracy_summary)
writer = tf.summary.FileWriter('C:\\Users\\Andy\\PycharmProjects')
# start the session
with tf.Session() as sess:
Expand All @@ -151,4 +151,4 @@ def nn_example():
# run_simple_graph()
# run_simple_graph_multiple()
# simple_with_tensor_board()
nn_example()
nn_example()