<spanid="hl_maxpool_forward__i.realCP.i.i.i.i.i.i.i.i.realP"></span><spanclass="target"id="paddlehl__cnn_8h_1a61a9d289929ea007f91afe838044f38d"></span>void <codeclass="descname">hl_maxpool_forward</code><spanclass="sig-paren">(</span>int <em>frameCnt</em>, <emclass="property">const</em> real *<em>inputData</em>, int <em>channels</em>, int <em>height</em>, int <em>width</em>, int <em>pooledH</em>, int <em>pooledW</em>, int <em>sizeX</em>, int <em>stride</em>, int <em>start</em>, real *<em>tgtData</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv218hl_maxpool_forwardiPK4realiiiiiiiiP4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_maxpool_forward__iC.realCP.iC.iC.iC.iC.iC.iC.iC.iC.iC.iC.iC.realP"></span><spanclass="target"id="paddlehl__cnn_8h_1a8059e00019ba687c3e1b51b2fe6abfdf"></span>void <codeclass="descname">hl_maxpool_forward</code><spanclass="sig-paren">(</span><emclass="property">const</em> int <em>frameCnt</em>, <emclass="property">const</em> real *<em>inputData</em>, <emclass="property">const</em> int <em>channels</em>, <emclass="property">const</em> int <em>height</em>, <emclass="property">const</em> int <em>width</em>, <emclass="property">const</em> int <em>pooledH</em>, <emclass="property">const</em> int <em>pooledW</em>, <emclass="property">const</em> int <em>sizeX</em>, <emclass="property">const</em> int <em>sizeY</em>, <emclass="property">const</em> int <em>strideH</em>, <emclass="property">const</em> int <em>strideW</em>, <emclass="property">const</em> int <em>paddingH</em>, <emclass="property">const</em> int <em>paddingW</em>, real *<em>tgtData</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv218hl_maxpool_forwardKiPK4realKiKiKiKiKiKiKiKiKiKiKiP4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_maxpool_backward__i.realCP.realCP.realCP.i.i.i.i.i.i.i.i.realP.real.real"></span><spanclass="target"id="paddlehl__cnn_8h_1a7642be21b22025cfeebaad3d54b89b65"></span>void <codeclass="descname">hl_maxpool_backward</code><spanclass="sig-paren">(</span>int <em>frameCnt</em>, <emclass="property">const</em> real *<em>inputData</em>, <emclass="property">const</em> real *<em>outData</em>, <emclass="property">const</em> real *<em>outGrad</em>, int <em>channels</em>, int <em>height</em>, int <em>width</em>, int <em>pooledH</em>, int <em>pooledW</em>, int <em>sizeX</em>, int <em>stride</em>, int <em>start</em>, real *<em>targetGrad</em>, real <em>scaleA</em>, real <em>scaleB</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv219hl_maxpool_backwardiPK4realPK4realPK4realiiiiiiiiP4real4real4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_maxpool_backward__iC.realCP.realCP.realCP.iC.iC.iC.iC.iC.iC.iC.iC.iC.iC.iC.real.real.realP"></span><spanclass="target"id="paddlehl__cnn_8h_1a5a5671e0aadc4d58addb2f6c81f5c26b"></span>void <codeclass="descname">hl_maxpool_backward</code><spanclass="sig-paren">(</span><emclass="property">const</em> int <em>frameCnt</em>, <emclass="property">const</em> real *<em>inputData</em>, <emclass="property">const</em> real *<em>outData</em>, <emclass="property">const</em> real *<em>outGrad</em>, <emclass="property">const</em> int <em>channels</em>, <emclass="property">const</em> int <em>height</em>, <emclass="property">const</em> int <em>width</em>, <emclass="property">const</em> int <em>pooledH</em>, <emclass="property">const</em> int <em>pooledW</em>, <emclass="property">const</em> int <em>sizeX</em>, <emclass="property">const</em> int <em>sizeY</em>, <emclass="property">const</em> int <em>strideH</em>, <emclass="property">const</em> int <em>strideW</em>, <emclass="property">const</em> int <em>paddingH</em>, <emclass="property">const</em> int <em>paddingW</em>, real <em>scaleA</em>, real <em>scaleB</em>, real *<em>targetGrad</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv219hl_maxpool_backwardKiPK4realPK4realPK4realKiKiKiKiKiKiKiKiKiKiKi4real4realP4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_avgpool_forward__i.realCP.i.i.i.i.i.i.i.i.realP"></span><spanclass="target"id="paddlehl__cnn_8h_1a54bb6d607410b752ab0119e534652a24"></span>void <codeclass="descname">hl_avgpool_forward</code><spanclass="sig-paren">(</span>int <em>frameCnt</em>, <emclass="property">const</em> real *<em>inputData</em>, int <em>channels</em>, int <em>height</em>, int <em>width</em>, int <em>pooledH</em>, int <em>pooledW</em>, int <em>sizeX</em>, int <em>stride</em>, int <em>start</em>, real *<em>tgtData</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv218hl_avgpool_forwardiPK4realiiiiiiiiP4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_avgpool_forward__iC.realCP.iC.iC.iC.iC.iC.iC.iC.iC.iC.iC.iC.realP"></span><spanclass="target"id="paddlehl__cnn_8h_1a85120743584a4241217d60b83a61a894"></span>void <codeclass="descname">hl_avgpool_forward</code><spanclass="sig-paren">(</span><emclass="property">const</em> int <em>frameCnt</em>, <emclass="property">const</em> real *<em>inputData</em>, <emclass="property">const</em> int <em>channels</em>, <emclass="property">const</em> int <em>height</em>, <emclass="property">const</em> int <em>width</em>, <emclass="property">const</em> int <em>pooledH</em>, <emclass="property">const</em> int <em>pooledW</em>, <emclass="property">const</em> int <em>sizeX</em>, <emclass="property">const</em> int <em>sizeY</em>, <emclass="property">const</em> int <em>strideH</em>, <emclass="property">const</em> int <em>strideW</em>, <emclass="property">const</em> int <em>paddingH</em>, <emclass="property">const</em> int <em>paddingW</em>, real *<em>tgtData</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv218hl_avgpool_forwardKiPK4realKiKiKiKiKiKiKiKiKiKiKiP4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_avgpool_backward__i.realCP.i.i.i.i.i.i.i.i.realP.real.real"></span><spanclass="target"id="paddlehl__cnn_8h_1a43773146d2f15b0c321e712394efcd75"></span>void <codeclass="descname">hl_avgpool_backward</code><spanclass="sig-paren">(</span>int <em>frameCnt</em>, <emclass="property">const</em> real *<em>outGrad</em>, int <em>channels</em>, int <em>height</em>, int <em>width</em>, int <em>pooledH</em>, int <em>pooledW</em>, int <em>sizeX</em>, int <em>stride</em>, int <em>start</em>, real *<em>backGrad</em>, real <em>scaleA</em>, real <em>scaleB</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv219hl_avgpool_backwardiPK4realiiiiiiiiP4real4real4real"title="Permalink to this definition">¶</a></dt>
<spanid="hl_avgpool_backward__iC.realCP.iC.iC.iC.iC.iC.iC.iC.iC.iC.i.i.real.real.realP"></span><spanclass="target"id="paddlehl__cnn_8h_1adb3a661e90396ffbf2602ad317d95a8c"></span>void <codeclass="descname">hl_avgpool_backward</code><spanclass="sig-paren">(</span><emclass="property">const</em> int <em>frameCnt</em>, <emclass="property">const</em> real *<em>outGrad</em>, <emclass="property">const</em> int <em>channels</em>, <emclass="property">const</em> int <em>height</em>, <emclass="property">const</em> int <em>width</em>, <emclass="property">const</em> int <em>pooledH</em>, <emclass="property">const</em> int <em>pooledW</em>, <emclass="property">const</em> int <em>sizeX</em>, <emclass="property">const</em> int <em>sizeY</em>, <emclass="property">const</em> int <em>strideH</em>, <emclass="property">const</em> int <em>strideW</em>, int <em>paddingH</em>, int <em>paddingW</em>, real <em>scaleA</em>, real <em>scaleB</em>, real *<em>backGrad</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv219hl_avgpool_backwardKiPK4realKiKiKiKiKiKiKiKiKiii4real4realP4real"title="Permalink to this definition">¶</a></dt>
<span id="paddle::PoolLayer::outputSize__i.i.i.i"></span><span class="target" id="paddleclasspaddle_1_1PoolLayer_1a2bfec8a881edba8da3ec60aeb5a73605"></span>int <code class="descname">outputSize</code><span class="sig-paren">(</span>int <em>imageSize</em>, int <em>windowSize</em>, int <em>padding</em>, int <em>stride</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv2N6paddle9PoolLayer10outputSizeEiiii" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculate output size according window size and padding size. </p>
<dd><p>Backward propagation. Should only be called after <a class="reference internal" href="#paddleclasspaddle_1_1Layer_1a12386b3f20dd731e7ceaa2c61667cbe1"><span class="std std-ref">Layer::forward()</span></a> function. </p>
<dd><p>Backward propagation. Should only be called after <a class="reference internal" href="#paddleclasspaddle_1_1Layer_1a12386b3f20dd731e7ceaa2c61667cbe1"><span class="std std-ref">Layer::forward()</span></a> function. </p>
<span id="paddle::CudnnPoolLayer::outputSize__i.i.i.i"></span><span class="target" id="paddleclasspaddle_1_1CudnnPoolLayer_1a4565d36cd90fc19c389fd1d76f97537c"></span>int <code class="descname">outputSize</code><span class="sig-paren">(</span>int <em>imageSize</em>, int <em>windowSize</em>, int <em>padding</em>, int <em>stride</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv2N6paddle14CudnnPoolLayer10outputSizeEiiii" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculate output size according window size of pooling. </p>
<li><strong>pool_stride</strong> (<em>int</em>) – see img_pool_layer’s document.</li>
<li><strong>pool_stride</strong> (<em>int</em>) – see img_pool_layer’s document.</li>
<li><strong>pool_start</strong> (<em>int</em>) – see img_pool_layer’s document.</li>
<li><strong>pool_start</strong> (<em>int</em>) – see img_pool_layer’s document. It is deprecated now.</li>
<li><strong>pool_padding</strong> (<em>int</em>) – see img_pool_layer’s document.</li>
<li><strong>pool_padding</strong> (<em>int</em>) – see img_pool_layer’s document.</li>
<li><strong>pool_layer_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"title="paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"><em>ExtraLayerAttribute</em></a>) – see img_pool_layer’s document.</li>
<li><strong>pool_layer_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"title="paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"><em>ExtraLayerAttribute</em></a>) – see img_pool_layer’s document.</li>
</ul>
</ul>
...
@@ -280,10 +280,10 @@ False if no bias.</li>
...
@@ -280,10 +280,10 @@ False if no bias.</li>
<li><strong>param_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ParameterAttribute"title="paddle.trainer_config_helpers.attrs.ParameterAttribute"><em>ParameterAttribute</em></a>) – see img_conv_layer for details</li>
<li><strong>param_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ParameterAttribute"title="paddle.trainer_config_helpers.attrs.ParameterAttribute"><em>ParameterAttribute</em></a>) – see img_conv_layer for details</li>
<li><strong>shared_bias</strong> (<em>bool</em>) – see img_conv_layer for details</li>
<li><strong>shared_bias</strong> (<em>bool</em>) – see img_conv_layer for details</li>
<li><strong>conv_layer_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"title="paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"><em>ExtraLayerAttribute</em></a>) – see img_conv_layer for details</li>
<li><strong>conv_layer_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"title="paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"><em>ExtraLayerAttribute</em></a>) – see img_conv_layer for details</li>
<li><strong>pool_stride</strong> (<em>int</em>) – see img_conv_layer for details</li>
<li><strong>pool_stride</strong> (<em>int</em>) – see img_pool_layer for details</li>
<li><strong>pool_start</strong> (<em>int</em>) – see img_conv_layer for details</li>
<li><strong>pool_start</strong> (<em>int</em>) – see img_pool_layer for details. It is deprecated now.</li>
<li><strong>pool_padding</strong> (<em>int</em>) – see img_conv_layer for details</li>
<li><strong>pool_padding</strong> (<em>int</em>) – see img_pool_layer for details</li>
<li><strong>pool_layer_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"title="paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"><em>ExtraLayerAttribute</em></a>) – see img_conv_layer for details</li>
<li><strong>pool_layer_attr</strong> (<aclass="reference internal"href="attrs.html#paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"title="paddle.trainer_config_helpers.attrs.ExtraLayerAttribute"><em>ExtraLayerAttribute</em></a>) – see img_pool_layer for details</li>