2e530e78c78c3f9f899143c437f55618d3038951,deeppavlov/core/models/tf_model.py,TFModel,load,#TFModel#,116

Before Change


        
        ckpt = self.get_checkpoint_state()
        if ckpt and ckpt.model_checkpoint_path:
            log.info("[restoring checkpoint from {}]".format(ckpt.model_checkpoint_path))
            self._saver().restore(self.sess, ckpt.model_checkpoint_path)
            log.info("session restored")
        else:
            log.error("checkpoint not found!")

After Change



    def load(self):
        Load model parameters from self.load_path
        path = str(self.load_path.resolve())
        // Check presence of the model files
        if tf.train.checkpoint_exists(path):
            print("[loading model from {}]".format(path), file=sys.stderr)
            saver = tf.train.Saver()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 2e530e78c78c3f9f899143c437f55618d3038951
Time: 2018-02-18
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: load


Project Name: ray-project/ray
Commit Name: 40b8e35d61982b149e88fc09effd001879649bff
Time: 2020-08-11
Author: maximsmol@gmail.com
File Name: python/ray/resource_spec.py
Class Name: ResourceSpec
Method Name: resolve


Project Name: ray-project/ray
Commit Name: 908c0c630a6c7c6e35b7bb0e172d41372bfb309d
Time: 2020-07-22
Author: maximsmol@gmail.com
File Name: python/ray/autoscaler/updater.py
Class Name: NodeUpdater
Method Name: run