serving icon indicating copy to clipboard operation
serving copied to clipboard

Why the restful http server does not support type DT_HALF ?

Open venuswu opened this issue 5 years ago • 4 comments

Question as above~

venuswu avatar May 22 '20 10:05 venuswu

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!

rmothukuru avatar May 25 '20 03:05 rmothukuru

There is no reason to not support it. Happy to accept+review PRs to support DT_HALF.

netfs avatar May 30 '20 18:05 netfs

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?

FishJyz avatar Sep 17 '20 09:09 FishJyz

there is https://github.com/tensorflow/serving/pull/1753 for this under review .

netfs avatar Dec 04 '20 06:12 netfs