Lines Matching refs:inputData

52 bool reluFloat(const T* inputData, const Shape& inputShape, T* outputData, const Shape& outputShape,  in reluFloat()  argument
56 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
58 std::min(std::max(reluMin, static_cast<float>(*inputData)), reluMax)); in reluFloat()
62 template bool reluFloat<float>(const float* inputData, const Shape& inputShape, float* outputData,
64 template bool reluFloat<_Float16>(const _Float16* inputData, const Shape& inputShape,
69 bool relu1Float(const T* inputData, const Shape& inputShape, T* outputData, in relu1Float() argument
71 return reluFloat(inputData, inputShape, outputData, outputShape, -1.f, 1.f); in relu1Float()
73 template bool relu1Float<float>(const float* inputData, const Shape& inputShape, float* outputData,
75 template bool relu1Float<_Float16>(const _Float16* inputData, const Shape& inputShape,
79 bool relu6Float(const T* inputData, const Shape& inputShape, T* outputData, in relu6Float() argument
81 return reluFloat(inputData, inputShape, outputData, outputShape, 0.f, 6.f); in relu6Float()
83 template bool relu6Float<float>(const float* inputData, const Shape& inputShape, float* outputData,
85 template bool relu6Float<_Float16>(const _Float16* inputData, const Shape& inputShape,
88 bool tanhFloat16(const _Float16* inputData, const Shape& inputShape, _Float16* outputData, in tanhFloat16() argument
92 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat16()
93 *outputData = static_cast<_Float16>(std::tanh(static_cast<float>(*inputData))); in tanhFloat16()
98 bool tanhFloat32(const float* inputData, const Shape& inputShape, float* outputData, in tanhFloat32() argument
102 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat32()
103 *outputData = std::tanh(*inputData); in tanhFloat32()
109 bool logisticFloat(const T* inputData, const Shape& inputShape, T* outputData, in logisticFloat() argument
113 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in logisticFloat()
114 *outputData = static_cast<T>(1.f / (1.f + std::exp(static_cast<float>(-*inputData)))); in logisticFloat()
118 template bool logisticFloat<float>(const float* inputData, const Shape& inputShape,
120 template bool logisticFloat<_Float16>(const _Float16* inputData, const Shape& inputShape,
124 inline bool reluXQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in reluXQuant8() argument
133 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluXQuant8()
135 std::max((uint8_t)output_activation_min, *inputData)); in reluXQuant8()
140 bool reluQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in reluQuant8() argument
143 return reluXQuant8<kActivationRelu>(inputData, inputShape, outputData, outputShape); in reluQuant8()
146 bool relu1Quant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in relu1Quant8() argument
149 return reluXQuant8<kActivationRelu1>(inputData, inputShape, outputData, outputShape); in relu1Quant8()
152 bool relu6Quant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in relu6Quant8() argument
155 return reluXQuant8<kActivationRelu6>(inputData, inputShape, outputData, outputShape); in relu6Quant8()
158 bool tanhQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in tanhQuant8() argument
181 tflite::optimized_ops::Tanh(inputData, convertShapeToTflshape(inputShape), inputShape.offset, in tanhQuant8()
188 bool logisticQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in logisticQuant8() argument
212 inputData, convertShapeToTflshape(inputShape), inputShape.offset, input_range_radius, in logisticQuant8()
219 inline bool reluXQuant8Signed(const int8_t* inputData, const Shape& inputShape, int8_t* outputData, in reluXQuant8Signed() argument
228 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluXQuant8Signed()
230 std::max((int8_t)output_activation_min, *inputData)); in reluXQuant8Signed()
235 bool reluQuant8Signed(const int8_t* inputData, const Shape& inputShape, int8_t* outputData, in reluQuant8Signed() argument
238 return reluXQuant8Signed<kActivationRelu>(inputData, inputShape, outputData, outputShape); in reluQuant8Signed()
241 bool relu1Quant8Signed(const int8_t* inputData, const Shape& inputShape, int8_t* outputData, in relu1Quant8Signed() argument
244 return reluXQuant8Signed<kActivationRelu1>(inputData, inputShape, outputData, outputShape); in relu1Quant8Signed()
247 bool relu6Quant8Signed(const int8_t* inputData, const Shape& inputShape, int8_t* outputData, in relu6Quant8Signed() argument
250 return reluXQuant8Signed<kActivationRelu6>(inputData, inputShape, outputData, outputShape); in relu6Quant8Signed()
253 bool tanhQuant8Signed(const int8_t* inputData, const Shape& inputShape, int8_t* outputData, in tanhQuant8Signed() argument
277 input_left_shift, numElements, inputData, outputData); in tanhQuant8Signed()
282 bool logisticQuant8Signed(const int8_t* inputData, const Shape& inputShape, int8_t* outputData, in logisticQuant8Signed() argument
306 input_left_shift, numElements, inputData, outputData); in logisticQuant8Signed()
326 bool hardSwishQuant(const T* inputData, const Shape& inputShape, T* outputData, in hardSwishQuant() argument
352 tflite::reference_ops::HardSwish(params, convertShapeToTflshape(inputShape), inputData, in hardSwishQuant()