Lines Matching refs:outputData

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()
57 *outputData = static_cast<T>( in reluFloat()
62 template bool reluFloat<float>(const float* inputData, const Shape& inputShape, float* outputData,
65 _Float16* outputData, const Shape& outputShape, float reluMin,
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,
76 _Float16* outputData, const Shape& outputShape);
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,
86 _Float16* outputData, const Shape& outputShape);
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()
119 float* outputData, const Shape& outputShape);
121 _Float16* outputData, const Shape& outputShape);
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()
134 *outputData = std::min((uint8_t)output_activation_max, 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
182 input_range_radius, input_multiplier, input_left_shift, outputData, in tanhQuant8()
188 bool logisticQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in logisticQuant8() argument
213 input_multiplier, input_left_shift, outputData, convertShapeToTflshape(outputShape)); 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()
229 *outputData = std::min((int8_t)output_activation_max, 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
353 convertShapeToTflshape(outputShape), outputData); in hardSwishQuant()