def test_image_with_boxes(self): self.assertTrue( compare_image_proto( summary.image_boxes('dummy', tensor_N(shape=(3, 32, 32)), np.array([[10, 10, 40, 40]])), self))
def test_image_with_boxes(self): self.assertTrue(compare_proto(summary.image_boxes('dummy', np.random.rand(3, 32, 32).astype(np.float32), np.array([[10, 10, 40, 40]])), self))