Home
last modified time | relevance | path

Searched refs:output_shift (Results 1 – 25 of 81) sorted by relevance

1234

/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/
Dfully_connected.h33 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()
Dconv.h26 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()
Dtranspose_conv.h26 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/
Dfully_connected.h72 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()
Dlegacy_reference_ops.h119 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 …]
Ddepthwiseconv_uint8.h111 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/
Dquantize.cc43 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()
Ddiv.cc57 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/
Ddepthwiseconv_uint8_transitional.h2579 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 …]
Dlegacy_optimized_ops.h243 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/
Dfully_connected_common.cc41 op_params.output_shift = op_data.output_shift; in FullyConnectedParamsQuantized()
65 &data->output_shift); in CalculateOpDataFullyConnected()
Ddequantize.cc37 int output_shift; member
70 &data->output_shift); in Prepare()
122 data->output_multiplier, data->output_shift, in Eval()
Ddiv.cc57 int output_shift; member
107 &data->output_shift); in Prepare()
174 op_params.output_shift = data->output_shift; in EvalQuantized()
Dmul.cc45 int output_shift; member
74 &data->output_shift); in CalculateOpData()
101 op_params.output_shift = data->output_shift; in EvalQuantized()
Dsub.cc52 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()
Dadd.cc52 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/
Dfully_connected.cc44 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/
Dadd.h122 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()
Dfully_connected.h42 const int output_shift = params.output_shift; in FullyConnected() local
84 gemm_params.multiplier_exponent = output_shift; in FullyConnected()
Dmul.h54 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/
Dquantized_conv_ops.cc60 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/
Dmul.cc41 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()
Dadd.cc52 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/
Ddepthwise_conv.cc37 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/
Ddepthwiseconv_per_channel_quantized_test.cc288 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()

1234