class_docstr: Stack Prenet and CBHG module for encoder
  Args:
      inputs (FloatTensor): embedding features
  
  Shapes:
      - inputs: (B, T, D_in)
      - outputs: (B, T, 128 * 2)
class_docstr_tok: ["Stack","Prenet","and","CBHG","module","for","encoder","Args",":","inputs","(","FloatTensor",")",":","embedding","features","Shapes",":","-","inputs",":","(","B",",","T",",","D_in",")","-","outputs",":","(","B",",","T",",","128","*","2",")"]
code: def __init__(self, in_features):
      super().__init__()
      self.prenet = Prenet(in_features, out_features=[256, 128])
      self.cbhg = EncoderCBHG()
  
imports: import torch
  from torch import nn
  from .attentions import init_attn
  from .common_layers import Prenet
label_desc: Use image node_id 1 to create a new Encoder object from inherited base classes: nn with example: obj = Encoder(in_features)