class_docstr: Base class of pooling function over a set of N-dimensional planes.
class_docstr_tok: ["Base","class","of","pooling","function","over","a","set","of","N-dimensional","planes","."]
code: def __init__(
      self,
      ndim,
      ksize,
      stride=None,
      pad=0,
      cover_all=True,
      return_indices=False,
  ):
      if stride is None:
          stride = ksize
  
      if ndim <= 0:
          raise ValueError(
              "pooling operation requires at least one spatial dimension."
          )
  
      super(_PoolingND, self).__init__()
  
      self.ndim = ndim
      self.ksize = conv_nd.as_tuple(ksize, ndim)
      self.stride = conv_nd.as_tuple(stride, ndim)
      self.pad = conv_nd.as_tuple(pad, ndim)
  
      self.cover_all = cover_all
      self.return_indices = return_indices
  
file_path: chainer/chainer/functions/pooling/pooling_nd.py
imports: import six
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import conv
  from chainer.utils import conv_nd
  from chainer.utils import type_check
label_desc: Use image node_id 1 to create a new _PoolingND object from inherited base classes: function_node with example: obj = _PoolingND(ndim, ksize, stride, pad, cover_all, return_indices)