diff options
Diffstat (limited to 'tensorflow/python/kernel_tests/decode_bmp_op_test.py')
-rw-r--r-- | tensorflow/python/kernel_tests/decode_bmp_op_test.py | 93 |
1 files changed, 23 insertions, 70 deletions
diff --git a/tensorflow/python/kernel_tests/decode_bmp_op_test.py b/tensorflow/python/kernel_tests/decode_bmp_op_test.py index e7a8ac3af6..783492a6f2 100644 --- a/tensorflow/python/kernel_tests/decode_bmp_op_test.py +++ b/tensorflow/python/kernel_tests/decode_bmp_op_test.py @@ -25,82 +25,35 @@ from tensorflow.python.ops import image_ops from tensorflow.python.platform import test + class DecodeBmpOpTest(test.TestCase): def testex1(self): img_bytes = [[[0, 0, 255], [0, 255, 0]], [[255, 0, 0], [255, 255, 255]]] # Encoded BMP bytes from Wikipedia encoded_bytes = [ - 0x42, - 0x40, - 0x46, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0x36, - 0, - 0, - 0, - 0x28, - 0, - 0, - 0, - 0x2, - 0, - 0, - 0, - 0x2, - 0, - 0, - 0, - 0x1, - 0, - 0x18, - 0, - 0, - 0, - 0, - 0, - 0x10, - 0, - 0, - 0, - 0x13, - 0xb, - 0, - 0, - 0x13, - 0xb, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0xff, - 0xff, - 0xff, - 0xff, - 0, - 0, - 0xff, - 0, - 0, - 0, - 0xff, - 0, - 0, - 0, + 0x42, 0x40, + 0x46, 0, 0, 0, + 0, 0, + 0, 0, + 0x36, 0, 0, 0, + 0x28, 0, 0, 0, + 0x2, 0, 0, 0, + 0x2, 0, 0, 0, + 0x1, 0, + 0x18, 0, + 0, 0, 0, 0, + 0x10, 0, 0, 0, + 0x13, 0xb, 0, 0, + 0x13, 0xb, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0xff, + 0xff, 0xff, 0xff, + 0, 0, + 0xff, 0, 0, + 0, 0xff, 0, + 0, 0, ] byte_string = bytes(bytearray(encoded_bytes)) |