parameters: ()
docstring: Sets the should_record_summaries Tensor to always true.
docstring_summary: Sets the should_record_summaries Tensor to always true.
docstring_tokens: Sets the should_record_summaries Tensor to always true .
function: def always_record_summaries():
    """Sets the should_record_summaries Tensor to always true."""
    collection_ref = ops.get_collection_ref(_SHOULD_RECORD_SUMMARIES_NAME)
    old = collection_ref[:]
    collection_ref[:] = [True]
    yield
    collection_ref[:] = old
function_tokens: def always_record_summaries ( ) : collection_ref = ops . get_collection_ref ( _SHOULD_RECORD_SUMMARIES_NAME ) old = collection_ref [ : ] collection_ref [ : ] = [ True ] yield collection_ref [ : ] = old