566e089f21fd004943e35652d39ed7becbdfe1ad,open_seq2seq/utils/utils.py,,log_summaries_from_dict,#Any#Any#Any#,248
Before Change
// the first call to this function
sm_writer = tf.summary.FileWriterCache.get(output_dir)
for tag, value in dict_to_log.items():
sm_writer.add_summary(
tf.Summary(value=[tf.Summary.Value(tag=tag, simple_value=value)]),
global_step=step,
)
sm_writer.flush()
def get_git_hash():
After Change
// the first call to this function
sm_writer = tf.summary.FileWriterCache.get(output_dir)
for tag, value in dict_to_log.items():
if type(value) == type(tf.Summary.Value()):
sm_writer.add_summary(
tf.Summary(value=[value]),
global_step=step,
)
else:
sm_writer.add_summary(
tf.Summary(value=[tf.Summary.Value(tag=tag, simple_value=value)]),
global_step=step,
)
sm_writer.flush()
def get_git_hash():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 566e089f21fd004943e35652d39ed7becbdfe1ad
Time: 2018-06-21
Author: jasoli@nvidia.com
File Name: open_seq2seq/utils/utils.py
Class Name:
Method Name: log_summaries_from_dict
Project Name: NifTK/NiftyNet
Commit Name: 09f72ac06873b4069b8fddad769be3f1148a5791
Time: 2017-08-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _training_loop
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 85f2b3f57ec5bf4f24edb0dd392bdef22753e063
Time: 2018-07-13
Author: jasonli9@live.ca
File Name: open_seq2seq/utils/utils.py
Class Name:
Method Name: log_summaries_from_dict