#[non_exhaustive]pub enum IValue {
}
Expand description
Argument and output values for JIT models. These represent arbitrary values, e.g. tensors, atomic values, pairs of values, etc.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Tensor(Tensor)
Double(f64)
Int(i64)
Bool(bool)
Tuple(Vec<IValue>)
IntList(Vec<i64>)
DoubleList(Vec<f64>)
BoolList(Vec<bool>)
String(String)
StringList(Vec<String>)
TensorList(Vec<Tensor>)
GenericList(Vec<IValue>)
GenericDict(Vec<(IValue, IValue)>)
Object(Object)
Trait Implementations§
source§impl<T1: Into<IValue>, T2: Into<IValue>, T3: Into<IValue>> From<(T1, T2, T3)> for IValue
impl<T1: Into<IValue>, T2: Into<IValue>, T3: Into<IValue>> From<(T1, T2, T3)> for IValue
source§fn from((p1, p2, p3): (T1, T2, T3)) -> Self
fn from((p1, p2, p3): (T1, T2, T3)) -> Self
Converts to this type from the input type.
source§impl<T1: Into<IValue>, T2: Into<IValue>, T3: Into<IValue>, T4: Into<IValue>> From<(T1, T2, T3, T4)> for IValue
impl<T1: Into<IValue>, T2: Into<IValue>, T3: Into<IValue>, T4: Into<IValue>> From<(T1, T2, T3, T4)> for IValue
source§fn from((p1, p2, p3, p4): (T1, T2, T3, T4)) -> Self
fn from((p1, p2, p3, p4): (T1, T2, T3, T4)) -> Self
Converts to this type from the input type.
source§impl PartialEq for IValue
impl PartialEq for IValue
source§impl<T1, T2, T3, T1E, T2E, T3E> TryFrom<IValue> for (T1, T2, T3)
impl<T1, T2, T3, T1E, T2E, T3E> TryFrom<IValue> for (T1, T2, T3)
source§impl<T1, T2, T3, T4, T1E, T2E, T3E, T4E> TryFrom<IValue> for (T1, T2, T3, T4)
impl<T1, T2, T3, T4, T1E, T2E, T3E, T4E> TryFrom<IValue> for (T1, T2, T3, T4)
impl StructuralPartialEq for IValue
Auto Trait Implementations§
impl Freeze for IValue
impl RefUnwindSafe for IValue
impl !Send for IValue
impl !Sync for IValue
impl Unpin for IValue
impl UnwindSafe for IValue
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