/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/ |
D | fully_connected.h | 32 const int32_t output_multiplier = params.output_multiplier; in FullyConnected() local 56 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected() 72 const int32_t output_multiplier = params.output_multiplier; in FullyConnected() local 97 MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected()
|
D | conv.h | 25 const ConvParams& params, const int32_t* output_multiplier, in ConvPerChannel() argument 115 acc, output_multiplier[out_channel], output_shift[out_channel]); in ConvPerChannel() 130 const ConvParams& params, const int32_t* output_multiplier, in ConvPerChannel() argument 207 acc, output_multiplier[out_channel], output_shift[out_channel]); in ConvPerChannel()
|
D | transpose_conv.h | 25 const ConvParams& params, const int32_t* output_multiplier, in TransposeConv() argument 110 acc, output_multiplier[out_channel], output_shift[out_channel]); in TransposeConv() 124 const ConvParams& params, const int32_t* output_multiplier, in TransposeConv() argument 207 acc, output_multiplier[out_channel], output_shift[out_channel]); in TransposeConv()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | depthwiseconv_per_channel_quantized_test.cc | 45 float* output_multiplier) { in PickOutputMultiplier() argument 108 *output_multiplier = 127.0f / std::abs(output_accu_max); in PickOutputMultiplier() 110 *output_multiplier = 128.0f / std::abs(output_accu_min); in PickOutputMultiplier() 123 float output_multiplier; in PickReasonableMultiplier() local 127 &output_multiplier); in PickReasonableMultiplier() 131 QuantizeMultiplier(output_multiplier, &base_multiplier, &base_shift); in PickReasonableMultiplier() 287 std::vector<std::int32_t> output_multiplier(output_depth); in TryTestOneDepthwiseConv3x3Filter() local 299 output_shape_inference, output_multiplier.data(), 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() [all …]
|
D | conv_per_channel_quantized_16x8_test.cc | 44 float* output_multiplier) { in PickOutputMultiplier() argument 108 *output_multiplier = 32767.0f / std::abs(output_accu_max); in PickOutputMultiplier() 110 *output_multiplier = 32768.0f / std::abs(output_accu_min); in PickOutputMultiplier() 123 float output_multiplier; in PickReasonableMultiplier() local 127 &output_multiplier); in PickReasonableMultiplier() 131 QuantizeMultiplier(output_multiplier, &base_multiplier, &base_shift); in PickReasonableMultiplier() 250 std::vector<std::int32_t> output_multiplier(output_depth); in TryTestOneConvFilter() local 262 output_shape_inference, output_multiplier.data(), output_shift.data(), in TryTestOneConvFilter() 269 params, output_multiplier.data(), output_shift.data(), in TryTestOneConvFilter() 300 int32 output_mul = output_multiplier.data()[c]; in TryTestOneConvFilter()
|
D | depthwiseconv_per_channel_quantized_16x8_test.cc | 44 float* output_multiplier) { in PickOutputMultiplier() argument 107 *output_multiplier = 32767.0f / std::abs(output_accu_max); in PickOutputMultiplier() 109 *output_multiplier = 32768.0f / std::abs(output_accu_min); in PickOutputMultiplier() 122 float output_multiplier; in PickReasonableMultiplier() local 126 &output_multiplier); in PickReasonableMultiplier() 130 QuantizeMultiplier(output_multiplier, &base_multiplier, &base_shift); in PickReasonableMultiplier() 244 std::vector<std::int32_t> output_multiplier(output_depth); in TryTestOneDepthwiseConv3x3Filter() local 256 output_shape_inference, output_multiplier.data(), output_shift.data(), in TryTestOneDepthwiseConv3x3Filter() 262 params, output_multiplier.data(), output_shift.data(), in TryTestOneDepthwiseConv3x3Filter() 290 int32 output_mul = output_multiplier.data()[c]; in TryTestOneDepthwiseConv3x3Filter()
|
D | depthwiseconv_quantized_test.cc | 621 std::int32_t output_multiplier, const std::int32_t* output_shift_adjust, in TestOneDepthwiseConvWithGivenOutputShift() argument 645 op_params.output_multiplier = output_multiplier; in TestOneDepthwiseConvWithGivenOutputShift() 649 std::vector<int32> output_multiplier_per_channel(depth, output_multiplier); in TestOneDepthwiseConvWithGivenOutputShift() 728 << " output_multiplier = " << op_params.output_multiplier in TestOneDepthwiseConvWithGivenOutputShift() 758 std::int32_t output_multiplier, const std::int32_t* output_shift_adjust, in TestOneDepthwiseConvBisectOutputShift() argument 772 output_multiplier, output_shift_adjust, output_multiplier_adjust, in TestOneDepthwiseConvBisectOutputShift() 799 pad_width, pad_height, depth_multiplier, output_offset, output_multiplier, in TestOneDepthwiseConvBisectOutputShift() 817 std::int32_t output_multiplier, const std::int32_t* output_shift_adjust, in TestOneDepthwiseConv() argument 824 pad_width, pad_height, depth_multiplier, output_offset, output_multiplier, in TestOneDepthwiseConv() 850 std::int32_t output_multiplier; in TryTestDepthwiseConv() local [all …]
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | fully_connected.h | 71 const int32_t output_multiplier = params.output_multiplier; in FullyConnected() local 101 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in FullyConnected() 119 const int32_t output_multiplier = params.output_multiplier; in FullyConnected() local 154 MultiplyByQuantizedMultiplier(accum, output_multiplier, output_shift); in FullyConnected() 170 const int32_t output_multiplier = params.output_multiplier; in ShuffledFullyConnected() local 252 MultiplyByQuantizedMultiplier(acc, output_multiplier, output_shift); in ShuffledFullyConnected() 302 acc = MultiplyByQuantizedMultiplier(acc, output_multiplier, in ShuffledFullyConnected()
|
D | legacy_reference_ops.h | 118 int32 output_offset, int32 output_multiplier, in DepthwiseConv() argument 137 op_params.output_multiplier = output_multiplier; in DepthwiseConv() 152 int32 output_offset, int32 output_multiplier, 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() 194 int32 output_offset, int32 output_multiplier, 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 300 op_params.output_multiplier = output_multiplier; in Conv() [all …]
|
D | depthwiseconv_uint8.h | 110 const int32_t output_multiplier = params.output_multiplier; in Run() local 160 acc = DepthwiseConvRound<output_rounding>(acc, output_multiplier, in Run() 195 const int32_t* output_multiplier = params.output_multiplier_per_channel; in RunPerChannel() local 263 acc, output_multiplier[output_channel], in RunPerChannel()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/ |
D | mul.h | 98 p1 = vqrdmulhq_n_s32(p1, params.output_multiplier); in MulElementwise() 99 p2 = vqrdmulhq_n_s32(p2, params.output_multiplier); in MulElementwise() 100 p3 = vqrdmulhq_n_s32(p3, params.output_multiplier); in MulElementwise() 101 p4 = vqrdmulhq_n_s32(p4, params.output_multiplier); in MulElementwise() 131 params.output_multiplier, in MulElementwise() 191 p1 = vqrdmulhq_n_s32(p1, params.output_multiplier); in MulSimpleBroadcast() 192 p2 = vqrdmulhq_n_s32(p2, params.output_multiplier); in MulSimpleBroadcast() 193 p3 = vqrdmulhq_n_s32(p3, params.output_multiplier); in MulSimpleBroadcast() 194 p4 = vqrdmulhq_n_s32(p4, params.output_multiplier); in MulSimpleBroadcast() 223 params.output_multiplier, in MulSimpleBroadcast()
|
D | add.h | 117 s11 = vqrdmulhq_n_s32(s11, params.output_multiplier); in AddElementwise() 118 s12 = vqrdmulhq_n_s32(s12, params.output_multiplier); in AddElementwise() 119 s21 = vqrdmulhq_n_s32(s21, params.output_multiplier); in AddElementwise() 120 s22 = vqrdmulhq_n_s32(s22, params.output_multiplier); in AddElementwise() 157 raw_sum, params.output_multiplier, params.output_shift) + in AddElementwise() 224 s1 = vqrdmulhq_n_s32(s1, params.output_multiplier); in AddScalarBroadcast() 225 s2 = vqrdmulhq_n_s32(s2, params.output_multiplier); in AddScalarBroadcast() 257 raw_sum, params.output_multiplier, params.output_shift) + in AddScalarBroadcast()
|
D | fully_connected.h | 41 const int32 output_multiplier = params.output_multiplier; in FullyConnected() local 83 gemm_params.multiplier_fixedpoint = output_multiplier; in FullyConnected()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | quantize.cc | 42 int32_t output_multiplier; member 135 QuantizeMultiplier(effective_output_scale, &data->output_multiplier, 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() 231 Requantize<kernel_type>(input_data, size, data->output_multiplier, in Eval() 237 Requantize<kernel_type>(input_data, size, data->output_multiplier, in Eval() 253 Requantize<kernel_type>(input_data, size, data->output_multiplier, in Eval() 259 Requantize<kernel_type>(input_data, size, data->output_multiplier, in Eval()
|
D | div.cc | 56 int32_t output_multiplier; member 106 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare() 173 op_params.output_multiplier = data->output_multiplier; in EvalQuantized()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | depthwiseconv_uint8_transitional.h | 2578 const int32 output_multiplier = params.output_multiplier; 2592 DepthwiseConvOutputRounding::kUpward>(acc, output_multiplier, 2742 const int32 output_multiplier = function_params.output_multiplier; 2756 DepthwiseConvOutputRounding::kUpward>(acc, output_multiplier, 2883 const int32 output_multiplier = function_params->output_multiplier; 2983 acc, output_multiplier, output_shift); 3090 const int32 output_multiplier = function_params->output_multiplier; 3174 acc, output_multiplier, output_shift); 3200 acc, output_multiplier, output_shift); 3284 const int32 output_multiplier = function_params->output_multiplier; [all …]
|
D | legacy_optimized_ops.h | 287 int32 output_offset, int32 output_multiplier, in DepthwiseConv() argument 306 op_params.output_multiplier = output_multiplier; in DepthwiseConv() 326 int32 output_offset, int32 output_multiplier, 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() 368 int32 output_offset, int32 output_multiplier, in DepthwiseConv() argument 375 output_offset, output_multiplier, output_shift, in DepthwiseConv() 492 const DepthwiseParams& params, const int32* output_multiplier, in LegacyPerChannelDepthwiseConvWorkerTask() 499 output_multiplier_(output_multiplier), in LegacyPerChannelDepthwiseConvWorkerTask() [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | fully_connected_common.cc | 40 op_params.output_multiplier = op_data.output_multiplier; in FullyConnectedParamsQuantized() 64 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpDataFullyConnected()
|
D | dequantize.cc | 36 int32_t output_multiplier; member 69 QuantizeMultiplier(effective_output_scale, &data->output_multiplier, in Prepare() 122 data->output_multiplier, data->output_shift, in Eval()
|
D | div.cc | 56 int32_t output_multiplier; member 106 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare() 173 op_params.output_multiplier = data->output_multiplier; in EvalQuantized()
|
D | mul.cc | 44 int32_t output_multiplier; member 73 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData() 100 op_params.output_multiplier = data->output_multiplier; in EvalQuantized()
|
/external/tensorflow/tensorflow/lite/micro/kernels/xtensa/ |
D | fully_connected.cc | 43 const int32_t output_multiplier = params.output_multiplier; in FullyConnected() local 104 sum_56 = MultiplyByQuantizedMultiplier(sum_24x2, output_multiplier, in FullyConnected() 129 QuantizeMultiplierForInt24(real_multiplier, &data->output_multiplier, in CalculateOpData() 132 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData() 223 output_depth, op_params.input_offset, op_params.output_multiplier, in EvalQuantizedInt8()
|
/external/tensorflow/tensorflow/lite/micro/kernels/cmsis_nn/ |
D | mul.cc | 40 int32_t output_multiplier; member 68 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData() 113 op_params.output_multiplier = data.output_multiplier; in EvalQuantized() 136 op_params.output_offset, op_params.output_multiplier, in EvalQuantized()
|
D | add.cc | 51 int32_t output_multiplier; member 89 real_output_multiplier, &data->output_multiplier, &data->output_shift); in CalculateOpData() 137 op_params.output_multiplier = data->output_multiplier; in EvalAddQuantized() 162 op_params.output_offset, op_params.output_multiplier, in EvalAddQuantized()
|
/external/tensorflow/tensorflow/lite/micro/kernels/vexriscv/ |
D | depthwise_conv.cc | 36 const DepthwiseParams& params, const int32_t* output_multiplier, in DepthwiseConvPerChannel() argument 144 value, output_multiplier[output_channel], in DepthwiseConvPerChannel() 178 const int32_t output_multiplier = params.output_multiplier; in DepthwiseConv() local 251 value = MultiplyByQuantizedMultiplier(value, output_multiplier, in DepthwiseConv() 290 int32_t output_multiplier; member 329 &data->output_multiplier, &data->output_shift, in CalculateOpData() 461 op_params.output_multiplier = data.output_multiplier; in EvalQuantized()
|