MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / WriteImageSeries

Function WriteImageSeries

tensorboard/scripts/generate_testdata.py:115–126  ·  view source on GitHub ↗

Write a few dummy images to writer.

(writer, tag, n_images=1)

Source from the content-addressed store, hash-verified

113
114
115def WriteImageSeries(writer, tag, n_images=1):
116 """Write a few dummy images to writer."""
117 step = 0
118 session = tf.compat.v1.Session()
119 p = tf.compat.v1.placeholder("uint8", (1, 4, 4, 3))
120 s = tf.compat.v1.summary.image(tag, p)
121 for _ in range(n_images):
122 im = np.random.random_integers(0, 255, (1, 4, 4, 3))
123 summ = session.run(s, feed_dict={p: im})
124 writer.add_summary(summ, step)
125 step += 20
126 session.close()
127
128
129def WriteAudioSeries(writer, tag, n_audio=1):

Callers 1

GenerateTestDataFunction · 0.85

Calls 5

rangeFunction · 0.85
add_summaryMethod · 0.80
imageMethod · 0.45
runMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…