Java representation of a TorchScript value, which is implemented as tagged union that can be one of the supported types: https://pytorch.org/docs/stable/jit.html#types .
toXmethods for inappropriate types will throw
IValueobjects are constructed with
IValue.tupleFrom(value1, value2, ...),
IValue.listFrom(value1, value2, ...), or one of the
dictmethods, depending on the key type.
Data is retrieved from
IValueobjects with the
toX()methods. Note that
str-type IValues must be extracted with
toStr(), rather than
IValueobjects may retain references to objects passed into their constructors, and may return references to their internal state from