Announcing the TensorFlow Dev Summit 2020 Learn more

tf.logging.log_if

View source on GitHub

Log 'msg % args' at level 'level' only if condition is fulfilled.

Aliases:

tf.logging.log_if(
    level,
    msg,
    condition,
    *args
)