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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: 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: NifTK/NiftyNet
Commit Name: d67181e84370f11479e2872271cae56cc2f3b8b3
Time: 2017-08-22
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _summary_dir