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

error when serving seq_tagger model #31

Closed
alucardpj opened this issue Nov 30, 2017 · 0 comments
Closed

error when serving seq_tagger model #31

alucardpj opened this issue Nov 30, 2017 · 0 comments
Labels

Comments

@alucardpj
Copy link
Contributor

I trained a seq_tagger model and serve it using tensorflow serving, but when I test the serving model, I got the error message:

grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.INVALID_ARGUMENT, details="Placeholder_3:0 is both fed and fetched.")

the model detailed info is below:

The given SavedModel SignatureDef contains the following input(s):
inputs['chars'] tensor_info:
dtype: DT_STRING
shape: (-1, -1, -1)
name: Placeholder_2:0
inputs['length'] tensor_info:
dtype: DT_INT32
shape: (-1)
name: Placeholder_3:0
inputs['tokens'] tensor_info:
dtype: DT_STRING
shape: (-1, -1)
name: Placeholder:0
The given SavedModel SignatureDef contains the following output(s):
outputs['length'] tensor_info:
dtype: DT_INT32
shape: (-1)
name: Placeholder_3:0
outputs['tags'] tensor_info:
dtype: DT_STRING
shape: (-1, -1)
name: seqtagger/index_to_string_Lookup:0
Method name is: tensorflow/serving/predict

it shows that the inputs['length'] and the output['length'] are the same placeholder, so it raise error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants