Enum tch::jit::IValue [−][src]
Argument and output values for JIT models.
Variants
Tensor(Tensor)
Double(f64)
Int(i64)
Bool(bool)
String(String)
Trait Implementations
impl Debug for IValue
[src]
impl From<&'_ str> for IValue
[src]
impl From<()> for IValue
[src]
impl<T1: Into<IValue>, T2: Into<IValue>, T3: Into<IValue>, T4: Into<IValue>> From<(T1, T2, T3, T4)> for IValue
[src]
impl<T1: Into<IValue>, T2: Into<IValue>, T3: Into<IValue>> From<(T1, T2, T3)> for IValue
[src]
impl<T1: Into<IValue>, T2: Into<IValue>> From<(T1, T2)> for IValue
[src]
impl From<String> for IValue
[src]
impl From<Tensor> for IValue
[src]
impl From<Vec<(IValue, IValue), Global>> for IValue
[src]
impl From<Vec<IValue, Global>> for IValue
[src]
impl From<Vec<String, Global>> for IValue
[src]
impl From<Vec<Tensor, Global>> for IValue
[src]
impl From<Vec<bool, Global>> for IValue
[src]
impl From<Vec<f64, Global>> for IValue
[src]
impl From<Vec<i64, Global>> for IValue
[src]
impl From<bool> for IValue
[src]
impl From<f64> for IValue
[src]
impl From<i64> for IValue
[src]
impl PartialEq<IValue> for IValue
[src]
impl StructuralPartialEq for IValue
[src]
impl TryFrom<IValue> for Tensor
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,