pub trait WeightSource {
// Required method
fn weights(self) -> Result<Vec<(String, Array)>>;
}Expand description
Where crate::Module::load_weights reads named weights from: a safetensors file (a
path), or named arrays (Vec<(String, Array)>, a HashMap or BTreeMap).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".