Trait onnxruntime::TypeToTensorElementDataType[][src]

pub trait TypeToTensorElementDataType {
    fn tensor_element_data_type() -> TensorElementDataType;
fn try_utf8_bytes(&self) -> Option<&[u8]>; }
Expand description

Trait used to map Rust types (for example f32) to ONNX types (for example Float)

Required methods

Return the ONNX type for a Rust type

If the type is String, returns Some with utf8 contents, else None.

Implementations on Foreign Types

Implementors