Skip to content

protobuf.serialize

Full path: schola.core.protocols.protobuf.serialize

schola.core.protocols.protobuf.serialize

Functions

ItemDescription
dtype_to_proto(dtype)Convert a NumPy dtype to a protobuf DType message.
fill_generic(obj, generic_obj)Fill a generic protobuf Point or Space message with a specific typed message.
make_generic(obj)Convert a specific protobuf message to a generic Point or Space message.
space_to_proto(space)Convert a Gymnasium space to a protobuf Space message.
to_proto(msg)Serialize Python objects to protobuf messages.