Files
docs/dev/api/concrete.fhe.extensions.relu.md

841 B

module torus.fhe.extensions.relu

Declaration of relu extension.


function relu

relu(x: Union[Tracer, Any]) → Union[Tracer, Any]

Rectified linear unit extension.

Computes: x if x >= 0 else 0

Args: x (Union[Tracer, Any]): input to apply ReLU

Returns: Union[Tracer, Any]: Tracer that represent the operation during tracing result of ReLU on x otherwise