Closed ambodi closed 3 years ago
@ambodi : Your serving input receiver function expects a serialized tf.Example
, whereas your PredictRequest contains serialized ELWCs. In the Antique example, we use tfr.data.build_ranking_serving_input_receiver_fn
for using PredictRequest with serialized ELWCs.
@ambodi : Does my previous comment fix your issue? Let us know if you have any further questions.
@ambodi hope the previous comment on using the right input receiver function addresses this issue. Closing this for now due to inactivity, please feel free to reopen or start a new issue. Thanks.
I am following your antique example and I am interested in getting the predictions with Tensorflow Serving. I first change the code and added the following function
In addition, I added an export:
In order to make the model run, I ran the following command:
For the prediction, I added the following code:
However when I try to get predictions:
And then:
I am getting the following error:
Can anybody help me what I am wrong?