Torch::IValue
Inherits Reference < Object
Constructors
device(device : Device) : IValue
Sourcenew(c_ivalue : TorchSys::CIValue)
Sourcenone
Sourceof(tensor : Tensor) : IValue
Sourceof(value : String) : IValue
Sourceof(value : Array(String)) : IValue
Sourceof(value : Array(Tensor)) : IValue
Sourceof(value : Array(IValue)) : IValue
Sourcetuple(values : Array(IValue)) : IValue
Sourcewrap(c : TorchSys::CIValue) : self
SourceInstance methods
as_bool
Sourceas_bool_list
Sourceas_double_list
Sourceas_f64
Sourceas_i64
Sourceas_int_list
Sourceas_string
Sourceas_tensor
Sourceas_tensor_list
Sourcec_ivalue
Sourceclone
Sourcefinalize
Sourcelength
Sourcetag
Source