class_docstr: Swish function
class_docstr_tok: ["Swish","function"]
docstr: Construct an MultiHeadedAttention object.
docstr_tok: ["Construct","an","MultiHeadedAttention","object","."]
code: def __init__(self):
      """Construct an MultiHeadedAttention object."""
      super(Swish, self).__init__()
      self.act = torch.nn.Sigmoid()
  
imports: import math
  import warnings
  from typing import Dict, Optional, Tuple
  import torch
  import torch.nn.functional
  from torch import Tensor, nn
  from torch.nn import Parameter
label_desc: Use image node_id 1 to create a new Swish object from inherited base classes: nn with example: obj = Swish()