6506f3a125e001e7667771f3c1f570c53dbefd06,tgen/seq2seq.py,Seq2SeqGen,save_to_file,#Seq2SeqGen#Any#,290
Before Change
self._training_pass(iter_no)
def save_to_file(self, fname):
raise NotImplementedError()
def generate_tree(self, inputs):
raise NotImplementedError()
After Change
"max_da_len": self.max_da_len,
"max_tree_len": self.max_tree_len}
pickle.dump(data, fh, protocol=pickle.HIGHEST_PROTOCOL)
tf_session_fname = re.sub(r"(.pickle)?(.gz)?$", ".tfsess", model_fname)
self.saver.save(self.session, tf_session_fname)
@staticmethod
def load_from_file(model_fname):
log_info("Loading generator from %s..." % model_fname)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: UFAL-DSG/tgen
Commit Name: 6506f3a125e001e7667771f3c1f570c53dbefd06
Time: 2016-01-08
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/seq2seq.py
Class Name: Seq2SeqGen
Method Name: save_to_file
Project Name: dPys/PyNets
Commit Name: 1a9f3a19b1de9d085271182314a24d58ea1f13f9
Time: 2019-09-19
Author: dpisner@utexas.edu
File Name: pynets/dmri/track.py
Class Name:
Method Name: save_streams
Project Name: facebookresearch/Horizon
Commit Name: e7c7b265541257e33c4b02854b589f4dafb13fcf
Time: 2020-04-24
Author: wangkaiwen998@gmail.com
File Name: reagent/workflow/model_managers/model_manager.py
Class Name: ModelManager
Method Name: train_workflow