TensorFlow 2.0 Beta is available Learn more

tf.logging.log_if

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

Aliases:

  • tf.compat.v1.logging.log_if
  • tf.logging.log_if
tf.logging.log_if(
    level,
    msg,
    condition,
    *args
)
View source on GitHub