/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | fully_connected.h | 76 const int output_shift = params.output_shift; in FullyConnected() local 105 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected() 125 const int output_shift = params.output_shift; in FullyConnected() local 158 MultiplyByQuantizedMultiplier(accum, output_multiplier, output_shift); in FullyConnected() 177 const int output_shift = params.output_shift; in ShuffledFullyConnected() local 258 MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in ShuffledFullyConnected() 309 output_shift); in ShuffledFullyConnected()
|
D | legacy_reference_ops.h | 116 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 136 op_params.output_shift = kDepthwiseReverseShift * output_shift; in DepthwiseConv() 150 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 156 output_offset, output_multiplier, output_shift, in DepthwiseConv() 169 int32 output_multiplier, int output_shift, in DepthwiseConv() argument 179 output_offset, output_multiplier, output_shift, in DepthwiseConv() 192 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 198 output_offset, output_multiplier, output_shift, in DepthwiseConv() 280 int32 output_offset, int32 output_multiplier, int output_shift, in Conv() argument 299 op_params.output_shift = kReverseShift * output_shift; in Conv() [all …]
|
D | depthwiseconv_uint8.h | 112 const int output_shift = params.output_shift; in Run() local 162 output_shift); in Run()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | depthwiseconv_uint8_transitional.h | 2298 const int32 output_shift = params.output_shift; 2312 output_shift); 2462 const int32 output_shift = function_params.output_shift; 2476 output_shift); 2603 const int32 output_shift = function_params->output_shift; 2702 acc, output_multiplier, output_shift); 2810 const int32 output_shift = function_params->output_shift; 2893 acc, output_multiplier, output_shift); 2919 acc, output_multiplier, output_shift); 2986 const int32 output_shift = function_params->output_shift; [all …]
|
D | legacy_optimized_ops.h | 215 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 235 op_params.output_shift = kDepthwiseReverseShift * output_shift; in DepthwiseConv() 249 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 255 output_offset, output_multiplier, output_shift, in DepthwiseConv() 268 int32 output_multiplier, int output_shift, in DepthwiseConv() argument 278 output_offset, output_multiplier, output_shift, in DepthwiseConv() 291 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 297 output_offset, output_multiplier, output_shift, in DepthwiseConv() 361 int output_shift, int32 output_activation_min, in FullyConnected() argument 371 op_params.output_shift = kReverseShift * output_shift; in FullyConnected() [all …]
|
D | depthwiseconv_uint8_3x3_filter.h | 237 filter_width == 3 && filter_height == 3 && params.output_shift <= 0 && 407 int32 output_shift; 3477 int32 output_shift) { 3492 (input_depth % 8) == 0 && (output_shift <= 0) && 3554 const int32 output_shift = rt_params.output_shift; 3570 params.output_right_shift = -output_shift; 4961 const int32 output_shift = function_params->output_shift; 5067 acc0, -output_shift); 5070 acc1, -output_shift); 5073 acc2, -output_shift); [all …]
|
D | optimized_ops.h | 821 int32 output_multiplier, int output_shift, int32 output_activation_min, in FullyConnectedAsGEMVWorkerImpl() argument 832 const bool shift_left = (output_shift > 0); in FullyConnectedAsGEMVWorkerImpl() 1005 const int32 multiplier_power_of_two = 1 << output_shift; in FullyConnectedAsGEMVWorkerImpl() 1013 reduced = RoundingDivideByPOT(reduced, -output_shift); in FullyConnectedAsGEMVWorkerImpl() 1040 int32 output_multiplier, int output_shift, in FullyConnectedAsGEMVWorkerTask() 1055 output_shift_(output_shift), in FullyConnectedAsGEMVWorkerTask() 1097 int32 output_multiplier, int output_shift, int32 output_activation_min, in FullyConnectedAsGEMV() argument 1113 output_shift, output_activation_min, output_activation_max, in FullyConnectedAsGEMV() 1129 output_shift, output_activation_min, output_activation_max, in FullyConnectedAsGEMV() 1177 const int output_shift = params.output_shift; in FullyConnected() local [all …]
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/ |
D | fully_connected.h | 34 const int output_shift = params.output_shift; in FullyConnected() local 57 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected()
|
D | conv.h | 26 const int32* output_shift, const RuntimeShape& input_shape, in ConvPerChannel() argument 113 acc, output_multiplier[out_channel], output_shift[out_channel]); in ConvPerChannel()
|
D | depthwise_conv.h | 24 const int32* output_shift, const RuntimeShape& input_shape, in DepthwiseConvPerChannel() argument 110 output_shift[output_channel]); in DepthwiseConvPerChannel()
|
D | mul.h | 34 params.output_shift); in MulElementwise() 116 params.output_shift); in BroadcastMul4DSlow()
|
D | add.h | 51 raw_sum, params.output_multiplier, params.output_shift) + in AddElementwise() 128 raw_sum, params.output_multiplier, params.output_shift) + in BroadcastAdd4DSlow()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_conv_ops.cc | 60 int output_shift, int output_offset, int output_mult) { in operator ()() argument 71 const int32 rounding = (output_shift < 1) ? 0 : (1 << (output_shift - 1)); in operator ()() 171 output_shift); in operator ()() 206 int output_shift, int output_offset, int output_mult) { in operator ()() argument 226 output_shift, output_offset, output_mult); in operator ()() 389 (output_offset == 0) && (output_mult == 1) && (output_shift == 0) && in operator ()() 396 (output_mult == 1) && (output_shift == 0)) { in operator ()() 442 chunk_output_data, output_shift, output_offset, output_mult, ldc); in operator ()()
|
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/ |
D | fully_connected.cc | 34 int output_shift; member 61 data->output_shift = -exponent; in CalculateOpData() 96 op_params.output_shift = -data->output_shift; in EvalQuantized()
|
D | depthwise_conv.cc | 43 int output_shift; member 74 data->output_shift = -exponent; in CalculateOpData() 147 op_params.output_shift = -data->output_shift; in EvalQuantized()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | fully_connected.cc | 52 int output_shift; member 126 data->output_shift = -exponent; in Prepare() 301 op_params.output_shift = -data->output_shift; in FullyConnectedInt8() 330 op_params.output_shift = -data->output_shift; \ in EvalQuantized() 409 op_params.output_shift = -data->output_shift; \ in EvalShuffledQuantized()
|
D | mul.cc | 50 int output_shift; member 102 real_multiplier, &data->output_multiplier, &data->output_shift); in Prepare() 170 op_params.output_shift = data->output_shift; in EvalQuantized()
|
D | add.cc | 55 int output_shift; member 119 real_output_multiplier, &data->output_multiplier, &data->output_shift); in Prepare() 239 op_params.output_shift = data->output_shift; in EvalAddQuantized()
|
D | depthwise_conv.cc | 57 int output_shift; member 174 &data->output_multiplier, &data->output_shift, in Prepare() 257 op_params.output_shift = -data->output_shift; in EvalQuantized()
|
D | sub.cc | 56 int output_shift; member 131 &op_params->output_shift); in Prepare8BitSubOp() 287 op_params.output_shift = data->output_shift; in EvalQuantized()
|
D | conv.cc | 71 int output_shift; member 321 &data->output_multiplier, &data->output_shift, in Prepare() 457 op_params.output_shift = -data->output_shift; in EvalQuantized() 484 op_params.output_shift = -data->output_shift; in EvalQuantized()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | common.h | 370 int* output_shift) { in GetInvSqrtQuantizedMultiplierExp() argument 371 *output_shift = 11; in GetInvSqrtQuantizedMultiplierExp() 374 ++*output_shift; in GetInvSqrtQuantizedMultiplierExp() 381 *output_shift -= left_shift_bit_pairs; in GetInvSqrtQuantizedMultiplierExp() 409 if (*output_shift < 0) { in GetInvSqrtQuantizedMultiplierExp() 410 *output_inv_sqrt <<= -*output_shift; in GetInvSqrtQuantizedMultiplierExp() 411 *output_shift = 0; in GetInvSqrtQuantizedMultiplierExp() 414 *output_shift *= reverse_shift; in GetInvSqrtQuantizedMultiplierExp()
|
D | depthwiseconv_quantized_test.cc | 120 const int output_shift = params.output_shift; in DispatchDepthwiseConv() local 130 pad_height, depth_multiplier, output_shape, output_shift); in DispatchDepthwiseConv() 296 int output_shift, std::int32_t output_activation_min, in TestOneDepthwiseConvWithGivenOutputShift() argument 317 op_params.output_shift = -output_shift; in TestOneDepthwiseConvWithGivenOutputShift() 404 << " output_shift = " << op_params.output_shift; in TestOneDepthwiseConvWithGivenOutputShift()
|
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/portable_optimized/ |
D | depthwise_conv.cc | 46 int output_shift; member 77 data->output_shift = -exponent; in CalculateOpData() 112 const int output_shift = params.output_shift; in DepthwiseConvOptimizedForFilterWidthEight() local 260 acc, output_multiplier, output_shift); in DepthwiseConvOptimizedForFilterWidthEight() 338 op_params.output_shift = -data->output_shift; in EvalQuantized()
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 966 int32 output_multiplier, int output_shift, int32 output_activation_min, in FullyConnectedAsGEMV() argument 980 const bool shift_left = (output_shift > 0); in FullyConnectedAsGEMV() 1093 const int32 multiplier_power_of_two = 1 << output_shift; in FullyConnectedAsGEMV() 1101 reduced = RoundingDivideByPOT(reduced, -output_shift); in FullyConnectedAsGEMV() 1160 const int output_shift = params.output_shift; in FullyConnected() local 1180 output_shift, output_activation_min, output_activation_max, in FullyConnected() 1198 bias_data, output_rows, output_offset, output_multiplier, output_shift, in FullyConnected() 1213 int output_shift, int32 output_activation_min, in FullyConnected() argument 1223 op_params.output_shift = kReverseShift * output_shift; in FullyConnected() 1244 const int output_shift = params.output_shift; in FullyConnected() local [all …]
|