1b13cb710528bc7ebfaf7e402cdc2c1090f0afe5,deeplearning/clgen/models/tensorflow_backend.py,TensorFlowModel,_LockedTrain,#TensorFlowModel#,177

Before Change


      max_batch = self.config.training.num_epochs * self.data_generator.num_batches

      if sess.run(self.epoch) != self.config.training.num_epochs:
        logging.info("training, %s", self)

      // Per-epoch training loop.
      // TODO(cec): Per-epoch progress bars.
      for epoch_num in range(sess.run(self.epoch) + 1,

After Change


        logging.info("Loss: %.6f.", loss)

        // Save after every epoch.
        start_time = time.time()
        global_step = epoch_num
        checkpoint_prefix = (self.cache.path / "checkpoints" / "checkpoint")
        saver.save(sess, checkpoint_prefix, global_step=global_step)
        checkpoint_path = f"{checkpoint_prefix}-{global_step}"
        logging.info(
            "Saved checkpoint %s in %s ms.",
            checkpoint_path,
            humanize.intcomma(int((time.time() - start_time) * 1000)))
        assert pathlib.Path(
            f"{checkpoint_prefix}-{global_step}.index").is_file()
        assert pathlib.Path(f"{checkpoint_prefix}-{global_step}.meta").is_file()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ChrisCummins/clgen
Commit Name: 1b13cb710528bc7ebfaf7e402cdc2c1090f0afe5
Time: 2018-06-05
Author: chrisc.101@gmail.com
File Name: deeplearning/clgen/models/tensorflow_backend.py
Class Name: TensorFlowModel
Method Name: _LockedTrain


Project Name: ChrisCummins/clgen
Commit Name: 1b13cb710528bc7ebfaf7e402cdc2c1090f0afe5
Time: 2018-06-05
Author: chrisc.101@gmail.com
File Name: deeplearning/clgen/models/tensorflow_backend.py
Class Name: TensorFlowModel
Method Name: _LockedTrain


Project Name: MaybeShewill-CV/lanenet-lane-detection
Commit Name: 699898507179e8429792c137b5af404551d049e1
Time: 2018-05-31
Author: luoyao@baidu.com
File Name: tools/test_lanenet.py
Class Name:
Method Name: test_lanenet_batch


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