2735b8432c474da52b31c26500bda37b2969f615,deeppavlov/core/models/tf_model.py,TFModel,save,#TFModel#,74

Before Change


        return self._forward(instance, *args)

    def save(self):
        if self.ser_path.is_dir():
            save_path = self.ser_path
        else:
            save_path = self.ser_path.parent
        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")

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

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 2735b8432c474da52b31c26500bda37b2969f615
Time: 2018-01-23
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save


Project Name: azavea/raster-vision
Commit Name: 4ec4b827139377bedd8b6d22bfb1080a8770e222
Time: 2020-12-01
Author: adeel.hassan93@gmail.com
File Name: rastervision_pytorch_backend/rastervision/pytorch_backend/pytorch_semantic_segmentation_config.py
Class Name: PyTorchSemanticSegmentationConfig
Method Name: update


Project Name: deepmipt/DeepPavlov
Commit Name: 977fe901da32c0b440d405f4ca2a6d6a1e18d0c5
Time: 2018-01-23
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save