2d34259281a6251cbdc67103ce8a1310010b8ceb,orbit/controller.py,Controller,__init__,#Controller#,39

Before Change


      checkpoint_interval = self.checkpoint_manager.checkpoint_interval
      restored_path = self.restore_checkpoint()
      if restored_path:
        logging.info("Restored from checkpoint: %s", restored_path)

  def train(self, steps: int, checkpoint_at_completion: bool = True):
    Runs training.

After Change


              f"`summary interval` ({summary_interval}) must be a multiple "
              f"of `steps_per_loop` ({steps_per_loop}).")

    if global_step is None:
      raise ValueError("`global_step` is required.")
    elif not isinstance(global_step, tf.Variable):
      raise ValueError("`global_step` must be a `tf.Variable`.")

    self.trainer = trainer
    self.evaluator = evaluator

    self.strategy = strategy or tf.distribute.get_strategy()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: tensorflow/models
Commit Name: 2d34259281a6251cbdc67103ce8a1310010b8ceb
Time: 2020-10-05
Author: dhr@google.com
File Name: orbit/controller.py
Class Name: Controller
Method Name: __init__


Project Name: tensorflow/models
Commit Name: 3c61d59128c88f7e155a84296e1b9c1d0fa56170
Time: 2020-12-03
Author: gardener@tensorflow.org
File Name: official/nlp/data/wmt_dataloader_test.py
Class Name: WMTDataLoaderTest
Method Name: test_load_dataset


Project Name: tensorflow/models
Commit Name: 2d34259281a6251cbdc67103ce8a1310010b8ceb
Time: 2020-10-05
Author: dhr@google.com
File Name: orbit/controller.py
Class Name: Controller
Method Name: evaluate


Project Name: gooofy/zamia-speech
Commit Name: 3a950d92c730698b10e196ab819ee72da015cd5d
Time: 2018-05-05
Author: guenter@zamia.org
File Name: auto_review.py
Class Name:
Method Name: