51e9611843caea57bebdc1d8cf2a2c9c1ecf090b,tensorboard/plugins/image/images_plugin_test.py,ImagesPluginTest,setUp,#ImagesPluginTest#,43

Before Change


    tf.summary.image(name="baz", tensor=placeholder)
    merged_summary_op = tf.summary.merge_all()
    foo_directory = os.path.join(self.log_dir, "foo")
    writer = tf.summary.FileWriter(foo_directory)
    writer.add_graph(sess.graph)
    for step in xrange(2):
      writer.add_summary(sess.run(merged_summary_op, feed_dict={
          placeholder: (numpy.random.rand(1, 16, 42, 3) * 255).astype(
              numpy.uint8)
      }), global_step=step)
    writer.close()

    // Create new-style image summaries for run bar.
    tf.reset_default_graph()
    sess = tf.Session()

After Change


    tf.summary.image(name="baz", tensor=placeholder)
    merged_summary_op = tf.summary.merge_all()
    foo_directory = os.path.join(self.log_dir, "foo")
    with test_util.FileWriterCache.get(foo_directory) as writer:
      writer.add_graph(sess.graph)
      for step in xrange(2):
        writer.add_summary(sess.run(merged_summary_op, feed_dict={
            placeholder: (numpy.random.rand(1, 16, 42, 3) * 255).astype(
                numpy.uint8)
        }), global_step=step)

    // Create new-style image summaries for run bar.
    tf.reset_default_graph()
    sess = tf.Session()
    placeholder = tf.placeholder(tf.uint8)
    summary.op(name="quux", images=placeholder,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: tensorflow/tensorboard
Commit Name: 51e9611843caea57bebdc1d8cf2a2c9c1ecf090b
Time: 2018-12-10
Author: stephanwlee@gmail.com
File Name: tensorboard/plugins/image/images_plugin_test.py
Class Name: ImagesPluginTest
Method Name: setUp


Project Name: tensorflow/tensorboard
Commit Name: 51e9611843caea57bebdc1d8cf2a2c9c1ecf090b
Time: 2018-12-10
Author: stephanwlee@gmail.com
File Name: tensorboard/plugins/image/images_plugin_test.py
Class Name: ImagesPluginTest
Method Name: setUp


Project Name: tensorflow/tensorboard
Commit Name: 51e9611843caea57bebdc1d8cf2a2c9c1ecf090b
Time: 2018-12-10
Author: stephanwlee@gmail.com
File Name: tensorboard/plugins/audio/audio_plugin_test.py
Class Name: AudioPluginTest
Method Name: setUp


Project Name: tensorflow/tensorboard
Commit Name: 51e9611843caea57bebdc1d8cf2a2c9c1ecf090b
Time: 2018-12-10
Author: stephanwlee@gmail.com
File Name: tensorboard/plugins/text/text_plugin_test.py
Class Name: TextPluginBackwardsCompatibilityTest
Method Name: generate_testdata


Project Name: tensorflow/tensorboard
Commit Name: 51e9611843caea57bebdc1d8cf2a2c9c1ecf090b
Time: 2018-12-10
Author: stephanwlee@gmail.com
File Name: tensorboard/plugins/scalar/scalars_plugin_test.py
Class Name: ScalarsPluginTest
Method Name: generate_run