miniBatchSizeChanged ======================================== .. js:function:: ConvolutionalLayer.miniBatchSizeChanged() ミニバッチのサイズが変わった時の処理 ソース ^^^^^^ .. code-block:: js miniBatchSizeChanged(){ super.miniBatchSizeChanged(); this.z_ = new ArrayView(miniBatchSize, this.unitSize); this.y_ = new ArrayView(miniBatchSize, this.unitSize); this.zero = new Float32Array(miniBatchSize * this.unitSize); this.deltaZ = new ArrayView(miniBatchSize, this.unitSize); if(this.prevLayer instanceof InputLayer){ this.deltaX = undefined; } else{ this.deltaX = new ArrayView(miniBatchSize, this.prevLayer.unitSize); } }