Function autograd::ndarray_ext::array_gen::ones[][src]

pub fn ones<T: Float>(shape: &[usize]) -> Array<T, IxDyn>
Expand description

Creates an ndarray filled with 1s.