RecordSerializer: RecordSerializer Class

RecordSerializerR Documentation

RecordSerializer Class

Description

Serialize a matrices and array for an inference request.

Super classes

sagemaker.mlcore::BaseSerializer -> sagemaker.mlcore::SimpleBaseSerializer -> RecordSerializer

Methods

Public methods

Inherited methods

Method new()

Intialize RecordSerializer class

Usage
RecordSerializer$new(content_type = "application/x-recordio-protobuf")
Arguments
content_type

(str): The MIME type to signal to the inference endpoint when sending request data (default: "application/x-recordio-protobuf").


Method serialize()

Serialize a matrix/array into a buffer containing RecordIO records.

Usage
RecordSerializer$serialize(data)
Arguments
data

(matrix): The data to serialize.

Returns

raw: A buffer containing the data serialized as records.


Method clone()

The objects of this class are cloneable with this method.

Usage
RecordSerializer$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.