85f2b3f57ec5bf4f24edb0dd392bdef22753e063,open_seq2seq/utils/utils.py,,log_summaries_from_dict,#,253

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


  
  sm_writer = tf.summary.FileWriterCache.get(output_dir)
  for tag, value in dict_to_log.items():
    if isinstance(value, 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():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: tryolabs/luminoth
Commit Name: ad131f0d7d997460739222e55f2e009353c24ae9
Time: 2017-06-22
Author: javirey@gmail.com
File Name: frcnn/train.py
Class Name:
Method Name: train


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