DataTypeInfo

Trait DataTypeInfo 

Source
pub trait DataTypeInfo {
    // Required methods
    fn cudnn_data_type() -> DataType;
    fn cudnn_raw_data_type() -> cudnnDataType_t;
    fn size() -> usize;
}
Expand description

Trait to associate a type with a cudnn type

Required Methods§

Source

fn cudnn_data_type() -> DataType

get cudnn data type

Source

fn cudnn_raw_data_type() -> cudnnDataType_t

get cudnn raw data type

Source

fn size() -> usize

get size

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

Source§

impl DataTypeInfo for f64

Implementors§