Lines Matching refs:outputData
40 bool reluFloat(const T* inputData, const Shape& inputShape, T* outputData, const Shape& outputShape, in reluFloat() argument
44 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
45 *outputData = static_cast<T>( in reluFloat()
50 template bool reluFloat<float>(const float* inputData, const Shape& inputShape, float* outputData,
53 _Float16* outputData, const Shape& outputShape, float reluMin,
57 bool relu1Float(const T* inputData, const Shape& inputShape, T* outputData, in relu1Float() argument
59 return reluFloat(inputData, inputShape, outputData, outputShape, -1.f, 1.f); in relu1Float()
61 template bool relu1Float<float>(const float* inputData, const Shape& inputShape, float* outputData,
64 _Float16* outputData, const Shape& outputShape);
67 bool relu6Float(const T* inputData, const Shape& inputShape, T* outputData, in relu6Float() argument
69 return reluFloat(inputData, inputShape, outputData, outputShape, 0.f, 6.f); in relu6Float()
71 template bool relu6Float<float>(const float* inputData, const Shape& inputShape, float* outputData,
74 _Float16* outputData, const Shape& outputShape);
76 bool tanhFloat16(const _Float16* inputData, const Shape& inputShape, _Float16* outputData, in tanhFloat16() argument
80 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat16()
81 *outputData = static_cast<_Float16>(std::tanh(static_cast<float>(*inputData))); in tanhFloat16()
86 bool tanhFloat32(const float* inputData, const Shape& inputShape, float* outputData, in tanhFloat32() argument
90 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat32()
91 *outputData = std::tanh(*inputData); in tanhFloat32()
97 bool logisticFloat(const T* inputData, const Shape& inputShape, T* outputData, in logisticFloat() argument
101 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in logisticFloat()
102 *outputData = static_cast<T>(1.f / (1.f + std::exp(static_cast<float>(-*inputData)))); in logisticFloat()
107 float* outputData, const Shape& outputShape);
109 _Float16* outputData, const Shape& outputShape);
119 for (int i = 0; i < numElements; i++, inputData++, outputData++) { \
120 *outputData = std::min((uint8_t)output_activation_max, \
124 bool reluQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in reluQuant8() argument
131 bool relu1Quant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in relu1Quant8() argument
138 bool relu6Quant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in relu6Quant8() argument
147 bool tanhQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in tanhQuant8() argument
171 input_range_radius, input_multiplier, input_left_shift, outputData, in tanhQuant8()
177 bool logisticQuant8(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in logisticQuant8() argument
202 input_multiplier, input_left_shift, outputData, convertShapeToTflshape(outputShape)); in logisticQuant8()