894e11848c556e119722eee8395017dcab6ed485,tgen/tfclassif.py,RerankingClassifier,_save_checkpoint,#RerankingClassifier#,159

Before Change


        Save a checkpoint to a temporary path; set `self.checkpoint_path` to the path
        where it is saved; if called repeatedly, will always overwrite the last checkpoint.
        if not self.checkpoint_path:
            fh, path = tempfile.mkstemp(".ckpt", "tftreecl-", self.checkpoint_path)
            self.checkpoint_path = path
        log_info("Saving checkpoint to %s" % self.checkpoint_path)
        self.saver.save(self.session, self.checkpoint_path)

After Change


        Save a checkpoint to a temporary path; set `self.checkpoint_path` to the path
        where it is saved; if called repeatedly, will always overwrite the last checkpoint.
        if not self.checkpoint_path:
            path = tempfile.mkdtemp(suffix="", prefix="tftreecl-")
            self.checkpoint_path = os.path.join(path, "ckpt")
        log_info("Saving checkpoint to %s" % self.checkpoint_path)
        self.saver.save(self.session, self.checkpoint_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: UFAL-DSG/tgen
Commit Name: 894e11848c556e119722eee8395017dcab6ed485
Time: 2017-04-18
Author: o.dusek@hw.ac.uk
File Name: tgen/tfclassif.py
Class Name: RerankingClassifier
Method Name: _save_checkpoint


Project Name: UFAL-DSG/tgen
Commit Name: 894e11848c556e119722eee8395017dcab6ed485
Time: 2017-04-18
Author: o.dusek@hw.ac.uk
File Name: tgen/seq2seq.py
Class Name: Seq2SeqGen
Method Name: _save_checkpoint


Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main


Project Name: cesium-ml/cesium
Commit Name: 820de79517aaed577f9af9131f5ec87cd432f04a
Time: 2015-02-06
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: make_tmp_dir