Skip to content

Commit

Permalink
Merge pull request deeplearning4j#1492 from deeplearning4j/mw_bn_quirk
Browse files Browse the repository at this point in the history
Fixed test error by setting nOut for bn.
  • Loading branch information
nyghtowl committed May 2, 2016
2 parents bb723e8 + 14f3805 commit 8f5a611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void testBatchNorm() {
.list()
.layer(0, new DenseLayer.Builder().nIn(4).nOut(3).weightInit(WeightInit.XAVIER).activation("tanh").build())
.layer(1, new DenseLayer.Builder().nIn(3).nOut(2).weightInit(WeightInit.XAVIER).activation("tanh").build())
.layer(2, new BatchNormalization.Builder().build())
.layer(2, new BatchNormalization.Builder().nOut(2).build())
.layer(3, new org.deeplearning4j.nn.conf.layers.OutputLayer.Builder(LossFunctions.LossFunction.MCXENT)
.weightInit(WeightInit.XAVIER)
.activation("softmax")
Expand Down

0 comments on commit 8f5a611

Please sign in to comment.