RecordSerializer | R Documentation |
Serialize a matrices and array for an inference request.
sagemaker.mlcore::BaseSerializer
-> sagemaker.mlcore::SimpleBaseSerializer
-> RecordSerializer
new()
Intialize RecordSerializer class
RecordSerializer$new(content_type = "application/x-recordio-protobuf")
content_type
(str): The MIME type to signal to the inference endpoint when sending request data (default: "application/x-recordio-protobuf").
serialize()
Serialize a matrix/array into a buffer containing RecordIO records.
RecordSerializer$serialize(data)
data
(matrix): The data to serialize.
raw: A buffer containing the data serialized as records.
clone()
The objects of this class are cloneable with this method.
RecordSerializer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.