pub fn dump_model<const IN: usize, const OUT: usize>(
model: &NeuralNetwork<IN, OUT>,
path: impl AsRef<Path>,
) -> Result<(), ModelError>Expand description
Writes a model to path, in the newest format version.
§Errors
Returns ModelError::Io if the file cannot be written.
§Example
let nn = NeuralNetwork::<2, 1>::new(&[2]);
dump_model(&nn, "model.bin")?;