rotta_rs 0.0.5

a Deep Learning library with rust language
Documentation
1
2
3
4
5
use crate::Tensor;

pub fn mean(x: &Tensor) -> Tensor {
    &x.sum() / (x.len() as f64)
}