parameters: (n)
docstring: Sets the should_record_summaries Tensor to true if global_step % n == 0.
docstring_summary: Sets the should_record_summaries Tensor to true if global_step % n == 0.
docstring_tokens: Sets the should_record_summaries Tensor to true if global_step % n == 0 .
function: def record_summaries_every_n_global_steps(n):
    """Sets the should_record_summaries Tensor to true if global_step % n == 0."""
    collection_ref = ops.get_collection_ref(_SHOULD_RECORD_SUMMARIES_NAME)
    old = collection_ref[:]
    collection_ref[:] = [training_util.get_global_step() % n == 0]
    yield
    collection_ref[:] = old
function_tokens: def record_summaries_every_n_global_steps ( n ) : collection_ref = ops . get_collection_ref ( _SHOULD_RECORD_SUMMARIES_NAME ) old = collection_ref [ : ] collection_ref [ : ] = [ training_util . get_global_step ( ) % n == 0 ] yield collection_ref [ : ] = old