Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
lempiji committed Mar 7, 2021
1 parent 769ee56 commit 5f8dba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mnist/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ class Model

auto loss(T, U)(T output, U label)
{
return softmaxCrossEntropy(output, label);
return mean(softmaxCrossEntropy(output, label));
}
}

0 comments on commit 5f8dba5

Please sign in to comment.