Skip to content
fn

hard_swish_op

→TensorImplPtr
int hard_swish_op(const int & a)

Hard swish y=x⋅hard_sigmoid(x)y = x \cdot \mathrm{hard\_sigmoid}(x).

See Also

HardSwishBackward : Autograd node implementing the gradient rule.

Parameters

aTensorImplPtr
Input tensor.

Returns

TensorImplPtr

Output tensor with the same shape as a.