0ddd27b71f54be5682da90473d00ea671a3459ca,deeppavlov/core/models/tf_model.py,TFModel,save,#TFModel#,77

Before Change



    def save(self):
        save_path = self.ser_path
        if save_path.is_dir():
            save_path = save_path / self._ser_file
        elif save_path.parent.is_dir():
            pass
        else:
            raise ConfigError("Provided ser path doesn"t exists")
        print("\n:: saving model to {} \n".format(save_path))
        self._saver().save(sess=self.sess, save_path=str(save_path), global_step=0)
        print("model saved")

After Change



    def save(self):
        save_path = str(self.save_path)
        saver = tf.train.Saver()
        print("Saving NerNetwork model to {}".format(save_path))
        saver.save(self.sess, save_path)

    def get_checkpoint_state(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 0ddd27b71f54be5682da90473d00ea671a3459ca
Time: 2018-01-29
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save


Project Name: tryolabs/luminoth
Commit Name: 4ec258a2261a943910a34be1b7d53a646f089367
Time: 2018-04-16
Author: joaquin.alori@gmail.com
File Name: luminoth/train.py
Class Name:
Method Name: run


Project Name: deepmipt/DeepPavlov
Commit Name: 6b33ca24d5df63dcae69f4e6140327f5fecbc897
Time: 2018-01-26
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save