(self, n_items_to_remember, mode)
Returns a layer which remembers last N elements in predict mode.

    For predict mode, the layer remembers last N elements and pads with them.
    For other modes, it pads with zeros. The layer pads/remembers elements from
    the second axis.

    Args:
      n_items_to_remember: Number of items to remember/pad with.
      mode: One of `'train'`, `'eval'`, or `'predict'`.
Returns a layer which remembers last N elements in predict mode.
Returns a layer which remembers last N elements in predict mode .
def __init__(self, n_items_to_remember, mode):
    """Returns a layer which remembers last N elements in predict mode.

    For predict mode, the layer remembers last N elements and pads with them.
    For other modes, it pads with zeros. The layer pads/remembers elements from
    the second axis.

    Args:
      n_items_to_remember: Number of items to remember/pad with.
      mode: One of `'train'`, `'eval'`, or `'predict'`.
    """
    super().__init__(name='_RememberPad')
    self._n_items_to_remember = n_items_to_remember
    self._mode = mode
    self._portal_mask = self.monkey_patched_mask()
def __init__ ( self , n_items_to_remember , mode ) : super ( ) . __init__ ( name = '_RememberPad' ) self . _n_items_to_remember = n_items_to_remember self . _mode = mode self . _portal_mask = self . monkey_patched_mask ( )