class_docstr: From DeepVoice 3
class_docstr_tok: ["From","DeepVoice","3"]
code: def __init__(
      self,
      d_model: int,
      kernel_size: int,
      padding: int,
      embedding_dim: int,
  ):
      super().__init__()
      self.conv = BSConv1d(
          d_model, 2 * d_model, kernel_size=kernel_size, padding=padding
      )
      self.embedding_proj = nn.Linear(embedding_dim, d_model)
      self.register_buffer(
          "sqrt", torch.sqrt(torch.FloatTensor([0.5])).squeeze(0)
      )
      self.softsign = torch.nn.Softsign()
  
imports: from typing import Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.nn.utils import parametrize
  from TTS.tts.layers.delightful_tts.kernel_predictor import KernelPredictor
label_desc: Use image node_id 1 to create a new Conv1dGLU object from inherited base classes: nn with example: obj = Conv1dGLU(d_model, kernel_size, padding, embedding_dim)