pub fn count_parameters<M: Module + ?Sized>(module: &M) -> usize
Get the number of parameters that would be saved.