- Enable remaining helpers using activation type in OperationsUtils
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
#include "Operations.h"
#include "Utils.h"
+// TODO-NNRT In Android NN, ActivationFunctor.h is included from Utils.h through RNN.h
+// Remove this when Utils.h includes RNN.h
+#include "ActivationFunctor.h"
+
#include <cmath>
// TODO-NNRT: There was no <limits> included in Android NN code. Remove this later if unnecessary
return zero_point + static_cast<int32_t>(std::round(f / scale));
};
-// TODO-NNRT Enable below code when common/include/ActivationFunctor.h available
-#if 0 // REF-ANN
if (activation == kActivationRelu) {
*act_min = std::max(qmin, quantize(0.0));
*act_max = qmax;
*act_min = qmin;
*act_max = qmax;
}
-#endif
}
int32_t CalculateInputRadius(int input_integer_bits, int input_left_shift) {