class_docstr: Base class inherited by all RNN decoder classes.
  See :class:`~texar.tf.modules.BasicRNNDecoder` for the argumenrts.
  
  See :meth:`_build` for the inputs and outputs of RNN decoders in general.
  
  .. document private functions
  .. automethod:: _build
class_docstr_tok: ["Base","class","inherited","by","all","RNN","decoder","classes",".","See",":","class",":","`","~texar.tf.modules.BasicRNNDecoder","`","for","the","argumenrts",".","See",":","meth",":","`","_build","`","for","the","inputs","and","outputs","of","RNN","decoders","in","general",".","..","document","private","functions","..","automethod",":",":","_build"]
code: def __init__(
      self,
      cell=None,
      vocab_size=None,
      output_layer=None,
      cell_dropout_mode=None,
      hparams=None,
  ):
      ModuleBase.__init__(self, hparams)
  
      self._helper = None
      self._initial_state = None
  
      # Make rnn cell
      with tf.variable_scope(self.variable_scope):
          if cell is not None:
              self._cell = cell
          else:
              self._cell = layers.get_rnn_cell(
                  self._hparams.rnn_cell, cell_dropout_mode
              )
      self._beam_search_cell = None
  
      # Make the output layer
      self._output_layer, self._vocab_size = _make_output_layer(
          output_layer,
          vocab_size,
          self._hparams.output_layer_bias,
          self.variable_scope,
      )
  
      self.max_decoding_length = None
  
imports: import copy
  import tensorflow
  from tensorflow.contrib.seq2seq import Decoder
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.util import nest
  from texar.tf.core import layers
  from texar.tf.utils import utils
  from texar.tf.utils.mode import is_train_mode, is_train_mode_py
  from texar.tf.modules.decoders.dynamic_decode import dynamic_decode
  from texar.tf.module_base import ModuleBase
  from texar.tf.modules.decoders import rnn_decoder_helpers
  from texar.tf.utils.dtypes import is_callable
  from texar.tf.utils.shapes import shape_list
  from texar.tf.modules.decoders import tf_helpers
label_desc: Use image node_id 1 to create a new RNNDecoderBase object from inherited base classes: ModuleBase, TFDecoder with example: obj = RNNDecoderBase(cell, vocab_size, output_layer, cell_dropout_mode, hparams)