/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | legacy_optimized_ops.h | 145 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/ |
D | legacy_reference_ops.h | 46 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 …]
|
D | fully_connected.h | 36 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 …]
|
D | depthwiseconv_uint8.h | 107 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()
|
D | depthwiseconv_float.h | 39 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/ |
D | common.h | 57 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/ |
D | fully_connected.cc | 38 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()
|
D | depthwise_conv.cc | 47 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/ |
D | add.cc | 49 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()
|
D | mul.cc | 46 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()
|
D | sub.cc | 50 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()
|
D | fully_connected.cc | 56 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()
|
D | depthwise_conv.cc | 61 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()
|
D | conv.cc | 80 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()
|
D | div.cc | 86 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()
|
D | kernel_util_test.cc | 232 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/ |
D | common.h | 55 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()
|
D | depthwiseconv_quantized_test.cc | 297 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 …]
|
D | depthwiseconv_float_test.cc | 82 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/ |
D | depthwise_conv.cc | 50 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/ |
D | fully_connected.h | 36 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()
|
D | conv.h | 43 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()
|
D | depthwise_conv.h | 42 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()
|
D | mul.h | 63 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/ |
D | optimized_ops.h | 283 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 …]
|