跳转至

DMelChunk

class mint.types.DmelChunk ( StrictBase )

字段:

  • dmel ( bytes ) – 序列化的 TensorContainer 字节,存放 DMel 模型的 token 张量。
  • type ( Literal['dmel'] )

validate_dmel ( value )

如有需要,将 base64 字符串反序列化为 bytes。

参数:

  • value ( Union[bytes, str] )

返回: bytes

serialize_dmel ( value )

将 bytes 序列化为 base64 字符串,用于 JSON。

参数:

  • value ( bytes )

返回: str