Trait burn::tensor::ElementPrecision

pub trait ElementPrecision {
    // Required method
    fn precision() -> Precision;
}
Expand description

Element precision trait for tensor.

Required Methods§

fn precision() -> Precision

Returns the precision of the element.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl ElementPrecision for bool

§

impl ElementPrecision for f32

§

impl ElementPrecision for f64

§

impl ElementPrecision for i8

§

impl ElementPrecision for i16

§

impl ElementPrecision for i32

§

impl ElementPrecision for i64

§

impl ElementPrecision for u8

§

impl ElementPrecision for u32

§

impl ElementPrecision for u64

Implementors§