#[repr(i32)]pub enum IoDataType {
Unknown = 0,
Float = 1,
QuantizedUint8 = 2,
Int32 = 3,
Int64 = 4,
String = 5,
QuantizedInt16 = 6,
Bool = 7,
Complex64 = 8,
Int8 = 9,
Float16 = 10,
}
Expand description
IODataType describes the numeric data types of input and output arrays of a model.
Variants§
Unknown = 0
Float = 1
Float32, not quantized
QuantizedUint8 = 2
Uint8, quantized
Int32 = 3
Int32, not quantized
Int64 = 4
Int64, not quantized
String = 5
String, not quantized
QuantizedInt16 = 6
Int16, quantized
Bool = 7
Boolean
Complex64 = 8
Complex64, not quantized
Int8 = 9
Int8, quantized based on QuantizationParameters in schema.
Float16 = 10
Half precision float, not quantized.
Implementations§
Trait Implementations§
Source§impl Clone for IoDataType
impl Clone for IoDataType
Source§fn clone(&self) -> IoDataType
fn clone(&self) -> IoDataType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IoDataType
impl Debug for IoDataType
Source§impl Default for IoDataType
impl Default for IoDataType
Source§fn default() -> IoDataType
fn default() -> IoDataType
Returns the “default value” for a type. Read more
Source§impl From<IoDataType> for i32
impl From<IoDataType> for i32
Source§fn from(value: IoDataType) -> i32
fn from(value: IoDataType) -> i32
Converts to this type from the input type.
Source§impl Hash for IoDataType
impl Hash for IoDataType
Source§impl Ord for IoDataType
impl Ord for IoDataType
Source§fn cmp(&self, other: &IoDataType) -> Ordering
fn cmp(&self, other: &IoDataType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IoDataType
impl PartialEq for IoDataType
Source§impl PartialOrd for IoDataType
impl PartialOrd for IoDataType
impl Copy for IoDataType
impl Eq for IoDataType
impl StructuralPartialEq for IoDataType
Auto Trait Implementations§
impl Freeze for IoDataType
impl RefUnwindSafe for IoDataType
impl Send for IoDataType
impl Sync for IoDataType
impl Unpin for IoDataType
impl UnwindSafe for IoDataType
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