class_docstr: Gated convolution for CNN class
class_docstr_tok: ["Gated","convolution","for","CNN","class"]
code: def forward(self, x_var):
      x_var = self.dropout(x_var)
      x_var = self.conv(x_var)
      out, gate = x_var.split(int(x_var.size(1) / 2), 1)
      out = out * torch.sigmoid(gate)
      return out
  
file_path: OpenNMT-py/onmt/utils/cnn_factory.py
imports: import torch
  import torch.nn
  import torch.nn.init
  import onmt.modules
label_desc: Use image node_id 2 for calling the GatedConv obj's underlying member method code with example usage: obj.forward(x_var) and returns: out