Skip to content
fn

relu_op

→TensorImplPtr
int relu_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbols.

Element-wise rectified linear unit y=max⁡(0,x)y = \max(0, x).

See Also

ReluBackward : Autograd node implementing the gradient rule.

Parameters

aTensorImplPtr
Input tensor of any real dtype.

Returns

TensorImplPtr

Output tensor with the same shape and dtype as a; autograd-aware when a.requires_grad is true.