Skip to main content

encoder

superduper.ext.numpy.encoder

Source code

array​

array(dtype: str,
shape: Sequence,
bytes_encoding: Optional[str] = None,
encodable: str = 'encodable')
ParameterDescription
dtypeThe dtype of the array.
shapeThe shape of the array.
bytes_encodingThe bytes encoding to use.
encodableThe encodable to use.

Create an encoder of numpy arrays.

DecodeArray​

DecodeArray(self,
dtype,
shape)
ParameterDescription
dtypeThe dtype of the array.
shapeThe shape of the array.

Decode a numpy array from bytes.

EncodeArray​

EncodeArray(self,
dtype)
ParameterDescription
dtypeThe dtype of the array.

Encode a numpy array to bytes.