How to read a "application/x-recordio-protobuf" response from our Sagemaker inference endpoint?

0

We've deployed a model from our AutoML job in Sagemaker to an endpoint.

When we hit that endpoint, we receive a "application/x-recordio-protobuf" response. How do we read this response?

已提問 1 年前檢視次數 436 次
1 個回答
0

Hi,

Do you want to read the content by yourself? Maybe you can use Deserializer class to do so as shown in official document like following.

from sagemaker.amazon.common import RecordDeserializer
def recordio_protobuf_deserialize(data, content_type):
     rec_des = RecordDeserializer()
     return rec_des.deserialize(data, content_type)

Hope it helps.

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南