d86f0ef86868899b112ac61e598a3333fac66ad2,deeppavlov/core/models/tf_model.py,TFModel,save,#TFModel#,79

Before Change


        return self._forward(instance, *args)

    def save(self):
        print("Saving model to `{}`".format(self.model_path_.as_posix()))
        self._saver().save(sess=self.sess, save_path=self.model_path_.as_posix(), global_step=0)
        print("\n:: Model saved to {} \n".format(self.model_path_.as_posix()))

    def get_checkpoint_state(self):

After 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")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: load


Project Name: deepmipt/DeepPavlov
Commit Name: 76125cafc9734441b4dab036e345fbb0abf1d84a
Time: 2018-01-26
Author: ol.gure@gmail.com
File Name: deeppavlov/models/ner/ner_network.py
Class Name: NerNetwork
Method Name: load