34 const float alpha,
const bool is_relu_6)
36 const Type relu_6_value = 6.0f;
37 for (
int i = 0; i < flat_size; i++)
39 const Type val = input_data[i];
40 Type result = val > 0 ? val : val * alpha;
41 result = is_relu_6 ? (result > relu_6_value ? relu_6_value : result) : result;
42 output_data[i] = result;