class

Torch::IValue

Inherits Reference < Object

Constructors

device(device : Device) : IValue
Source
new(c_ivalue : TorchSys::CIValue)
Source
none
Source
of(tensor : Tensor) : IValue
Source
of(value : Int64) : IValue
Source
of(value : Int32) : IValue
Source
of(value : Float64) : IValue
Source
of(value : Float32) : IValue
Source
of(value : Bool) : IValue
Source
of(value : String) : IValue
Source
of(value : Array(Int64)) : IValue
Source
of(value : Array(Float64)) : IValue
Source
of(value : Array(Bool)) : IValue
Source
of(value : Array(String)) : IValue
Source
of(value : Array(Tensor)) : IValue
Source
of(value : Array(IValue)) : IValue
Source
tuple(values : Array(IValue)) : IValue
Source
wrap(c : TorchSys::CIValue) : self
Source

Instance methods

as_bool
Source
as_bool_list
Source
as_dict_pairs

Dict as a flat array of key/value IValue pairs.

Source
as_double_list
Source
as_f64
Source
as_i64
Source
as_int_list
Source
as_list

Tuple or generic list of IValues.

Source
as_string
Source
as_tensor
Source
as_tensor_list
Source
c_ivalue
Source
clone
Source
finalize
Source
length
Source

Nested types