class_docstr: Applies the HardSwish function, as described in the paper
  `Searching for MobileNetv3 <https://arxiv.org/abs/1905.02244>`_
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 torch.nn import functional
  from cvnets.layers.activation import register_act_fn
label_desc: Use image node_id 1 to create a new Hardswish object from inherited base classes: nn with example: obj = Hardswish(inplace)