# tf.summary.should_record_summaries

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/ops/summary_ops_v2.py#L129-L139) |

Returns boolean Tensor which is True if summaries will be recorded.

    tf.summary.should_record_summaries()

If no default summary writer is currently registered, this always returns
False. Otherwise, this reflects the recording condition has been set via
[`tf.summary.record_if()`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/summary/record_if) (except that it may return False for some replicas
when using [`tf.distribute.Strategy`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/distribute/Strategy)). If no recording condition is active,
it defaults to True.