| 58 | // Legacy function, left for compatibility only. |
| 59 | template <FusedActivationFunctionType Ac> |
| 60 | float ActivationFunction(float x) { |
| 61 | float output_activation_min, output_activation_max; |
| 62 | GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); |
| 63 | return ActivationFunctionWithMinMax(x, output_activation_min, |
| 64 | output_activation_max); |
| 65 | } |
| 66 | |
| 67 | inline void BiasAndClamp(float clamp_min, float clamp_max, int bias_size, |
| 68 | const float* bias_data, int array_size, |
nothing calls this directly
no test coverage detected