class_docstr: Applies the `Hard Sigmoid <https://arxiv.org/abs/1511.00363v3>`_ function
code: def forward(self, input: Tensor, *args, **kwargs) -> Tensor:
      if hasattr(F, "hardsigmoid"):
          return F.hardsigmoid(input, self.inplace)
      else:
          return F.relu(input + 3) / 6
  
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 2 for calling the Hardsigmoid obj's underlying member method code with example usage: obj.forward(input) and returns: F, unknown