Skip to content

utility relu

GitHub Action edited this page Jul 9, 2026 · 1 revision
inline float relu(float x)

Basic Info

Applies ReLU to an input for non-linearity.

Return Type

Returns a float

Parameters

Parameter Type Use Optional
x float Input ❌

Example

// Calling the relu() function
float relulabubu = utility::relu(0.38134137839);

Clone this wiki locally