Skip to content

Commit

Permalink
Fix softmax for RnnOutputLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDBlack committed Mar 20, 2016
1 parent 266c498 commit b6d8947
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ public INDArray output(boolean training){
INDArray preOutput2d = preOutput2d(training);

if(conf.getLayer().getActivationFunction().equals("softmax")) {
SoftMax softMax = new SoftMax(preOutput2d);
softMax.exec(1);
INDArray out2d = softMax.z();
INDArray out2d = Nd4j.getExecutioner().execAndReturn(new SoftMax(preOutput2d));
if(maskArray != null){
out2d.muliColumnVector(maskArray);
}
Expand Down

0 comments on commit b6d8947

Please sign in to comment.