protected INDArray createBias ( NeuralNetConfiguration conf , INDArray biasView , boolean initializeParams ) { //the bias is a 1D tensor -- one bias per output feature map org . deeplearning4j . nn . conf . layers . ConvolutionLayer layerConf = ( org . deeplearning4j . nn . conf . layers . ConvolutionLayer ) conf . getLayer ( ) ; if ( initializeParams ) biasView . assign ( layerConf . getBiasInit ( ) ) ; return biasView ; }
1 bias per feature map