class_docstr: LSTM decoder.
code: def make_generation_fast_(self, need_attn=False, **kwargs):
      self.need_attn = need_attn
  
imports: from typing import Dict, List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from fairseq import utils
  from fairseq.models import FairseqEncoder, FairseqEncoderDecoderModel, FairseqIncrementalDecoder, register_model, register_model_architecture
  from fairseq.modules import AdaptiveSoftmax, FairseqDropout
  from torch import Tensor
label_desc: Use image node_id 8 for calling the LSTMDecoder obj's underlying member method code with example usage: obj.make_generation_fast_(need_attn) without return types