(self, *args, **kwargs)
| 157 | |
| 158 | class 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) |
no test coverage detected