zeros

Function zeros 

Source
pub fn zeros<B>(
    shape: impl Into<Shape>,
    dtype: DType,
    device: &<B as Backend>::Device,
) -> Result<Tensor<B>, Error>
where B: Backend,
Expand description

Initialize a tensor with all zeros (as a variable).