aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/BUILD
diff options
context:
space:
mode:
authorGravatar Nick Felt <nickfelt@google.com>2018-07-24 09:49:47 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-24 09:53:22 -0700
commit568727eed199dba04e37f500265b50f96fed455e (patch)
tree999f31d1469b3b5f2dc12d5ca04061cfe6062faa /tensorflow/python/BUILD
parentf8bbd3ceb7e86b7595ba74a9a03cfc7c1be252a8 (diff)
Add v2 summary support to Estimator.train() and MonitoredSession hooks
This change makes Estimator.train() support v2 summaries (tf.contrib.summary.*) out-of-the-box, to match the support for v1 summaries. Estimator.train() will now handle the boilerplate necessary to initialize a file writer and enable summary writing every N steps, and will ensure that its own automatically exported summaries (for loss and global_step/sec) get written to the same underlying events file. As part of this change, tf.train.SummarySaverHook, tf.train.CheckpointSaverHook, tf.train.StepCounterHook, and tf.train.ProfilerHook have also been adapted to write summaries using the v2 summary system (via a compatibility layer), instead of using FileWriterCache. A couple additional smaller changes are: - the 'session' parameter to FileWriter() can now be a callable returning a tf.Session instance. - the introduction of tf.contrib.summary.record_summaries_if() which takes a boolean tensor for direct control of tf.contrib.summary.should_record_summaries(). - EstimatorSpec.train_op, besides a tf.Operation, is now allowed to be any Tensor-equivalent object rather than just a tf.Tensor. PiperOrigin-RevId: 205843986
Diffstat (limited to 'tensorflow/python/BUILD')
-rw-r--r--tensorflow/python/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD
index 814239533c..b5a0051c28 100644
--- a/tensorflow/python/BUILD
+++ b/tensorflow/python/BUILD
@@ -2822,6 +2822,7 @@ py_library(
":framework_ops",
":math_ops",
":resource_variable_ops",
+ ":resources",
":smart_cond",
":summary_op_util",
":summary_ops_gen",