class_docstr: Implementation of recurrent layers.
class_docstr_tok: ["Implementation","of","recurrent","layers","."]
code: def __repr__(self):
      s = "{name}({mapping}, {_layout}"
      if self._num_layers != 1:
          s += ", num_layers={_num_layers}"
      if self._dropout != 0:
          s += ", dropout={_dropout}"
      if self._dir == 2:
          s += ", bidirectional"
      s += ")"
      mapping = "{0} -> {1}".format(
          self._input_size if self._input_size else None,
          self._hidden_size,
      )
      return s.format(
          name=self.__class__.__name__, mapping=mapping, **self.__dict__
      )
  
imports: from ...None import np, npx, initializer, cpu
  from ..None import HybridBlock, tensor_types
  from ..parameter import Parameter
  from ...util import use_np
label_desc: Use image node_id 2 for calling the _RNNLayer obj's underlying member method code with example usage: obj.__repr__() and returns: s