Expose tf.summary.record_if(condition) context manager in TF 2.0
This generalizes the TF 1.x contrib summary APIs always_record_summaries(), never_record_summaries(), and record_summaries_every_n_global_steps(). The new context manager accepts a "condition" that can be a constant boolean, a boolean tensor value, or a callable returning such. PiperOrigin-RevId: 233823923
Loading
Please sign in to comment