tf.contrib.summary.record_summaries_every_n_global_steps

tf.contrib.summary.record_summaries_every_n_global_steps(
    n,
    global_step=None
)

Defined in tensorflow/contrib/summary/summary_ops.py.

Sets the should_record_summaries Tensor to true if global_step % n == 0.