Enum tch::IValue[][src]

pub enum IValue {
Show 14 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)>),
}
Expand description

Argument and output values for JIT models.

Variants

None
Tensor(Tensor)

Tuple Fields of Tensor

0: Tensor
Double(f64)

Tuple Fields of Double

0: f64
Int(i64)

Tuple Fields of Int

0: i64
Bool(bool)

Tuple Fields of Bool

0: bool
Tuple(Vec<IValue>)

Tuple Fields of Tuple

0: Vec<IValue>
IntList(Vec<i64>)

Tuple Fields of IntList

0: Vec<i64>
DoubleList(Vec<f64>)

Tuple Fields of DoubleList

0: Vec<f64>
BoolList(Vec<bool>)

Tuple Fields of BoolList

0: Vec<bool>
String(String)

Tuple Fields of String

0: String
StringList(Vec<String>)

Tuple Fields of StringList

0: Vec<String>
TensorList(Vec<Tensor>)

Tuple Fields of TensorList

0: Vec<Tensor>
GenericList(Vec<IValue>)

Tuple Fields of GenericList

0: Vec<IValue>
GenericDict(Vec<(IValue, IValue)>)

Tuple Fields of GenericDict

0: Vec<(IValue, IValue)>

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.