pub trait ZeroTensor {
    // Required method
    fn zeros(shape: &[i64]) -> Tensor;
}
Expand description

Adds capability of constructing Tensor with a static method.

Required Methods§

source

fn zeros(shape: &[i64]) -> Tensor

Constructs zero tensor.

Implementations on Foreign Types§

source§

impl ZeroTensor for i32

source§

fn zeros(shape: &[i64]) -> Tensor

source§

impl ZeroTensor for i64

source§

fn zeros(shape: &[i64]) -> Tensor

source§

impl ZeroTensor for f32

source§

fn zeros(shape: &[i64]) -> Tensor

source§

impl ZeroTensor for u8

source§

fn zeros(shape: &[i64]) -> Tensor

Implementors§