class_docstr: SEANet encoder.
  
  Args:
      channels (int): Audio channels.
      dimension (int): Intermediate representation dimension.
      n_filters (int): Base width for the model.
      n_residual_layers (int): nb of residual layers.
      ratios (Sequence[int]): kernel size and stride ratios. The encoder uses downsampling ratios instead of
          upsampling ratios, hence it will use the ratios in the reverse order to the ones specified here
          that must match the decoder order. We use the decoder order as some models may only employ the decoder.
      activation (str): Activation function.
      activation_params (dict): Parameters to provide to the activation function.
      norm (str): Normalization method.
      norm_params (dict): Parameters to provide to the underlying normalization used along with the convolution.
      kernel_size (int): Kernel size for the initial convolution.
      last_kernel_size (int): Kernel size for the initial convolution.
      residual_kernel_size (int): Kernel size for the residual layers.
      dilation_base (int): How much to increase the dilation with each layer.
      causal (bool): Whether to use fully causal convolution.
      pad_mode (str): Padding mode for the convolutions.
      true_skip (bool): Whether to use true skip connection or a simple
          (streamable) convolution as the skip connection in the residual network blocks.
      compress (int): Reduced dimensionality in residual branches (from Demucs v3).
      lstm (int): Number of LSTM layers at the end of the encoder.
      disable_norm_outer_blocks (int): Number of blocks for which we don't apply norm.
          For the encoder, it corresponds to the N first blocks.
class_docstr_tok: ["SEANet","encoder",".","Args",":","channels","(","int",")",":","Audio","channels",".","dimension","(","int",")",":","Intermediate","representation","dimension",".","n_filters","(","int",")",":","Base","width","for","the","model",".","n_residual_layers","(","int",")",":","nb","of","residual","layers",".","ratios","(","Sequence","[","int","]",")",":","kernel","size","and","stride","ratios",".","The","encoder","uses","downsampling","ratios","instead","of","upsampling","ratios",",","hence","it","will","use","the","ratios","in","the","reverse","order","to","the","ones","specified","here","that","must","match","the","decoder","order",".","We","use","the","decoder","order","as","some","models","may","only","employ","the","decoder",".","activation","(","str",")",":","Activation","function",".","activation_params","(","dict",")",":","Parameters","to","provide","to","the","activation","function",".","norm","(","str",")",":","Normalization","method",".","norm_params","(","dict",")",":","Parameters","to","provide","to","the","underlying","normalization","used","along","with","the","convolution",".","kernel_size","(","int",")",":","Kernel","size","for","the","initial","convolution",".","last_kernel_size","(","int",")",":","Kernel","size","for","the","initial","convolution",".","residual_kernel_size","(","int",")",":","Kernel","size","for","the","residual","layers",".","dilation_base","(","int",")",":","How","much","to","increase","the","dilation","with","each","layer",".","causal","(","bool",")",":","Whether","to","use","fully","causal","convolution",".","pad_mode","(","str",")",":","Padding","mode","for","the","convolutions",".","true_skip","(","bool",")",":","Whether","to","use","true","skip","connection","or","a","simple","(","streamable",")","convolution","as","the","skip","connection","in","the","residual","network","blocks",".","compress","(","int",")",":","Reduced","dimensionality","in","residual","branches","(","from","Demucs","v3",")",".","lstm","(","int",")",":","Number","of","LSTM","layers","at","the","end","of","the","encoder",".","disable_norm_outer_blocks","(","int",")",":","Number","of","blocks","for","which","we","do","n't","apply","norm",".","For","the","encoder",",","it","corresponds","to","the","N","first","blocks","."]
code: def forward(self, x):
      return self.model(x)
  
file_path: audiocraft/audiocraft/modules/seanet.py
imports: import typing
  import numpy
  import torch.nn
  from .conv import StreamableConv1d, StreamableConvTranspose1d
  from .lstm import StreamableLSTM
label_desc: Use image node_id 2 for calling the SEANetEncoder obj's underlying member method code with example usage: obj.forward(x) and returns: self