pub fn load_from_bytes<M: DeserializeOwned>(
data: &[u8],
expected_type: ModelType,
) -> Result<M>Expand description
Load a model from a byte slice (spec §1.1 — single-binary deployment).
Enables the include_bytes!() pattern for embedding models directly in
executables.
§Errors
Returns an error on format error, type mismatch, or checksum failure.