BackProp

stores information for backpropagation

Members

Aliases

Proc
alias Proc = void delegate(UntypedVariable[])
Undocumented in source.

Functions

backward
void backward(UntypedVariable* grad, size_t pos)

error backward propagation

Variables

gradOutputs
UntypedVariable[] gradOutputs;
Undocumented in source.
nGrad
size_t nGrad;
Undocumented in source.
proc
Proc proc;
Undocumented in source.

Examples

import std.stdio;

UntypedVariable u;
{
    auto v = [[0f, 1f], [2f, 3f]].variable;
    u = UntypedVariable(v);
}
assert(u.get!(HostStorage!float) == [0, 1, 2, 3]);

Meta