class_docstr: Implementation for https://arxiv.org/pdf/1712.05884.pdf
class_docstr_tok: ["Implementation","for","https",":","\/\/arxiv.org\/pdf\/1712.05884.pdf"]
code: def build_model(cls, args, task):
      embed_speaker = task.get_speaker_embeddings(args)
      encoder = Tacotron2Encoder(args, task.src_dict, embed_speaker)
      decoder = Tacotron2Decoder(args, task.src_dict)
      return cls(encoder, decoder)
  
imports: import logging
  import torch
  from torch import nn
  from torch.nn import functional
  from fairseq.models import FairseqEncoder, FairseqEncoderDecoderModel, FairseqIncrementalDecoder, register_model, register_model_architecture
  from fairseq.modules import LSTMCellWithZoneOut, LocationAttention
label_desc: Use image node_id 3 for calling the Tacotron2Model obj's underlying member method code with example usage: obj.build_model(cls, args, task) and returns: cls