2399144826ce08e9052859539450fd779678d4de,tflearn/helpers/trainer.py,Trainer,save,#Trainer#Any#Any#,357

Before Change


        // Temp workaround for tensorflow 0.7+ dict proto serialization issue
        obj_lists = utils.fix_saver()
        // TF 0.12 Fix
        if not model_file[0] in ["/", "~"]:
            model_file = "./" + model_file
        self.saver.save(self.session, model_file, global_step=global_step)
        utils.fix_saver(obj_lists)

After Change


        // Temp workaround for tensorflow 0.7+ dict proto serialization issue
        obj_lists = utils.fix_saver()
        // TF 0.12 Fix
        if not os.path.isabs(model_file):
            model_file = os.path.abspath(os.path.join(os.getcwd(), model_file))
        self.saver.save(self.session, model_file, global_step=global_step)
        utils.fix_saver(obj_lists)

    def restore(self, model_file, trainable_variable_only=False, variable_name_map=None, scope_for_restore=None,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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


Project Name: tensorlayer/tensorlayer
Commit Name: 6d9a2026ed5b80b24c6e3262f1dfc9380d90aa24
Time: 2018-04-16
Author: contact@jonathandekhtiar.eu
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