hardsigmoid

dragon.vm.torch.nn.functional.hardsigmoid(
  input,
  inplace=False
)[source]

Apply the hard sigmoid function to input.

Parameters:
  • input (dragon.vm.torch.Tensor) – The input tensor.
  • inplace (bool, optional, default=False) – Whether to do the operation in-place.
Returns:

dragon.vm.torch.Tensor – The output tensor.