Skip to content

Commit

Permalink
Fixed test error by setting nOut for bn. Required when not using cnnI…
Browse files Browse the repository at this point in the history
…nputSize
  • Loading branch information
nyghtowl committed May 2, 2016
1 parent bb723e8 commit 14f3805
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 14f3805

Please sign in to comment.