mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-16 07:35:16 -05:00
924 B
924 B
module concrete.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