IdentitySerializer | R Documentation |
This serializer may be useful if, for example, you're sending raw bytes such as from an image file's method.
sagemaker.mlcore::BaseSerializer
-> sagemaker.mlcore::SimpleBaseSerializer
-> IdentitySerializer
new()
Initialize an “IdentitySerializer“ instance.
IdentitySerializer$new(content_type = "application/octet-stream")
content_type
(str): The MIME type to signal to the inference endpoint when sending request data (default: "application/octet-stream").
serialize()
Return data without modification.
IdentitySerializer$serialize(data)
data
(object): Data to be serialized.
object: The unmodified data.
clone()
The objects of this class are cloneable with this method.
IdentitySerializer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other serializer:
BaseDeserializer
,
BaseSerializer
,
BytesDeserializer
,
CSVDeserializer
,
CSVSerializer
,
DataTableDeserializer
,
JSONDeserializer
,
JSONLinesDeserializer
,
JSONLinesSerializer
,
JSONSerializer
,
LibSVMSerializer
,
NumpyDeserializer
,
NumpySerializer
,
SimpleBaseDeserializer
,
SimpleBaseSerializer
,
SparseMatrixSerializer
,
StringDeserializer
,
TibbleDeserializer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.