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)
def restore(self, model_file, trainable_variable_only=False, variable_name_map=None, scope_for_restore=None,
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,
In pattern: SUPERPATTERN
Frequency: 3
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: save
Project Name: pantsbuild/pants
Commit Name: 0141dec68e6b1f08a5f2a863c85a7d74407e43b7
Time: 2015-05-01
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/scala/zinc_analysis.py
Class Name: ZincAnalysis
Method Name: split
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