Skip to main content

load

Function load 

Source
pub fn load<M: DeserializeOwned>(
    path: impl AsRef<Path>,
    expected_type: ModelType,
) -> Result<M>
Expand description

Load a model from a .apr (v1 APRN) file.

§Errors

Returns an error on I/O failure, format error, checksum failure, or type mismatch.