0ddd27b71f54be5682da90473d00ea671a3459ca,deeppavlov/core/models/tf_model.py,TFModel,get_checkpoint_state,#TFModel#,89

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


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

Frequency: 3

Non-data size: 3

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: get_checkpoint_state


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: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: load