Registration is open for TensorFlow Dev Summit 2020 Learn more

tf.contrib.summary.never_record_summaries

View source on GitHub

Sets the should_record_summaries Tensor to always false.

tf.contrib.summary.never_record_summaries()