UntypedVariable

type-erased variable used in BackProp object

struct UntypedVariable {
bool requiresGrad;
size_t dim;
uint[] shape;
int[] strides;
TypeInfo elem;
Variant data;
Variant grad;
}

Constructors

this
this(Variable!(T, dim, Storage) v)

Members

Functions

dataSlice
auto dataSlice()
get
auto get()

variant.get

gradSlice
auto gradSlice()
gradTo
auto gradTo()

untyped grad to typed

to
auto to()

untyped to typed

toString
string toString()

Meta