Skip to content
Snippets Groups Projects
Commit 1db396da authored by Daniel Povey's avatar Daniel Povey Committed by GitHub
Browse files

Merge pull request #873 from kangshiyin/fix-diff-softmax

Fix bug introduced in #863
parents 64c28761 16e69f1a
No related branches found
No related tags found
No related merge requests found
......@@ -955,6 +955,7 @@ void SoftmaxComponent::Backprop(const ChunkInfo &in_info,
d = diag(p) e - p (p^T e).
d_i = p_i e_i - p_i (p^T e).
*/
in_deriv->Resize(out_deriv.NumRows(), out_deriv.NumCols());
in_deriv->DiffSoftmaxPerRow(out_value, out_deriv);
// The SoftmaxComponent does not have any real trainable parameters, but
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment