Why the restful http server does not support type DT_HALF ?
Question as above~
Please provide details about what platform you are using (operating system, architecture).
Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template.
We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!
There is no reason to not support it. Happy to accept+review PRs to support DT_HALF.
Seems that i got the same problem. I used RestApi to request prediction , the data type of models were tf.float16(tf.half), I converted my array into string by str(array.tolist), and the output was {'error': 'Conversion of JSON Value: 0 to type: half'}. how to send DT_HALF format to the models by string?
there is https://github.com/tensorflow/serving/pull/1753 for this under review .