UntypedVariable

type-erased variable

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

Meta