Enum ort::TensorElementType
source · pub enum TensorElementType {
Show 14 variants
Float32,
Uint8,
Int8,
Uint16,
Int16,
Int32,
Int64,
String,
Bool,
Float16,
Float64,
Uint32,
Uint64,
Bfloat16,
}
Expand description
Enum mapping ONNX Runtime’s supported tensor data types.
Variants§
Float32
32-bit floating point number, equivalent to Rust’s f32
.
Uint8
Unsigned 8-bit integer, equivalent to Rust’s u8
.
Int8
Signed 8-bit integer, equivalent to Rust’s i8
.
Uint16
Unsigned 16-bit integer, equivalent to Rust’s u16
.
Int16
Signed 16-bit integer, equivalent to Rust’s i16
.
Int32
Signed 32-bit integer, equivalent to Rust’s i32
.
Int64
Signed 64-bit integer, equivalent to Rust’s i64
.
String
String, equivalent to Rust’s String
.
Bool
Boolean, equivalent to Rust’s bool
.
Float16
half
only.16-bit floating point number, equivalent to half::f16
(requires the half
feature).
Float64
64-bit floating point number, equivalent to Rust’s f64
. Also known as double
.
Uint32
Unsigned 32-bit integer, equivalent to Rust’s u32
.
Uint64
Unsigned 64-bit integer, equivalent to Rust’s u64
.
Bfloat16
half
only.Brain 16-bit floating point number, equivalent to half::bf16
(requires the half
feature).
Trait Implementations§
source§impl Clone for TensorElementType
impl Clone for TensorElementType
source§fn clone(&self) -> TensorElementType
fn clone(&self) -> TensorElementType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TensorElementType
impl Debug for TensorElementType
source§impl From<ONNXTensorElementDataType> for TensorElementType
impl From<ONNXTensorElementDataType> for TensorElementType
source§fn from(val: ONNXTensorElementDataType) -> Self
fn from(val: ONNXTensorElementDataType) -> Self
source§impl From<TensorElementType> for ONNXTensorElementDataType
impl From<TensorElementType> for ONNXTensorElementDataType
source§fn from(val: TensorElementType) -> Self
fn from(val: TensorElementType) -> Self
source§impl PartialEq for TensorElementType
impl PartialEq for TensorElementType
source§fn eq(&self, other: &TensorElementType) -> bool
fn eq(&self, other: &TensorElementType) -> bool
self
and other
values to be equal, and is used
by ==
.