Commit e9deb127 authored by Nick Felt's avatar Nick Felt Committed by TensorFlower Gardener
Browse files

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
parent bcc12d40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment