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?

질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠