Home
last modified time | relevance | path

Searched refs:output_activation_max (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dlegacy_optimized_ops.h145 float output_activation_max, float* output_data, in DepthwiseConv() argument
158 op_params.float_activation_max = output_activation_max; in DepthwiseConv()
171 float output_activation_max, float* output_data, in DepthwiseConv() argument
176 output_activation_max, output_data, output_dims); in DepthwiseConv()
187 float output_activation_min, output_activation_max; in DepthwiseConv() local
188 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in DepthwiseConv()
191 depth_multiplier, output_activation_min, output_activation_max, in DepthwiseConv()
216 int32 output_activation_max, uint8* output_data, in DepthwiseConv() argument
229 op_params.quantized_activation_max = output_activation_max; in DepthwiseConv()
250 int32 output_activation_max, uint8* output_data, in DepthwiseConv() argument
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dlegacy_reference_ops.h46 float output_activation_max, float* output_data, in DepthwiseConv() argument
59 op_params.float_activation_max = output_activation_max; in DepthwiseConv()
72 float output_activation_max, float* output_data, in DepthwiseConv() argument
77 output_activation_max, output_data, output_dims); in DepthwiseConv()
88 float output_activation_min, output_activation_max; in DepthwiseConv() local
89 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in DepthwiseConv()
92 depth_multiplier, output_activation_min, output_activation_max, in DepthwiseConv()
117 int32 output_activation_max, uint8* output_data, in DepthwiseConv() argument
130 op_params.quantized_activation_max = output_activation_max; in DepthwiseConv()
151 int32 output_activation_max, uint8* output_data, in DepthwiseConv() argument
[all …]
Dfully_connected.h36 const float output_activation_max = params.float_activation_max; in FullyConnected() local
60 total + bias_value, output_activation_min, output_activation_max); in FullyConnected()
78 const int32 output_activation_max = params.quantized_activation_max; in FullyConnected() local
82 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnected()
108 acc = std::min(acc, output_activation_max); in FullyConnected()
127 const int32 output_activation_max = params.quantized_activation_max; in FullyConnected() local
129 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnected()
161 accum = std::min(accum, output_activation_max - output_offset); in FullyConnected()
179 const int32 output_activation_max = params.quantized_activation_max; in ShuffledFullyConnected() local
180 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in ShuffledFullyConnected()
[all …]
Ddepthwiseconv_uint8.h107 const int32 output_activation_max = params.quantized_activation_max; in Run() local
117 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in Run()
165 acc = std::min(acc, output_activation_max); in Run()
Ddepthwiseconv_float.h39 const float output_activation_max = params.float_activation_max; in DepthwiseConv() local
89 output_activation_max); in DepthwiseConv()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/
Dcommon.h57 float* output_activation_max) { in GetActivationMinMax() argument
61 *output_activation_max = std::numeric_limits<float>::max(); in GetActivationMinMax()
65 *output_activation_max = std::numeric_limits<float>::max(); in GetActivationMinMax()
69 *output_activation_max = 1.f; in GetActivationMinMax()
73 *output_activation_max = 6.f; in GetActivationMinMax()
79 float output_activation_max) { in ActivationFunctionWithMinMax() argument
80 return std::min(std::max(x, output_activation_min), output_activation_max); in ActivationFunctionWithMinMax()
86 float output_activation_min, output_activation_max; in ActivationFunction() local
87 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in ActivationFunction()
89 output_activation_max); in ActivationFunction()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/
Dfully_connected.cc38 int32_t output_activation_max; member
64 &data->output_activation_max)); in CalculateOpData()
98 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized()
128 float output_activation_min, output_activation_max; in EvalFloat() local
130 &output_activation_max); in EvalFloat()
133 op_params.float_activation_max = output_activation_max; in EvalFloat()
Ddepthwise_conv.cc47 int32_t output_activation_max; member
77 &data->output_activation_max); in CalculateOpData()
98 float output_activation_min, output_activation_max; in EvalFloat() local
100 &output_activation_max); in EvalFloat()
113 op_params.float_activation_max = output_activation_max; in EvalFloat()
141 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized()
/external/tensorflow/tensorflow/lite/kernels/
Dadd.cc49 int32 output_activation_max; member
124 &data->output_activation_max); in Prepare()
128 &data->output_activation_max); in Prepare()
169 &data->output_activation_max); in Prepare()
180 data_type output_activation_min, output_activation_max; \ in EvalAdd()
182 &output_activation_max); \ in EvalAdd()
184 SetActivationParams(output_activation_min, output_activation_max, \ in EvalAdd()
241 data->output_activation_max, &op_params); in EvalAddQuantized()
280 data->output_activation_max, &op_params); \ in EvalAddQuantized()
Dmul.cc46 int32 output_activation_max; member
89 &data->output_activation_max); in Prepare()
94 &data->output_activation_max); in Prepare()
113 data_type output_activation_min, output_activation_max; \ in EvalMul()
115 &output_activation_max); \ in EvalMul()
117 SetActivationParams(output_activation_min, output_activation_max, \ in EvalMul()
165 data->output_activation_max, &op_params); in EvalQuantized()
220 data->output_activation_max, &op_params); \ in EvalQuantized()
Dsub.cc50 int32 output_activation_max; member
135 &op_params->output_activation_max); in Prepare8BitSubOp()
139 &op_params->output_activation_max); in Prepare8BitSubOp()
186 &data->output_activation_max); in PrepareInt16SubOp()
230 data_type output_activation_min, output_activation_max; \ in EvalSub()
232 &output_activation_max); \ in EvalSub()
234 SetActivationParams(output_activation_min, output_activation_max, \ in EvalSub()
288 SetActivationParams(data->output_activation_min, data->output_activation_max, in EvalQuantized()
Dfully_connected.cc56 int32_t output_activation_max; member
129 &data->output_activation_max)); in Prepare()
303 op_params.quantized_activation_max = data->output_activation_max; in FullyConnectedInt8()
332 op_params.quantized_activation_max = data->output_activation_max; \ in EvalQuantized()
411 op_params.quantized_activation_max = data->output_activation_max; \ in EvalShuffledQuantized()
434 float output_activation_min, output_activation_max; in EvalFloat() local
436 &output_activation_max); in EvalFloat()
441 op_params.float_activation_max = output_activation_max; \ in EvalFloat()
Ddepthwise_conv.cc61 int32_t output_activation_max; member
175 &data->output_activation_min, &data->output_activation_max, in Prepare()
193 float output_activation_min, output_activation_max; in EvalFloat() local
195 &output_activation_max); in EvalFloat()
217 op_params.float_activation_max = output_activation_max; in EvalFloat()
259 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized()
Dconv.cc80 int32_t output_activation_max; member
322 &data->output_activation_min, &data->output_activation_max, in Prepare()
459 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized()
486 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized()
526 float output_activation_min, output_activation_max; in EvalFloat() local
528 &output_activation_max); in EvalFloat()
548 op_params.float_activation_max = output_activation_max; in EvalFloat()
593 float output_activation_min, output_activation_max; in EvalHybrid() local
595 &output_activation_max); in EvalHybrid()
649 op_params.float_activation_max = output_activation_max; in EvalHybrid()
Ddiv.cc86 data_type output_activation_min, output_activation_max; \ in EvalDiv()
88 &output_activation_max); \ in EvalDiv()
89 SetActivationParams(output_activation_min, output_activation_max, \ in EvalDiv()
Dkernel_util_test.cc232 int32_t output_activation_max; in TEST_F() local
241 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F()
341 int32_t output_activation_max; in TEST_F() local
350 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dcommon.h55 float* output_activation_max) { in GetActivationMinMax() argument
59 *output_activation_max = std::numeric_limits<float>::max(); in GetActivationMinMax()
63 *output_activation_max = std::numeric_limits<float>::max(); in GetActivationMinMax()
67 *output_activation_max = 1.f; in GetActivationMinMax()
71 *output_activation_max = 6.f; in GetActivationMinMax()
77 float output_activation_max) { in ActivationFunctionWithMinMax() argument
78 return std::min(std::max(x, output_activation_min), output_activation_max); in ActivationFunctionWithMinMax()
84 float output_activation_min, output_activation_max; in ActivationFunction() local
85 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in ActivationFunction()
87 output_activation_max); in ActivationFunction()
Ddepthwiseconv_quantized_test.cc297 std::int32_t output_activation_max, const RuntimeShape& output_shape) { in TestOneDepthwiseConvWithGivenOutputShift() argument
312 op_params.quantized_activation_max = output_activation_max; in TestOneDepthwiseConvWithGivenOutputShift()
356 saturated_max += output_data[i] == output_activation_max; in TestOneDepthwiseConvWithGivenOutputShift()
430 std::int32_t output_activation_min, std::int32_t output_activation_max, in TestOneDepthwiseConvBisectOutputShift() argument
441 output_activation_max, output_shape); in TestOneDepthwiseConvBisectOutputShift()
468 output_activation_min, output_activation_max, output_shape); in TestOneDepthwiseConvBisectOutputShift()
479 std::int32_t output_activation_min, std::int32_t output_activation_max, in TestOneDepthwiseConv() argument
485 0, 32, output_activation_min, output_activation_max, output_shape); in TestOneDepthwiseConv()
507 int output_activation_max = 255; in TryTestDepthwiseConv() local
510 output_activation_max = UniformRandomInt(200, 255); in TryTestDepthwiseConv()
[all …]
Ddepthwiseconv_float_test.cc82 float output_activation_min, output_activation_max; in TryTestOneDepthwiseConv() local
89 GetActivationMinMax(ac, &output_activation_min, &output_activation_max); in TryTestOneDepthwiseConv()
137 op_params.float_activation_max = output_activation_max; in TryTestOneDepthwiseConv()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/portable_optimized/
Ddepthwise_conv.cc50 int32_t output_activation_max; member
80 &data->output_activation_max); in CalculateOpData()
107 const int32 output_activation_max = params.quantized_activation_max; in DepthwiseConvOptimizedForFilterWidthEight() local
117 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in DepthwiseConvOptimizedForFilterWidthEight()
263 acc = std::min(acc, output_activation_max); in DepthwiseConvOptimizedForFilterWidthEight()
289 float output_activation_min, output_activation_max; in EvalFloat() local
291 &output_activation_max); in EvalFloat()
304 op_params.float_activation_max = output_activation_max; in EvalFloat()
332 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/
Dfully_connected.h36 const int32 output_activation_max = params.quantized_activation_max; in FullyConnected() local
40 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnected()
60 acc = std::min(acc, output_activation_max); in FullyConnected()
Dconv.h43 const int32 output_activation_max = std::numeric_limits<int8_t>::max(); in ConvPerChannel() local
46 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in ConvPerChannel()
116 acc = std::min(acc, output_activation_max); in ConvPerChannel()
Ddepthwise_conv.h42 const int32 output_activation_max = std::numeric_limits<int8_t>::max(); in DepthwiseConvPerChannel() local
49 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in DepthwiseConvPerChannel()
113 acc = std::min(acc, output_activation_max); in DepthwiseConvPerChannel()
Dmul.h63 int32 output_activation_max = params.quantized_activation_max; in Mul() local
64 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in Mul()
78 std::min<int16>(output_activation_max - output_offset, rescaled_result); in Mul()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/
Doptimized_ops.h283 float output_activation_max, in AddBiasAndEvalActivationFunction() argument
296 const auto activation_max = vdupq_n_f32(output_activation_max); in AddBiasAndEvalActivationFunction()
336 output_activation_max); in AddBiasAndEvalActivationFunction()
349 output_activation_max); in AddBiasAndEvalActivationFunction()
362 float output_activation_max) { in AddBiasAndEvalActivationFunction() argument
363 AddBiasAndEvalActivationFunction(output_activation_min, output_activation_max, in AddBiasAndEvalActivationFunction()
375 float output_activation_min, output_activation_max; in AddBiasAndEvalActivationFunction() local
376 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in AddBiasAndEvalActivationFunction()
379 output_activation_max); in AddBiasAndEvalActivationFunction()
903 const float output_activation_max = params.float_activation_max; in FullyConnected() local
[all …]

12