(self, label, subsample_factor=None)
Context manager that logs to a section nested one level deeper.

    Args:
      label: A short name for the section.
      subsample_factor: Rate at which to subsample logging in this section.

    Yields:
      yields to caller.
Context manager that logs to a section nested one level deeper.
Context manager that logs to a section nested one level deeper .
def section(self, label, subsample_factor=None):
    """Context manager that logs to a section nested one level deeper.

    Args:
      label: A short name for the section.
      subsample_factor: Rate at which to subsample logging in this section.

    Yields:
      yields to caller.
    """
    new_section = _Section(label, subsample_factor=subsample_factor)
    self.stack[-1].log(new_section)
    self.stack.append(new_section)
    yield
    self.stack.pop()
def section ( self , label , subsample_factor = None ) : new_section = _Section ( label , subsample_factor = subsample_factor ) self . stack [ - 1 ] . log ( new_section ) self . stack . append ( new_section ) yield self . stack . pop ( )