Skip to content
fn

relu6_op

→TensorImplPtr
int relu6_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

ReLU6 y=clamp(x,0,6)y = \mathrm{clamp}(x, 0, 6).

See Also

Relu6Backward : Autograd node implementing the gradient rule.

Parameters

aTensorImplPtr
Input tensor.

Returns

TensorImplPtr

Output tensor with values in [0,6][0, 6].