class_docstr: Abstract class for decoders.
  
  Args:
      attentional (bool): The decoder returns non-empty attention.
class_docstr_tok: ["Abstract","class","for","decoders",".","Args",":","attentional","(","bool",")",":","The","decoder","returns","non-empty","attention","."]
code: def __init__(self, attentional=True):
      super(DecoderBase, self).__init__()
      self.attentional = attentional
  
imports: import torch
  import torch.nn
  from onmt.modules.stacked_rnn import StackedLSTM, StackedGRU
  from onmt.modules import context_gate_factory, GlobalAttention
  from onmt.utils.rnn_factory import rnn_factory
label_desc: Use image node_id 1 to create a new DecoderBase object from inherited base classes: nn with example: obj = DecoderBase(attentional)