小编Ish*_*rma的帖子

{ "error": "inputs 是一个普通的值/列表,但期望一个对象作为每个 tensorinfo_map 所需的多个输入张量"}

我正在使用 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)

python json tensorflow tensorflow-serving

4
推荐指数
1
解决办法
1564
查看次数

标签 统计

json ×1

python ×1

tensorflow ×1

tensorflow-serving ×1