我正在使用 tensorflow 服务来部署我的模型。
我的张量信息图是
saved_model_cli show --dir /export/1/ --tag_set serve --signature_def serve_default
The given SavedModel SignatureDef contains the following input(s):
inputs['length_0'] tensor_info:
dtype: DT_INT32
shape: (-1)
name: serving_default_length_0:0
inputs['length_1'] tensor_info:
dtype: DT_INT32
shape: (-1)
name: serving_default_length_1:0
inputs['length_2'] tensor_info:
dtype: DT_INT32
shape: (-1)
name: serving_default_length_2:0
inputs['tokens_0'] tensor_info:
dtype: DT_STRING
shape: (-1, -1)
name: serving_default_tokens_0:0
inputs['tokens_1'] tensor_info:
dtype: DT_STRING
shape: (-1, -1)
name: serving_default_tokens_1:0
inputs['tokens_2'] tensor_info:
dtype: DT_STRING
shape: (-1, -1)
name: serving_default_tokens_2:0
The given SavedModel SignatureDef contains the following output(s):
outputs['alignment'] …Run Code Online (Sandbox Code Playgroud)