Trait burn_tensor::ElementPrecision

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

Element precision trait for tensor.

Required Methods§

source

fn precision() -> Precision

Returns the precision of the element.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ElementPrecision for bool

source§

impl ElementPrecision for f32

source§

impl ElementPrecision for f64

source§

impl ElementPrecision for i8

source§

impl ElementPrecision for i16

source§

impl ElementPrecision for i32

source§

impl ElementPrecision for i64

source§

impl ElementPrecision for u8

source§

impl ElementPrecision for u32

source§

impl ElementPrecision for u64

Implementors§