Function nnsplit::model_loader::get_resource
source · pub fn get_resource(
model_name: &str,
file: &str
) -> Result<(impl Read, Option<PathBuf>), ResourceError>
Expand description
Loads the file for the given model, either retrieving it from the cache or downloading it if it is not found.