class_docstr: Apply the context gate to both contexts
class_docstr_tok: ["Apply","the","context","gate","to","both","contexts"]
code: def __init__(
      self, embeddings_size, decoder_size, attention_size, output_size
  ):
      super(BothContextGate, self).__init__()
      self.context_gate = ContextGate(
          embeddings_size, decoder_size, attention_size, output_size
      )
      self.tanh = nn.Tanh()
  
file_path: OpenNMT-py/onmt/modules/gate.py
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new BothContextGate object from inherited base classes: nn with example: obj = BothContextGate(embeddings_size, decoder_size, attention_size, output_size)