def debug_print()

in memory_saving_gradients.py [0:0]


def debug_print(s, *args):
    """Like logger.log, but also replaces all TensorFlow ops/tensors with their
    names. Sensitive to value of DEBUG_LOGGING, see enable_debug/disable_debug

    Usage:
      debug_print("see tensors %s for %s", tensorlist, [1,2,3])
    """

    if DEBUG_LOGGING:
        formatted_args = [format_ops(arg) for arg in args]
        print("DEBUG "+s % tuple(formatted_args))