Trait TensorType

Source
pub trait TensorType: Clone {
    type InnerType;

    // Required methods
    fn val() -> u32;
    fn zero() -> Self;
}
Expand description

TensorType trait. Internal only.

Required Associated Types§

Required Methods§

Source

fn val() -> u32

Source

fn zero() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TensorType for bool

Source§

impl TensorType for f32

Source§

impl TensorType for f64

Source§

impl TensorType for i8

Source§

type InnerType = i8

Source§

fn val() -> u32

Source§

fn zero() -> Self

Source§

impl TensorType for i16

Source§

impl TensorType for i32

Source§

impl TensorType for i64

Source§

impl TensorType for u8

Source§

type InnerType = u8

Source§

fn val() -> u32

Source§

fn zero() -> Self

Source§

impl TensorType for u16

Source§

impl TensorType for u32

Source§

impl TensorType for u64

Implementors§