RecordDeserializer: RecordDeserializer Class

RecordDeserializerR Documentation

RecordDeserializer Class

Description

Deserialize RecordIO Protobuf data from an inference endpoint.

Super classes

sagemaker.mlcore::BaseDeserializer -> sagemaker.mlcore::SimpleBaseDeserializer -> RecordDeserializer

Methods

Public methods

Inherited methods

Method new()

Intialize RecordDeserializer class

Usage
RecordDeserializer$new(accept = "application/x-recordio-protobuf")
Arguments
accept

(union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that is expected from the inference endpoint (default: "application/x-recordio-protobuf").


Method deserializer()

Deserialize RecordIO Protobuf data from an inference endpoint.

Usage
RecordDeserializer$deserializer(data, content_type)
Arguments
data

(object): The protobuf message to deserialize.

content_type

(str): The MIME type of the data.

Returns

list: A list of records.


Method clone()

The objects of this class are cloneable with this method.

Usage
RecordDeserializer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


DyfanJones/sagemaker-r-mlcore documentation built on May 3, 2022, 10:08 a.m.