Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vectorflow/layers.d
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class ReLU : NeuralLayer {
}
}

override void accumulate_grad(V)(V[] grad)
void accumulate_grad(V)(V[] grad)
if ((is(V == float) || is(V == SparseF)))
{
ulong offset = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/vectorflow/neurallayer.d
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ abstract class InputLayer : NeuralLayer

abstract override void predict();

override void accumulate_grad(V)(V[] grad) pure
void accumulate_grad(V)(V[] grad) pure
if ((is(V == float) || is(V == SparseF))) {}

override void backward_prop(V)(V[] grad) pure
void backward_prop(V)(V[] grad) pure
if ((is(V == float) || is(V == SparseF))) {}

override @property ulong num_params(){return 0;}
Expand Down