8d77bc5f267a49ed890222039f9ee058cca7f22f,keras/callbacks.py,TensorBoard,_stop_trace,#TensorBoard#Any#,2398

Before Change


      with tf.summary.record_if(True):
        // TODO(b/126388999): Remove step info in the summary name.
        tf.summary.trace_export(name="batch_%d" % batch, step=batch)
    tf.profiler.experimental.stop()
    self._is_tracing = False

  def _collect_learning_rate(self, logs):
    lr_schedule = getattr(self.model.optimizer, "lr", None)

After Change


      with tf.summary.record_if(True):
        // TODO(b/126388999): Remove step info in the summary name.
        tf.summary.trace_export(name="batch_%d" % batch, step=batch)
    self._stop_profiler()
    self._is_tracing = False

  def _collect_learning_rate(self, logs):
    lr_schedule = getattr(self.model.optimizer, "lr", None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 8d77bc5f267a49ed890222039f9ee058cca7f22f
Time: 2021-03-01
Author: scottzhu@google.com
File Name: keras/callbacks.py
Class Name: TensorBoard
Method Name: _stop_trace


Project Name: keras-team/keras
Commit Name: 8d77bc5f267a49ed890222039f9ee058cca7f22f
Time: 2021-03-01
Author: scottzhu@google.com
File Name: keras/callbacks.py
Class Name: TensorBoard
Method Name: _init_profile_batch


Project Name: keras-team/keras
Commit Name: 8d77bc5f267a49ed890222039f9ee058cca7f22f
Time: 2021-03-01
Author: scottzhu@google.com
File Name: keras/callbacks_v1.py
Class Name: TensorBoard
Method Name: on_batch_end


Project Name: keras-team/keras
Commit Name: 8d77bc5f267a49ed890222039f9ee058cca7f22f
Time: 2021-03-01
Author: scottzhu@google.com
File Name: keras/callbacks_v1.py
Class Name: TensorBoard
Method Name: on_train_end