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 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions