MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / image

Method image

tensorboard/plugins/image/summary_test.py:159–165  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

157
158class SummaryV1OpTest(SummaryBaseTest, tf.test.TestCase):
159 def image(self, *args, **kwargs):
160 args = list(args)
161 # Force first argument to tf.uint8 since the V1 version requires this.
162 args[1] = tf.cast(tf.constant(args[1]), tf.uint8)
163 return summary_pb2.Summary.FromString(
164 summary.op(*args, **kwargs).numpy()
165 )
166
167 def test_tag(self):
168 data = np.array(1, np.uint8, ndmin=4)

Callers 2

test_tagMethod · 0.95
test_scoped_tagMethod · 0.95

Calls 3

listFunction · 0.85
numpyMethod · 0.80
opMethod · 0.80

Tested by

no test coverage detected