class_docstr: Layer that computes dynamic pooling of one tensor.
  
  :param psize1: pooling size of dimension 1
  :param psize2: pooling size of dimension 2
  :param kwargs: Standard layer keyword arguments.
  
  Examples:
      >>> import matchzoo as mz
      >>> layer = mz.layers.DynamicPoolingLayer(3, 2)
      >>> num_batch, left_len, right_len, num_dim = 5, 3, 2, 10
      >>> layer.build([[num_batch, left_len, right_len, num_dim],
      ...              [num_batch, left_len, right_len, 3]])
docstr: :class:`DynamicPoolingLayer` constructor.
code: def __init__(self, psize1: int, psize2: int, **kwargs):
      """:class:`DynamicPoolingLayer` constructor."""
      super().__init__(**kwargs)
      self._psize1 = psize1
      self._psize2 = psize2
  
file_path: MatchZoo/matchzoo/layers/dynamic_pooling_layer.py
imports: import typing
  import tensorflow
  from keras.engine import Layer
label_desc: Use image node_id 1 to create a new DynamicPoolingLayer object from inherited base classes: Layer with example: obj = DynamicPoolingLayer(psize1, psize2)