MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ActivationFunction

Function ActivationFunction

tensorflow/lite/kernels/internal/common.h:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58// Legacy function, left for compatibility only.
59template <FusedActivationFunctionType Ac>
60float 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
67inline void BiasAndClamp(float clamp_min, float clamp_max, int bias_size,
68 const float* bias_data, int array_size,

Callers

nothing calls this directly

Calls 2

GetActivationMinMaxFunction · 0.85

Tested by

no test coverage detected