TensorFlow Serving

TensorFlow Serving

https://tf.wiki/zh/deployment/serving.html

client 怎么构造要 request 的数据呢?只用 list 会出现下面的错误:

dataInput = prepareData (stringList).to_list ()

data = json.dumps ({

    "instances": dataInput

    })

“error”: “instances is a plain list, but expecting list of objects as multiple input tensors required as per tensorinfo_map”

请提供一个最小可运行的程序,否则完全不知道 prepareData (stringList) 是在做什么。

@snowkylin 你好,请问下当模型运行需要多个输入时, data 要怎么构建呢