W3cubDocs

/PyTorch 2.9

Hardswish

class torch.ao.nn.quantized.Hardswish(scale, zero_point, device=None, dtype=None) [source]

This is the quantized version of Hardswish.

Parameters
  • scale – quantization scale of the output tensor
  • zero_point – quantization zero point of the output tensor

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.ao.nn.quantized.Hardswish.html