<p dir="auto">In the tensorflow API doc: <a href="https://www.tensorflow.org/versions/master/api_docs/python/nn.html#max_pool3d" rel="nofollow">https://www.tensorflow.org/versions/master/api_docs/python/nn.html#max_pool3d</a>, it states:</p>
<p dir="auto">ksize: A list of ints that has length &gt;= 5. 1-D tensor of length 5. The size of the window for each dimension of the input tensor. Must have ksize[0] = ksize[1] = 1.</p>
<p dir="auto">ksize[0] = ksize[1] = 1 must be ksize[0] = ksize[4] = 1 for both average and max pooling 3d layers as detailed here:<br>
<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/kernel_tests/pooling_ops_3d_test.py#L48">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/kernel_tests/pooling_ops_3d_test.py#L48</a></p>
<p dir="auto">In file:<br>
<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/api_docs/python/functions_and_classes/shard0/tf.nn.avg_pool3d.md">tensorflow/g3doc/api_docs/python/functions_and_classes/shard0/tf.nn.avg_pool3d.md<br>
</a><br>
<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.nn.max_pool3d.md">tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.nn.max_pool3d.md<br>
</a><br>
Original:<br>
<b><code class="notranslate">ksize</code></b>: A list of <code class="notranslate">ints</code> that has length <code class="notranslate">&gt;= 5</code>.<br>
1-D tensor of length 5. The size of the window for each dimension of<br>
the input tensor. Must have <code class="notranslate">ksize[0] = ksize[1] = 1</code>.</p>
<p dir="auto">I think<br>
<code class="notranslate">ksize[0] = ksize[1] = 1</code>. should change to <code class="notranslate">ksize[0] = ksize[4] = 1</code>, according to the test file </p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/tensorflow/tensorflow/blob/712e41cf8b316ef2c33c6dd7fd6ade2b4e93ddc0/tensorflow/python/kernel_tests/pooling_ops_3d_test.py#L48">tensorflow/tensorflow/python/kernel_tests/pooling_ops_3d_test.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 48
      in
      <a data-pjax="true" class="commit-tease-sha" href="/tensorflow/tensorflow/commit/712e41cf8b316ef2c33c6dd7fd6ade2b4e93ddc0">712e41c</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L48" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="48"></td>
          <td id="LC48" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ksize</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-s1">window</span>[<span class="pl-c1">0</span>], <span class="pl-s1">window</span>[<span class="pl-c1">1</span>], <span class="pl-s1">window</span>[<span class="pl-c1">2</span>], <span class="pl-c1">1</span>], </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>