Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api_rest.md): JSON key of regress/classify response is results instead of result #3652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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