#[non_exhaustive]
pub enum IValue {
}
Expand description
Argument and output values for JIT models.
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
sourceimpl<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
sourceimpl<T1, T2, T1E, T2E> TryFrom<IValue> for (T1, T2) where
T1: TryFrom<IValue, Error = T1E>,
T1E: Into<TchError>,
T2: TryFrom<IValue, Error = T2E>,
T2E: Into<TchError>,
impl<T1, T2, T1E, T2E> TryFrom<IValue> for (T1, T2) where
T1: TryFrom<IValue, Error = T1E>,
T1E: Into<TchError>,
T2: TryFrom<IValue, Error = T2E>,
T2E: Into<TchError>,
sourceimpl<T1, T2, T3, T1E, T2E, T3E> TryFrom<IValue> for (T1, T2, T3) where
T1: TryFrom<IValue, Error = T1E>,
T1E: Into<TchError>,
T2: TryFrom<IValue, Error = T2E>,
T2E: Into<TchError>,
T3: TryFrom<IValue, Error = T3E>,
T3E: Into<TchError>,
impl<T1, T2, T3, T1E, T2E, T3E> TryFrom<IValue> for (T1, T2, T3) where
T1: TryFrom<IValue, Error = T1E>,
T1E: Into<TchError>,
T2: TryFrom<IValue, Error = T2E>,
T2E: Into<TchError>,
T3: TryFrom<IValue, Error = T3E>,
T3E: Into<TchError>,
sourceimpl<T1, T2, T3, T4, T1E, T2E, T3E, T4E> TryFrom<IValue> for (T1, T2, T3, T4) where
T1: TryFrom<IValue, Error = T1E>,
T1E: Into<TchError>,
T2: TryFrom<IValue, Error = T2E>,
T2E: Into<TchError>,
T3: TryFrom<IValue, Error = T3E>,
T3E: Into<TchError>,
T4: TryFrom<IValue, Error = T4E>,
T4E: Into<TchError>,
impl<T1, T2, T3, T4, T1E, T2E, T3E, T4E> TryFrom<IValue> for (T1, T2, T3, T4) where
T1: TryFrom<IValue, Error = T1E>,
T1E: Into<TchError>,
T2: TryFrom<IValue, Error = T2E>,
T2E: Into<TchError>,
T3: TryFrom<IValue, Error = T3E>,
T3E: Into<TchError>,
T4: TryFrom<IValue, Error = T4E>,
T4E: Into<TchError>,
impl StructuralPartialEq for IValue
Auto Trait Implementations
impl RefUnwindSafe for IValue
impl !Send for IValue
impl !Sync for IValue
impl Unpin for IValue
impl UnwindSafe for IValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more