Trait TensorElement

Source
pub trait TensorElement:
    Copy
    + Clone
    + PartialOrd
    + Signed
    + Float
    + Sum
    + Product
    + Display
    + Debug
    + FromStr
    + Default
    + One
    + PartialEq
    + Zero
    + Send
    + Sync
    + Sized
    + Num
    + NumOps
    + NumAssignOps
    + NumAssignRef
    + NumAssign
    + SampleUniform { }
Expand description

TensorElement is a trait explaining all traits an item has to have. FOr now, these restrictions make it so only f32s and f64s are supported, and for AI, this is mostly ok

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 TensorElement for f32

Source§

impl TensorElement for f64

Implementors§