Commit 87ab6954 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Make dtype in Image class actually modifiable.

Changing dtype to any other type other than default will cause a crash because
decode_jpeg or decode_image will promise to return uint8 all the time while
decode_raw will actually vary its return type. This mismatch of types causes
tf.case to fail and  makes dtype parameter unusable.

PiperOrigin-RevId: 210975290
parent d340f470
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment