Skip to main content

primary_bytes

Function primary_bytes 

Source
pub fn primary_bytes(spec: &ModelSpec) -> Result<Vec<u8>, DownloadError>
Expand description

Read the primary (first) weight file of a model into memory. Convenience for handing bytes straight to super::onnx::OnnxModel::load.