Trait DynamicTensorOps

Source
pub trait DynamicTensorOps<T> {
    // Required methods
    fn as_bytes(&self) -> Vec<u8> ;
    fn nrows(&self) -> usize;
    fn shape(&self) -> (usize, usize);
    fn to_vec(&self) -> Vec<T>;
    fn min_vec(&self) -> Vec<T>;
    fn max_vec(&self) -> Vec<T>;
}
Expand description

Trait for common DynamicTensor operations

Required Methods§

Source

fn as_bytes(&self) -> Vec<u8>

Source

fn nrows(&self) -> usize

Source

fn shape(&self) -> (usize, usize)

Source

fn to_vec(&self) -> Vec<T>

Source

fn min_vec(&self) -> Vec<T>

Source

fn max_vec(&self) -> Vec<T>

Implementors§

Source§

impl DynamicTensorOps<f32> for DynamicTensorFloat1D

DynamicTensorOps for Float 1D tensors

Source§

impl DynamicTensorOps<f32> for DynamicTensorFloat2D

DynamicTensorOps for Float 2D tensors

Source§

impl DynamicTensorOps<u32> for DynamicTensorInt1D

DynamicTensorOps for Int 1D tensors

Source§

impl DynamicTensorOps<u32> for DynamicTensorInt2D

DynamicTensorOps for Int 2D tensors