class_docstr: Trims a 1d convolutional output. Used to implement history-padding
  by removing excess padding from the right.
class_docstr_tok: ["Trims","a","1d","convolutional","output",".","Used","to","implement","history-padding","by","removing","excess","padding","from","the","right","."]
code: def forward(self, x):
      return x[:, :, : -self.trim].contiguous()
  
imports: import math
  import torch
  import torch.nn
  from pytext.config.module_config import Activation, CNNParams, PoolingType
  from pytext.models.representations.representation_base import RepresentationBase
  from pytext.optimizer import get_activation
  from pytext.utils.usage import log_class_usage
label_desc: Use image node_id 2 for calling the Trim1d obj's underlying member method code with example usage: obj.forward(x) and returns: x