9a32fcfaedc5a4240f151f7ec8fd899e17c131d4,deeppavlov/models/ner/ner_network.py,NerNetwork,save,#NerNetwork#Any#,174

Before Change



    def save(self, model_file_path=None):
        if model_file_path is None:
            if not os.path.exists(MODEL_PATH):
                os.mkdir(MODEL_PATH)
            model_file_path = os.path.join(MODEL_PATH, MODEL_FILE_NAME)
        saver = tf.train.Saver()
        saver.save(self._sess, model_file_path)

After Change



    def save(self, model_file_path):
        saver = tf.train.Saver()
        saver.save(self._sess, str(model_file_path))

    def load(self, model_file_path):
        saver = tf.train.Saver()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 9a32fcfaedc5a4240f151f7ec8fd899e17c131d4
Time: 2018-01-10
Author: akrhipov@yahoo.com
File Name: deeppavlov/models/ner/ner_network.py
Class Name: NerNetwork
Method Name: save


Project Name: naoto0804/pytorch-AdaIN
Commit Name: 8c77b5b7e0f8abe110a6a2efe2eb190bf50ecd43
Time: 2019-09-06
Author: inoue@hal.t.u-tokyo.ac.jp
File Name: train.py
Class Name:
Method Name:


Project Name: deepmipt/DeepPavlov
Commit Name: 7c220ef31a005771d0b45eb06dd62ff8a3c8aa5a
Time: 2018-01-15
Author: ol.gure@gmail.com
File Name: deeppavlov/models/ner/ner_network.py
Class Name: NerNetwork
Method Name: save


Project Name: deepmipt/DeepPavlov
Commit Name: 9a32fcfaedc5a4240f151f7ec8fd899e17c131d4
Time: 2018-01-10
Author: akrhipov@yahoo.com
File Name: deeppavlov/models/ner/ner_network.py
Class Name: NerNetwork
Method Name: save