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?

gefragt vor einem Jahr433 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen