/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | legacy_reference_ops.h | 51 float output_activation_max, float* output_data, in DepthwiseConv() argument 64 op_params.float_activation_max = output_activation_max; in DepthwiseConv() 77 float output_activation_max, float* output_data, in DepthwiseConv() argument 82 output_activation_max, output_data, output_dims); in DepthwiseConv() 93 float output_activation_min, output_activation_max; in DepthwiseConv() local 94 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in DepthwiseConv() 97 depth_multiplier, output_activation_min, output_activation_max, in DepthwiseConv() 122 int32 output_activation_max, uint8* output_data, in DepthwiseConv() argument 135 op_params.quantized_activation_max = output_activation_max; in DepthwiseConv() 156 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() 77 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnected() local 81 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnected() 107 acc = std::min(acc, output_activation_max); in FullyConnected() 125 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnected() local 127 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnected() 160 accum = std::min(accum, output_activation_max - output_offset); in FullyConnected() 176 const int32_t output_activation_max = params.quantized_activation_max; in ShuffledFullyConnected() local 177 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in ShuffledFullyConnected() [all …]
|
D | mul.h | 53 T output_activation_max; in Mul() local 54 GetActivationParams(params, &output_activation_min, &output_activation_max); in Mul() 61 output_activation_max); in Mul() 140 T output_activation_max; in BroadcastMul4DSlow() local 141 GetActivationParams(params, &output_activation_min, &output_activation_max); in BroadcastMul4DSlow() 173 output_activation_min, output_activation_max); in BroadcastMul4DSlow()
|
D | conv.h | 40 const float output_activation_max = params.float_activation_max; in Conv() local 103 output_activation_max); in Conv() 131 const int32_t output_activation_max = params.quantized_activation_max; in Conv() local 132 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in Conv() 194 acc = std::min(acc, output_activation_max); in Conv() 220 const float output_activation_max = params.float_activation_max; in HybridConvPerChannel() local 277 output_activation_max); in HybridConvPerChannel()
|
D | div.h | 193 T output_activation_max; in BroadcastDivSlow() local 194 GetActivationParams(params, &output_activation_min, &output_activation_max); in BroadcastDivSlow() 221 output_activation_min, output_activation_max); in BroadcastDivSlow() 232 T output_activation_max; in Div() local 233 GetActivationParams(params, &output_activation_min, &output_activation_max); in Div() 240 output_activation_max); in Div()
|
D | depthwiseconv_uint8.h | 128 const int32_t output_activation_max = params.quantized_activation_max; in Run() local 138 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in Run() 186 acc = std::min(acc, output_activation_max); in Run() 216 const int32_t output_activation_max = params.quantized_activation_max; in RunPerChannel() local 225 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in RunPerChannel() 289 acc = std::min(acc, output_activation_max); in RunPerChannel()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/ |
D | fully_connected.h | 42 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnectedPerChannel() local 46 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnectedPerChannel() 67 acc = std::min(acc, output_activation_max); in FullyConnectedPerChannel() 82 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnectedPerChannel() local 86 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnectedPerChannel() 107 acc_scaled = std::min(acc_scaled, output_activation_max); in FullyConnectedPerChannel() 125 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnected() local 129 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in FullyConnected() 150 acc = std::min(acc, output_activation_max); in FullyConnected() 167 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnected() local [all …]
|
D | depthwise_conv.h | 43 const int32_t output_activation_max = params.quantized_activation_max; in DepthwiseConvPerChannel() local 50 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in DepthwiseConvPerChannel() 114 acc = std::min(acc, output_activation_max); in DepthwiseConvPerChannel() 140 const int32_t output_activation_max = params.quantized_activation_max; in DepthwiseConvPerChannel() local 147 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in DepthwiseConvPerChannel() 199 scaled_acc = std::min(scaled_acc, output_activation_max); in DepthwiseConvPerChannel() 225 const float output_activation_max = params.float_activation_max; in DepthwiseConvHybridPerChannel() local 280 output_activation_max); in DepthwiseConvHybridPerChannel()
|
D | conv.h | 45 const int32_t output_activation_max = params.quantized_activation_max; in ConvPerChannel() local 48 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in ConvPerChannel() 127 acc = std::min(acc, output_activation_max); in ConvPerChannel() 156 const int32_t output_activation_max = params.quantized_activation_max; in ConvPerChannel() local 159 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in ConvPerChannel() 226 scaled_acc = std::min(scaled_acc, output_activation_max); in ConvPerChannel()
|
D | transpose_conv.h | 59 const int32_t output_activation_max = std::numeric_limits<int8_t>::max(); in TransposeConv() local 60 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in TransposeConv() 115 acc = std::min(acc, output_activation_max); in TransposeConv() 157 const int32_t output_activation_max = std::numeric_limits<int16_t>::max(); in TransposeConv() local 158 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in TransposeConv() 212 scaled_acc = std::min(scaled_acc, output_activation_max); in TransposeConv()
|
D | mul.h | 68 int32_t output_activation_max = params.quantized_activation_max; in Mul() local 69 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in Mul() 83 output_activation_max - output_offset, rescaled_result); in Mul()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | legacy_optimized_ops.h | 146 float output_activation_max, float* output_data, in DepthwiseConv() argument 159 op_params.float_activation_max = output_activation_max; in DepthwiseConv() 177 float output_activation_max, float* output_data, in DepthwiseConv() argument 182 output_activation_max, output_data, output_dims); in DepthwiseConv() 193 float output_activation_min, output_activation_max; in DepthwiseConv() local 194 GetActivationMinMax(Ac, &output_activation_min, &output_activation_max); in DepthwiseConv() 197 depth_multiplier, output_activation_min, output_activation_max, in DepthwiseConv() 223 const int32 output_activation_max = params.quantized_activation_max; in LegacyDepthwiseConvWithRounding() local 231 TFLITE_DCHECK_LE(output_activation_min, output_activation_max); in LegacyDepthwiseConvWithRounding() 290 int32 output_activation_max, uint8* output_data, in DepthwiseConv() argument [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | add.cc | 60 int32 output_activation_max; member 197 &data->output_activation_max)); in Prepare() 226 &data->output_activation_max)); in Prepare() 240 data_type output_activation_min, output_activation_max; \ in EvalAdd() 242 &output_activation_max); \ in EvalAdd() 243 SetActivationParams(output_activation_min, output_activation_max, \ in EvalAdd() 315 data->output_activation_max, &op_params); in EvalAddQuantized() 371 data->output_activation_max, &op_params); in EvalAddQuantized()
|
D | mul.cc | 57 int32 output_activation_max; member 106 &data->output_activation_max)); in Prepare() 124 data_type output_activation_min, output_activation_max; \ in EvalMul() 126 &output_activation_max); \ in EvalMul() 127 SetActivationParams(output_activation_min, output_activation_max, \ in EvalMul() 196 data->output_activation_max, &op_params); in EvalQuantized() 261 data->output_activation_max, &op_params); \ in EvalQuantized()
|
D | div.cc | 53 int32 output_activation_max; member 103 &data->output_activation_max)); in Prepare() 119 data_type output_activation_min, output_activation_max; \ in EvalDiv() 121 &output_activation_max); \ in EvalDiv() 122 SetActivationParams(output_activation_min, output_activation_max, \ in EvalDiv() 169 data->output_activation_max, &op_params); in EvalQuantized()
|
D | depthwise_conv.cc | 70 int32_t output_activation_max; member 195 &data->output_activation_min, &data->output_activation_max, in Prepare() 303 float output_activation_min, output_activation_max; in EvalFloat() local 305 &output_activation_max); in EvalFloat() 316 op_params.float_activation_max = output_activation_max; in EvalFloat() 360 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized() 399 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantizedPerChannel() 439 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantizedPerChannel16x8() 459 float output_activation_min, output_activation_max; in EvalHybridPerChannel() local 461 &output_activation_max); in EvalHybridPerChannel() [all …]
|
D | sub.cc | 64 int32 output_activation_max; member 161 &op_params->output_activation_max)); in PrepareGeneralSubOp() 209 &data->output_activation_max)); in PrepareInt16SubOpPOT() 305 data_type output_activation_min, output_activation_max; in EvalSubImpl() local 307 &output_activation_max); in EvalSubImpl() 309 SetActivationParams(output_activation_min, output_activation_max, &op_params); in EvalSubImpl() 383 SetActivationParams(data->output_activation_min, data->output_activation_max, in EvalQuantized()
|
D | conv.cc | 98 int32_t output_activation_max; member 484 &data->output_activation_min, &data->output_activation_max, in Prepare() 701 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantized() 746 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantizedPerChannel() 806 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantizedPerChannel16x8() 864 float output_activation_min, output_activation_max; in EvalFloat() local 866 &output_activation_max); in EvalFloat() 907 op_params.float_activation_max = output_activation_max; in EvalFloat() 962 float output_activation_min, output_activation_max; in EvalHybridPerChannel() local 964 &output_activation_max); in EvalHybridPerChannel() [all …]
|
D | kernel_util_test.cc | 441 int32_t output_activation_max; in TEST_F() local 450 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F() 543 int32_t output_activation_max; in TEST_F() local 552 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F() 653 int32_t output_activation_max; in TEST_F() local 662 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F() 751 int32_t output_activation_max; in TEST_F() local 760 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F() 833 int32_t output_activation_max; in TEST_F() local 842 &multiplier, &shift, &output_activation_min, &output_activation_max, in TEST_F()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/sparse_ops/ |
D | fully_connected.h | 42 const float output_activation_max = params.float_activation_max; in FullyConnectedSparseWeight() local 74 total + bias_value, output_activation_min, output_activation_max); in FullyConnectedSparseWeight() 102 const int32_t output_activation_max = params.quantized_activation_max; in FullyConnectedSparseWeight1x16Impl() local 111 output_activation_min, output_activation_max, in FullyConnectedSparseWeight1x16Impl() 125 const float output_activation_max = params.float_activation_max; in FullyConnectedSparseWeight1x4Impl() local 149 total + bias_value, output_activation_min, output_activation_max); in FullyConnectedSparseWeight1x4Impl()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | depthwiseconv_per_channel_quantized_16x8_test.cc | 115 int output_activation_max, int output_depth, in PickReasonableMultiplier() argument 192 const int output_activation_max = 32767; in TryTestOneDepthwiseConv3x3Filter() local 237 params.quantized_activation_max = output_activation_max; in TryTestOneDepthwiseConv3x3Filter() 253 params, output_activation_min, output_activation_max, output_depth, in TryTestOneDepthwiseConv3x3Filter() 297 if (ref_res > output_activation_max) ref_res = output_activation_max; in TryTestOneDepthwiseConv3x3Filter()
|
D | conv_per_channel_quantized_16x8_test.cc | 116 int output_activation_max, int output_depth, in PickReasonableMultiplier() argument 193 const int output_activation_max = 32767; in TryTestOneConvFilter() local 243 params.quantized_activation_max = output_activation_max; in TryTestOneConvFilter() 259 params, output_activation_min, output_activation_max, output_depth, in TryTestOneConvFilter() 307 if (ref_res > output_activation_max) ref_res = output_activation_max; in TryTestOneConvFilter()
|
D | depthwiseconv_quantized_test.cc | 623 std::int32_t output_activation_min, std::int32_t output_activation_max, in TestOneDepthwiseConvWithGivenOutputShift() argument 641 op_params.quantized_activation_max = output_activation_max; in TestOneDepthwiseConvWithGivenOutputShift() 681 saturated_max += output_data[i] == output_activation_max; in TestOneDepthwiseConvWithGivenOutputShift() 761 std::int32_t output_activation_min, std::int32_t output_activation_max, in TestOneDepthwiseConvBisectOutputShift() argument 774 output_activation_max, output_shape); in TestOneDepthwiseConvBisectOutputShift() 802 output_activation_min, output_activation_max, output_shape); in TestOneDepthwiseConvBisectOutputShift() 819 std::int32_t output_activation_min, std::int32_t output_activation_max, in TestOneDepthwiseConv() argument 826 output_activation_min, output_activation_max, output_shape); in TestOneDepthwiseConv() 849 int output_activation_max; in TryTestDepthwiseConv() local 856 output_activation_max = 255; in TryTestDepthwiseConv() [all …]
|
D | depthwiseconv_float_test.cc | 85 float output_activation_min, output_activation_max; in TryTestOneDepthwiseConv() local 92 GetActivationMinMax(ac, &output_activation_min, &output_activation_max); in TryTestOneDepthwiseConv() 140 op_params.float_activation_max = output_activation_max; in TryTestOneDepthwiseConv()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/ |
D | fully_connected.h | 43 const int32 output_activation_max = params.quantized_activation_max; in FullyConnectedPerChannel() local 92 gemm_params.clamp_max = output_activation_max; in FullyConnectedPerChannel() 115 const int32 output_activation_max = params.quantized_activation_max; in FullyConnected() local 161 gemm_params.clamp_max = output_activation_max; in FullyConnected()
|