tfm.utils.activations.hard_swish

Computes a hard version of the swish function.

This operation can be used to reduce computational cost and improve quantization for edge devices.

features A Tensor representing preactivation values.

The activation value.