a2e95a60dc10751706d84ea2656b9f72b7b18110,official/utils/misc/keras_utils.py,ProfilerCallback,on_batch_end,#ProfilerCallback#Any#Any#,151

Before Change


  def on_batch_end(self, batch, logs=None):
    if batch == self.stop_step_in_epoch and self.should_stop:
      self.should_stop = False
      profiler.stop()
      logging.info("Profiler saved profiles for steps between %s and %s to %s",
                   self.start_step, self.stop_step, self.log_dir)

After Change


  def on_batch_end(self, batch, logs=None):
    if batch == self.stop_step_in_epoch and self.should_stop:
      self.should_stop = False
      results = profiler.stop()
      profiler.save(self.log_dir, results)
      logging.info(
          "Profiler saved profiles for steps between %s and %s to %s",
          self.start_step, self.stop_step, self.log_dir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: tensorflow/models
Commit Name: a2e95a60dc10751706d84ea2656b9f72b7b18110
Time: 2020-02-21
Author: gardener@tensorflow.org
File Name: official/utils/misc/keras_utils.py
Class Name: ProfilerCallback
Method Name: on_batch_end


Project Name: tensorflow/models
Commit Name: 7061e87266e72f0e3b3aae71954c7e63afc60d12
Time: 2020-02-28
Author: gardener@tensorflow.org
File Name: official/utils/misc/keras_utils.py
Class Name: ProfilerCallback
Method Name: on_batch_end


Project Name: tensorflow/models
Commit Name: 3f29beb07087ac01ec8deb8b5a553c54c2652ebb
Time: 2020-02-19
Author: gardener@tensorflow.org
File Name: official/utils/misc/keras_utils.py
Class Name: ProfilerCallback
Method Name: on_batch_end