#[repr(u32)]pub enum TensorElementDataType {
Float = 1,
Uint8 = 2,
Int8 = 3,
Uint16 = 4,
Int16 = 5,
Int32 = 6,
Int64 = 7,
String = 8,
Double = 11,
Uint32 = 12,
Uint64 = 13,
}
Expand description
Enum mapping ONNX Runtime’s supported tensor types
Variants§
Float = 1
32-bit floating point, equivalent to Rust’s f32
Uint8 = 2
Unsigned 8-bit int, equivalent to Rust’s u8
Int8 = 3
Signed 8-bit int, equivalent to Rust’s i8
Uint16 = 4
Unsigned 16-bit int, equivalent to Rust’s u16
Int16 = 5
Signed 16-bit int, equivalent to Rust’s i16
Int32 = 6
Signed 32-bit int, equivalent to Rust’s i32
Int64 = 7
Signed 64-bit int, equivalent to Rust’s i64
String = 8
String, equivalent to Rust’s String
Double = 11
64-bit floating point, equivalent to Rust’s f64
Uint32 = 12
Unsigned 32-bit int, equivalent to Rust’s u32
Uint64 = 13
Unsigned 64-bit int, equivalent to Rust’s u64
Trait Implementations§
Source§impl Debug for TensorElementDataType
impl Debug for TensorElementDataType
Source§impl From<TensorElementDataType> for ONNXTensorElementDataType
impl From<TensorElementDataType> for ONNXTensorElementDataType
Source§fn from(val: TensorElementDataType) -> Self
fn from(val: TensorElementDataType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TensorElementDataType
impl RefUnwindSafe for TensorElementDataType
impl Send for TensorElementDataType
impl Sync for TensorElementDataType
impl Unpin for TensorElementDataType
impl UnwindSafe for TensorElementDataType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more