class_docstr: Applies the `Swish (also known as SiLU) <https://arxiv.org/abs/1702.03118>`_ function.
class_docstr_tok: ["Applies","the","`","Swish","(","also","known","as","SiLU",")","<","https",":","\/\/arxiv.org\/abs\/1702.03118",">","`","_","function","."]
code: def __init__(
      self, inplace: Optional[bool] = False, *args, **kwargs
  ) -> None:
      super().__init__(inplace=inplace)
  
imports: from typing import Optional
  from torch import Tensor, nn
  from cvnets.layers.activation import register_act_fn
label_desc: Use image node_id 1 to create a new Swish object from inherited base classes: nn with example: obj = Swish(inplace)