meuron 0.4.0

Meuron is a modular neural network library written in rust for training simple neural networks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::backend::Backend;
use crate::initializer::Initializer;
use ndarray::Dimension;

#[derive(Clone, Copy, Debug, Default)]
pub struct Zeros;

impl<B: Backend> Initializer<B> for Zeros {
    fn init<D: Dimension>(&self, shape: D) -> B::Tensor<D> {
        B::zeros(shape)
    }
}