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?

preguntada hace un año436 visualizaciones
1 Respuesta
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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas