Skip to main content

primary_weight

Function primary_weight 

Source
pub fn primary_weight(id: &str) -> Result<Vec<u8>, String>
Expand description

Convenience: resolve a model by id and read its primary weight file. Combines find_model + primary_weight_bytes so callers (pipeline runners, external hosts) don’t repeat the lookup+fetch boilerplate. Errors if the id is unknown.