Skip to content

Conversation

Ryuheeeei
Copy link

I thought the JSON key of regress and classify response is results, not result.

When I follow Example section of https://www.tensorflow.org/tfx/serving/api_rest, I got the following response which the key is results, not result as described in website. Also, I tried the classify request, and found it return the label/score pairs with the results key.

{
    "results": [3.5, 4.0]
}

It seems the response key is defined results here.

constexpr char kClassifyRegressResponseKey[] = "results";

Sorry if I misunderstood. In case of this is my misunderstanding, I'll close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant