2399144826ce08e9052859539450fd779678d4de,tflearn/helpers/trainer.py,Trainer,restore,#Trainer#,376

Before Change


        
        
        // TF 0.12 Fix
        if not model_file[0] in ["/", "~"]:
            model_file = "./" + model_file

        if create_new_session:

After Change


        
        
        // TF 0.12 Fix
        if not os.path.isabs(model_file):
            model_file = os.path.abspath(os.path.join(os.getcwd(), model_file))

        if create_new_session:
            self.close_session()
            config = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: tflearn/tflearn
Commit Name: 2399144826ce08e9052859539450fd779678d4de
Time: 2016-12-19
Author: aymeric.damien@gmail.com
File Name: tflearn/helpers/trainer.py
Class Name: Trainer
Method Name: restore


Project Name: tflearn/tflearn
Commit Name: 2399144826ce08e9052859539450fd779678d4de
Time: 2016-12-19
Author: aymeric.damien@gmail.com
File Name: tflearn/helpers/trainer.py
Class Name: Trainer
Method Name: save


Project Name: jakeret/tf_unet
Commit Name: dfb5016cefc3bad21ab900a1c8196c46d6bd2297
Time: 2017-12-29
Author: joel.akeret@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: tflearn/tflearn
Commit Name: 2399144826ce08e9052859539450fd779678d4de
Time: 2016-12-19
Author: aymeric.damien@gmail.com
File Name: tflearn/helpers/trainer.py
Class Name: Trainer
Method Name: restore


Project Name: nilmtk/nilmtk
Commit Name: f995ae8ee2aaf365eb3b147e4afb1f7eacc17ee6
Time: 2014-01-06
Author: nipunreddevil@gmail.com
File Name: nilmtk/dataset/dataset.py
Class Name: DataSet
Method Name: export_csv