/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/ |
D | fully_connected.h | 33 const int output_shift = params.output_shift; in FullyConnected() local 56 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected() 73 const int output_shift = params.output_shift; in FullyConnected() local 97 MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected()
|
D | conv.h | 26 const int32_t* output_shift, const RuntimeShape& input_shape, in ConvPerChannel() argument 115 acc, output_multiplier[out_channel], output_shift[out_channel]); in ConvPerChannel() 131 const int32_t* output_shift, const RuntimeShape& input_shape, in ConvPerChannel() argument 207 acc, output_multiplier[out_channel], output_shift[out_channel]); in ConvPerChannel()
|
D | transpose_conv.h | 26 const int32_t* output_shift, const RuntimeShape& input_shape, in TransposeConv() argument 110 acc, output_multiplier[out_channel], output_shift[out_channel]); in TransposeConv() 125 const int32_t* output_shift, const RuntimeShape& input_shape, in TransposeConv() argument 207 acc, output_multiplier[out_channel], output_shift[out_channel]); in TransposeConv()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | fully_connected.h | 72 const int output_shift = params.output_shift; in FullyConnected() local 101 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected() 120 const int output_shift = params.output_shift; in FullyConnected() local 154 MultiplyByQuantizedMultiplier(accum, output_multiplier, output_shift); in FullyConnected() 171 const int output_shift = params.output_shift; in ShuffledFullyConnected() local 252 MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in ShuffledFullyConnected() 303 output_shift); in ShuffledFullyConnected()
|
D | legacy_reference_ops.h | 119 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 139 op_params.output_shift = kDepthwiseReverseShift * output_shift; in DepthwiseConv() 153 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 159 output_offset, output_multiplier, output_shift, in DepthwiseConv() 172 int32 output_multiplier, int output_shift, in DepthwiseConv() argument 182 output_offset, output_multiplier, output_shift, in DepthwiseConv() 195 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 201 output_offset, output_multiplier, output_shift, in DepthwiseConv() 283 int32 output_offset, int32 output_multiplier, int output_shift, in Conv() argument 302 op_params.output_shift = kReverseShift * output_shift; in Conv() [all …]
|
D | depthwiseconv_uint8.h | 111 const int output_shift = params.output_shift; in Run() local 161 output_shift); in Run() 196 const int32_t* output_shift = params.output_shift_per_channel; in RunPerChannel() local 264 output_shift[output_channel]); in RunPerChannel()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | quantize.cc | 43 int output_shift; member 136 &data->output_shift); in Prepare() 196 data->output_multiplier, data->output_shift, in Eval() 204 data->output_multiplier, data->output_shift, in Eval() 215 data->output_multiplier, data->output_shift, in Eval() 232 data->output_shift, input->params.zero_point, in Eval() 238 data->output_shift, input->params.zero_point, in Eval() 254 data->output_shift, input->params.zero_point, in Eval() 260 data->output_shift, input->params.zero_point, in Eval()
|
D | div.cc | 57 int output_shift; member 107 &data->output_shift); in Prepare() 174 op_params.output_shift = data->output_shift; in EvalQuantized()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | depthwiseconv_uint8_transitional.h | 2579 const int32 output_shift = params.output_shift; 2593 output_shift); 2743 const int32 output_shift = function_params.output_shift; 2757 output_shift); 2884 const int32 output_shift = function_params->output_shift; 2983 acc, output_multiplier, output_shift); 3091 const int32 output_shift = function_params->output_shift; 3174 acc, output_multiplier, output_shift); 3200 acc, output_multiplier, output_shift); 3285 const int32 output_shift = function_params->output_shift; [all …]
|
D | legacy_optimized_ops.h | 243 const int output_shift = params.output_shift; in LegacyDepthwiseConvWithRounding() local 250 depth_multiplier, output_shape, output_shift)) { in LegacyDepthwiseConvWithRounding() 288 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 308 op_params.output_shift = kDepthwiseReverseShift * output_shift; in DepthwiseConv() 327 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 333 output_offset, output_multiplier, output_shift, in DepthwiseConv() 346 int32 output_multiplier, int output_shift, in DepthwiseConv() argument 356 output_offset, output_multiplier, output_shift, in DepthwiseConv() 369 int output_shift, int32 output_activation_min, in DepthwiseConv() argument 375 output_offset, output_multiplier, output_shift, in DepthwiseConv() [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | fully_connected_common.cc | 41 op_params.output_shift = op_data.output_shift; in FullyConnectedParamsQuantized() 65 &data->output_shift); in CalculateOpDataFullyConnected()
|
D | dequantize.cc | 37 int output_shift; member 70 &data->output_shift); in Prepare() 122 data->output_multiplier, data->output_shift, in Eval()
|
D | div.cc | 57 int output_shift; member 107 &data->output_shift); in Prepare() 174 op_params.output_shift = data->output_shift; in EvalQuantized()
|
D | mul.cc | 45 int output_shift; member 74 &data->output_shift); in CalculateOpData() 101 op_params.output_shift = data->output_shift; in EvalQuantized()
|
D | sub.cc | 52 int output_shift; member 88 real_output_multiplier, &data->output_multiplier, &data->output_shift); in CalculateOpData() 165 op_params.output_shift = data->output_shift; in EvalSubQuantized()
|
D | add.cc | 52 int output_shift; member 93 real_output_multiplier, &data->output_multiplier, &data->output_shift); in CalculateOpData() 147 op_params.output_shift = data->output_shift; in EvalAddQuantized()
|
/external/tensorflow/tensorflow/lite/micro/kernels/xtensa/ |
D | fully_connected.cc | 44 const int output_shift = params.output_shift; in FullyConnected() local 105 output_shift); in FullyConnected() 130 &data->output_shift); in CalculateOpData() 133 &data->output_shift); in CalculateOpData() 224 op_params.output_shift, op_params.output_offset), in EvalQuantizedInt8()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/ |
D | add.h | 122 s11 = RoundingDivideByPOT(s11, -params.output_shift); in AddElementwise() 123 s12 = RoundingDivideByPOT(s12, -params.output_shift); in AddElementwise() 124 s21 = RoundingDivideByPOT(s21, -params.output_shift); in AddElementwise() 125 s22 = RoundingDivideByPOT(s22, -params.output_shift); in AddElementwise() 157 raw_sum, params.output_multiplier, params.output_shift) + in AddElementwise() 226 s1 = RoundingDivideByPOT(s1, -params.output_shift); in AddScalarBroadcast() 227 s2 = RoundingDivideByPOT(s2, -params.output_shift); in AddScalarBroadcast() 257 raw_sum, params.output_multiplier, params.output_shift) + in AddScalarBroadcast()
|
D | fully_connected.h | 42 const int output_shift = params.output_shift; in FullyConnected() local 84 gemm_params.multiplier_exponent = output_shift; in FullyConnected()
|
D | mul.h | 54 const int left_shift = std::max(0, params.output_shift); in MulElementwise() 55 const int right_shift = std::max(0, -params.output_shift); in MulElementwise() 132 params.output_shift); in MulElementwise() 161 const int left_shift = std::max(0, params.output_shift); in MulSimpleBroadcast() 162 const int right_shift = std::max(0, -params.output_shift); in MulSimpleBroadcast() 224 params.output_shift); in MulSimpleBroadcast()
|
/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/micro/kernels/cmsis_nn/ |
D | mul.cc | 41 int output_shift; member 69 &data->output_shift); in CalculateOpData() 114 op_params.output_shift = data.output_shift; in EvalQuantized() 137 op_params.output_shift, op_params.quantized_activation_min, in EvalQuantized()
|
D | add.cc | 52 int output_shift; member 89 real_output_multiplier, &data->output_multiplier, &data->output_shift); in CalculateOpData() 138 op_params.output_shift = data->output_shift; in EvalAddQuantized() 163 op_params.output_shift, op_params.quantized_activation_min, in EvalAddQuantized()
|
/external/tensorflow/tensorflow/lite/micro/kernels/vexriscv/ |
D | depthwise_conv.cc | 37 const int32_t* output_shift, const RuntimeShape& input_shape, in DepthwiseConvPerChannel() argument 145 output_shift[output_channel]); in DepthwiseConvPerChannel() 179 const int output_shift = params.output_shift; in DepthwiseConv() local 252 output_shift); in DepthwiseConv() 291 int output_shift; member 329 &data->output_multiplier, &data->output_shift, in CalculateOpData() 463 op_params.output_shift = -data.output_shift; in EvalQuantized()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | depthwiseconv_per_channel_quantized_test.cc | 288 std::vector<std::int32_t> output_shift(output_depth); in TryTestOneDepthwiseConv3x3Filter() local 299 output_shape_inference, output_multiplier.data(), output_shift.data(), in TryTestOneDepthwiseConv3x3Filter() 306 depth_multiplier, output_shape_inference, 0, output_shift.data())); in TryTestOneDepthwiseConv3x3Filter() 312 params, output_multiplier.data(), output_shift.data(), in TryTestOneDepthwiseConv3x3Filter() 318 params, output_multiplier.data(), output_shift.data(), in TryTestOneDepthwiseConv3x3Filter() 335 params, output_multiplier.data(), output_shift.data(), in TryTestOneDepthwiseConv3x3Filter()
|