aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/how_tos
diff options
context:
space:
mode:
authorGravatar Dan Smilkov <dsmilkov@gmail.com>2016-03-24 08:02:12 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-03-24 09:03:01 -0700
commitc404448d3b1e44fddc2d6e1c6da9862443112721 (patch)
tree6c44d4bb1556875829ec5d9c3a0f3c4dc372daf2 /tensorflow/examples/how_tos
parent5e06a231344f6324cc5054b867b0eb8cbeb37771 (diff)
Replace graph_def with graph when passed to the SummaryWriter and update tutorials to reflect the new API.
Change: 118033430
Diffstat (limited to 'tensorflow/examples/how_tos')
-rw-r--r--tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py3
-rw-r--r--tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py
index ef46329cd5..d08a15433a 100644
--- a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py
+++ b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py
@@ -103,8 +103,7 @@ def run_training():
sess.run(init_op)
# Instantiate a SummaryWriter to output summaries and the Graph.
- summary_writer = tf.train.SummaryWriter(FLAGS.train_dir,
- graph_def=sess.graph_def)
+ summary_writer = tf.train.SummaryWriter(FLAGS.train_dir, sess.graph)
# Start input enqueue threads.
coord = tf.train.Coordinator()
diff --git a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py
index b8bd143ec8..3b43abc81c 100644
--- a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py
+++ b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py
@@ -113,8 +113,7 @@ def run_training():
feed_dict={labels_initializer: data_sets.train.labels})
# Instantiate a SummaryWriter to output summaries and the Graph.
- summary_writer = tf.train.SummaryWriter(FLAGS.train_dir,
- graph_def=sess.graph_def)
+ summary_writer = tf.train.SummaryWriter(FLAGS.train_dir, sess.graph)
# Start input enqueue threads.
coord = tf.train.Coordinator()