6b33ca24d5df63dcae69f4e6140327f5fecbc897,deeppavlov/core/models/tf_model.py,TFModel,get_checkpoint_state,#TFModel#,87
Before Change
def get_checkpoint_state(self):
if self.ser_path.is_dir():
return tf.train.get_checkpoint_state(self.ser_path)
else:
return tf.train.get_checkpoint_state(self.ser_path.parent)
// @check_path_exists()
After Change
saver.save(self.sess, save_path)
def get_checkpoint_state(self):
if self.load_path:
if self.load_path.parent.is_dir():
return tf.train.get_checkpoint_state(self.load_path.parent)
else:
warn("Provided `load_path` is incorrect!")
else:
warn("No `load_path` is provided for {}".format(self.__class__.__name__)")
@overrides
def load(self):
Load session from checkpoint
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
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: get_checkpoint_state
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: get_checkpoint_state
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