跳转至

DMelChunk

class mint.types.DmelChunk ( StrictBase )

Fields:

  • dmel ( bytes ) – Serialized TensorContainer bytes holding the DMel model token tensor.
  • type ( Literal['dmel'] )

validate_dmel ( value )

Deserialize base64 string to bytes if needed.

Parameters:

  • value ( Union[bytes, str] )

Returns: bytes

serialize_dmel ( value )

Serialize bytes to base64 string for JSON.

Parameters:

  • value ( bytes )

Returns: str