Home
last modified time | relevance | path

Searched refs:op_params (Results 1 – 25 of 104) sorted by relevance

12345

/external/tensorflow/tensorflow/lite/micro/kernels/cmsis-nn/
Ddepthwise_conv.cc119 tflite::DepthwiseParams op_params; in EvalFloat() local
121 op_params.padding_type = PaddingType::kSame; in EvalFloat()
122 op_params.padding_values.width = data->padding.width; in EvalFloat()
123 op_params.padding_values.height = data->padding.height; in EvalFloat()
124 op_params.stride_width = params->stride_width; in EvalFloat()
125 op_params.stride_height = params->stride_height; in EvalFloat()
126 op_params.dilation_width_factor = 1; in EvalFloat()
127 op_params.dilation_height_factor = 1; in EvalFloat()
128 op_params.depth_multiplier = params->depth_multiplier; in EvalFloat()
129 op_params.float_activation_min = output_activation_min; in EvalFloat()
[all …]
Dpooling.cc66 PoolParams op_params; in AverageEvalFloat() local
67 op_params.stride_height = params->stride_height; in AverageEvalFloat()
68 op_params.stride_width = params->stride_width; in AverageEvalFloat()
69 op_params.filter_height = params->filter_height; in AverageEvalFloat()
70 op_params.filter_width = params->filter_width; in AverageEvalFloat()
71 op_params.padding_values.height = data->padding.height; in AverageEvalFloat()
72 op_params.padding_values.width = data->padding.width; in AverageEvalFloat()
73 op_params.float_activation_min = activation_min; in AverageEvalFloat()
74 op_params.float_activation_max = activation_max; in AverageEvalFloat()
76 op_params, GetTensorShape(input), GetTensorData<float>(input), in AverageEvalFloat()
[all …]
Dconv.cc133 ConvParams op_params; in EvalQuantized() local
134 op_params.padding_type = RuntimePaddingType(params->padding); in EvalQuantized()
135 op_params.padding_values.width = data->padding.width; in EvalQuantized()
136 op_params.padding_values.height = data->padding.height; in EvalQuantized()
137 op_params.stride_width = params->stride_width; in EvalQuantized()
138 op_params.stride_height = params->stride_height; in EvalQuantized()
139 op_params.dilation_width_factor = params->dilation_width_factor; in EvalQuantized()
140 op_params.dilation_height_factor = params->dilation_height_factor; in EvalQuantized()
141 op_params.input_offset = input_offset; in EvalQuantized()
142 op_params.weights_offset = filter_offset; in EvalQuantized()
[all …]
Dadd.cc102 tflite::ArithmeticParams op_params; in EvalAdd() local
103 SetActivationParams(output_activation_min, output_activation_max, &op_params); in EvalAdd()
105 reference_ops::opname(op_params, GetTensorShape(input1), \ in EvalAdd()
123 tflite::ArithmeticParams op_params; in EvalAddQuantized() local
124 op_params.left_shift = data->left_shift; in EvalAddQuantized()
125 op_params.input1_offset = data->input1_offset; in EvalAddQuantized()
126 op_params.input1_multiplier = data->input1_multiplier; in EvalAddQuantized()
127 op_params.input1_shift = data->input1_shift; in EvalAddQuantized()
128 op_params.input2_offset = data->input2_offset; in EvalAddQuantized()
129 op_params.input2_multiplier = data->input2_multiplier; in EvalAddQuantized()
[all …]
Dmul.cc70 tflite::ArithmeticParams op_params; in EvalQuantized() local
72 data->output_activation_max, &op_params); in EvalQuantized()
73 op_params.input1_offset = -input1->params.zero_point; in EvalQuantized()
74 op_params.input2_offset = -input2->params.zero_point; in EvalQuantized()
75 op_params.output_offset = output->params.zero_point; in EvalQuantized()
76 op_params.output_multiplier = data->output_multiplier; in EvalQuantized()
77 op_params.output_shift = data->output_shift; in EvalQuantized()
79 GetTensorShape(input1), GetTensorShape(input2), &op_params); in EvalQuantized()
82 type::opname(op_params, GetTensorShape(input1), \ in EvalQuantized()
93 op_params.input1_offset, op_params.input2_offset, in EvalQuantized()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dpooling.cc120 tflite::PoolParams op_params; \ in AverageEvalFloat()
121 op_params.stride_height = params->stride_height; \ in AverageEvalFloat()
122 op_params.stride_width = params->stride_width; \ in AverageEvalFloat()
123 op_params.filter_height = params->filter_height; \ in AverageEvalFloat()
124 op_params.filter_width = params->filter_width; \ in AverageEvalFloat()
125 op_params.padding_values.height = data->padding.height; \ in AverageEvalFloat()
126 op_params.padding_values.width = data->padding.width; \ in AverageEvalFloat()
127 op_params.float_activation_min = activation_min; \ in AverageEvalFloat()
128 op_params.float_activation_max = activation_max; \ in AverageEvalFloat()
129 type::AveragePool(op_params, GetTensorShape(input), \ in AverageEvalFloat()
[all …]
Ddepthwise_conv.cc283 DepthwiseParams op_params; in EvalFloat() local
284 op_params.padding_type = PaddingType::kSame; in EvalFloat()
285 op_params.padding_values.width = data->padding.width; in EvalFloat()
286 op_params.padding_values.height = data->padding.height; in EvalFloat()
287 op_params.stride_width = params->stride_width; in EvalFloat()
288 op_params.stride_height = params->stride_height; in EvalFloat()
289 op_params.dilation_width_factor = params->dilation_width_factor; in EvalFloat()
290 op_params.dilation_height_factor = params->dilation_height_factor; in EvalFloat()
291 op_params.float_activation_min = output_activation_min; in EvalFloat()
292 op_params.float_activation_max = output_activation_max; in EvalFloat()
[all …]
Dsub.cc78 TfLiteSubParams* params, OpData* op_params, in Prepare8BitSubOp() argument
109 op_params->input1_offset = -input1_quantization_params.zero_point; in Prepare8BitSubOp()
110 op_params->input2_offset = -input2_quantization_params.zero_point; in Prepare8BitSubOp()
111 op_params->output_offset = output_quantization_params.zero_point; in Prepare8BitSubOp()
112 op_params->left_shift = 20; in Prepare8BitSubOp()
122 ((1 << op_params->left_shift) * output_quantization_params.scale); in Prepare8BitSubOp()
125 &op_params->input1_multiplier, in Prepare8BitSubOp()
126 &op_params->input1_shift); in Prepare8BitSubOp()
128 &op_params->input2_multiplier, in Prepare8BitSubOp()
129 &op_params->input2_shift); in Prepare8BitSubOp()
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/arc/
Dpooling.cc65 PoolParams op_params; in AverageEvalFloat() local
66 op_params.stride_height = params->stride_height; in AverageEvalFloat()
67 op_params.stride_width = params->stride_width; in AverageEvalFloat()
68 op_params.filter_height = params->filter_height; in AverageEvalFloat()
69 op_params.filter_width = params->filter_width; in AverageEvalFloat()
70 op_params.padding_values.height = data->padding.height; in AverageEvalFloat()
71 op_params.padding_values.width = data->padding.width; in AverageEvalFloat()
72 op_params.float_activation_min = activation_min; in AverageEvalFloat()
73 op_params.float_activation_max = activation_max; in AverageEvalFloat()
75 op_params, GetTensorShape(input), GetTensorData<float>(input), in AverageEvalFloat()
[all …]
Ddepthwise_conv.cc124 tflite::DepthwiseParams op_params; in EvalFloat() local
126 op_params.padding_type = PaddingType::kSame; in EvalFloat()
127 op_params.padding_values.width = data->padding.width; in EvalFloat()
128 op_params.padding_values.height = data->padding.height; in EvalFloat()
129 op_params.stride_width = params->stride_width; in EvalFloat()
130 op_params.stride_height = params->stride_height; in EvalFloat()
131 op_params.dilation_width_factor = params->dilation_width_factor; in EvalFloat()
132 op_params.dilation_height_factor = params->dilation_height_factor; in EvalFloat()
133 op_params.depth_multiplier = params->depth_multiplier; in EvalFloat()
134 op_params.float_activation_min = output_activation_min; in EvalFloat()
[all …]
Dconv.cc129 ConvParams op_params; in EvalQuantized() local
130 op_params.padding_type = RuntimePaddingType(params->padding); in EvalQuantized()
131 op_params.padding_values.width = data->padding.width; in EvalQuantized()
132 op_params.padding_values.height = data->padding.height; in EvalQuantized()
133 op_params.stride_width = params->stride_width; in EvalQuantized()
134 op_params.stride_height = params->stride_height; in EvalQuantized()
135 op_params.dilation_width_factor = params->dilation_width_factor; in EvalQuantized()
136 op_params.dilation_height_factor = params->dilation_height_factor; in EvalQuantized()
137 op_params.input_offset = input_offset; in EvalQuantized()
138 op_params.weights_offset = filter_offset; in EvalQuantized()
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/
Dpooling.cc63 PoolParams op_params; in AverageEvalFloat() local
64 op_params.stride_height = params->stride_height; in AverageEvalFloat()
65 op_params.stride_width = params->stride_width; in AverageEvalFloat()
66 op_params.filter_height = params->filter_height; in AverageEvalFloat()
67 op_params.filter_width = params->filter_width; in AverageEvalFloat()
68 op_params.padding_values.height = data->padding.height; in AverageEvalFloat()
69 op_params.padding_values.width = data->padding.width; in AverageEvalFloat()
70 op_params.float_activation_min = activation_min; in AverageEvalFloat()
71 op_params.float_activation_max = activation_max; in AverageEvalFloat()
73 op_params, GetTensorShape(input), GetTensorData<float>(input), in AverageEvalFloat()
[all …]
Ddepthwise_conv.cc117 tflite::DepthwiseParams op_params; in EvalFloat() local
119 op_params.padding_type = PaddingType::kSame; in EvalFloat()
120 op_params.padding_values.width = data->padding.width; in EvalFloat()
121 op_params.padding_values.height = data->padding.height; in EvalFloat()
122 op_params.stride_width = params->stride_width; in EvalFloat()
123 op_params.stride_height = params->stride_height; in EvalFloat()
124 op_params.dilation_width_factor = params->dilation_width_factor; in EvalFloat()
125 op_params.dilation_height_factor = params->dilation_height_factor; in EvalFloat()
126 op_params.depth_multiplier = params->depth_multiplier; in EvalFloat()
127 op_params.float_activation_min = output_activation_min; in EvalFloat()
[all …]
Dconv.cc131 ConvParams op_params; in EvalQuantized() local
132 op_params.padding_type = RuntimePaddingType(params->padding); in EvalQuantized()
133 op_params.padding_values.width = data->padding.width; in EvalQuantized()
134 op_params.padding_values.height = data->padding.height; in EvalQuantized()
135 op_params.stride_width = params->stride_width; in EvalQuantized()
136 op_params.stride_height = params->stride_height; in EvalQuantized()
137 op_params.dilation_width_factor = params->dilation_width_factor; in EvalQuantized()
138 op_params.dilation_height_factor = params->dilation_height_factor; in EvalQuantized()
139 op_params.input_offset = input_offset; in EvalQuantized()
140 op_params.weights_offset = filter_offset; in EvalQuantized()
[all …]
Dfully_connected.cc88 FullyConnectedParams op_params; in EvalQuantizedInt8() local
89 op_params.input_offset = -input->params.zero_point; in EvalQuantizedInt8()
90 op_params.weights_offset = -filter->params.zero_point; in EvalQuantizedInt8()
91 op_params.output_offset = output->params.zero_point; in EvalQuantizedInt8()
92 op_params.output_multiplier = data->output_multiplier; in EvalQuantizedInt8()
94 op_params.output_shift = -data->output_shift; in EvalQuantizedInt8()
95 op_params.quantized_activation_min = data->output_activation_min; in EvalQuantizedInt8()
96 op_params.quantized_activation_max = data->output_activation_max; in EvalQuantizedInt8()
99 op_params, GetTensorShape(input), GetTensorData<int8_t>(input), in EvalQuantizedInt8()
115 tflite::FullyConnectedParams op_params; in EvalQuantized() local
[all …]
Dstrided_slice.cc66 tflite::StridedSliceParams op_params; in BuildStridedSliceParams() local
67 op_params.start_indices_count = op_context->dims; in BuildStridedSliceParams()
68 op_params.stop_indices_count = op_context->dims; in BuildStridedSliceParams()
69 op_params.strides_count = op_context->dims; in BuildStridedSliceParams()
72 op_params.start_indices[i] = GetTensorData<int32_t>(op_context->begin)[i]; in BuildStridedSliceParams()
73 op_params.stop_indices[i] = GetTensorData<int32_t>(op_context->end)[i]; in BuildStridedSliceParams()
74 op_params.strides[i] = GetTensorData<int32_t>(op_context->strides)[i]; in BuildStridedSliceParams()
77 op_params.begin_mask = op_context->params->begin_mask; in BuildStridedSliceParams()
78 op_params.ellipsis_mask = 0; in BuildStridedSliceParams()
79 op_params.end_mask = op_context->params->end_mask; in BuildStridedSliceParams()
[all …]
Dsoftmax.cc109 SoftmaxParams op_params; in Softmax1DQuantized() local
110 op_params.input_multiplier = data->input_multiplier; in Softmax1DQuantized()
111 op_params.input_left_shift = data->input_left_shift; in Softmax1DQuantized()
112 op_params.diff_min = data->diff_min; in Softmax1DQuantized()
114 tflite::reference_ops::Softmax(op_params, shape, in Softmax1DQuantized()
120 op_params, shape, GetTensorData<int8_t>(input), shape, in Softmax1DQuantized()
124 op_params, shape, GetTensorData<int8_t>(input), shape, in Softmax1DQuantized()
140 SoftmaxParams op_params; in Softmax2DQuantized() local
141 op_params.input_multiplier = data->input_multiplier; in Softmax2DQuantized()
142 op_params.input_left_shift = data->input_left_shift; in Softmax2DQuantized()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dlegacy_reference_ops.h50 tflite::DepthwiseParams op_params; in DepthwiseConv() local
52 op_params.padding_type = PaddingType::kSame; in DepthwiseConv()
53 op_params.padding_values.width = pad_width; in DepthwiseConv()
54 op_params.padding_values.height = pad_height; in DepthwiseConv()
55 op_params.stride_width = stride_width; in DepthwiseConv()
56 op_params.stride_height = stride_height; in DepthwiseConv()
57 op_params.dilation_width_factor = dilation_width_factor; in DepthwiseConv()
58 op_params.dilation_height_factor = dilation_height_factor; in DepthwiseConv()
59 op_params.depth_multiplier = depth_multiplier; in DepthwiseConv()
60 op_params.float_activation_min = output_activation_min; in DepthwiseConv()
[all …]
Dcomparisons.h57 const ComparisonParams& op_params, const RuntimeShape& input1_shape, in ComparisonImpl() argument
68 inline void Comparison(const ComparisonParams& op_params, in Comparison() argument
74 ComparisonImpl<float, F>(op_params, input1_shape, input1_data, input2_shape, in Comparison()
80 const ComparisonParams& op_params, const RuntimeShape& input1_shape, in ComparisonWithScaling() argument
83 int left_shift = op_params.left_shift; in ComparisonWithScaling()
84 int32 input1_offset = op_params.input1_offset; in ComparisonWithScaling()
85 int32 input1_multiplier = op_params.input1_multiplier; in ComparisonWithScaling()
86 int input1_shift = op_params.input1_shift; in ComparisonWithScaling()
87 int32 input2_offset = op_params.input2_offset; in ComparisonWithScaling()
88 int32 input2_multiplier = op_params.input2_multiplier; in ComparisonWithScaling()
[all …]
Dpad.h38 inline void PadImpl(const tflite::PadParams& op_params, in PadImpl() argument
46 TFLITE_DCHECK_LE(op_params.left_padding_count, PadKernelMaxDimensionCount()); in PadImpl()
47 TFLITE_DCHECK_LE(op_params.right_padding_count, PadKernelMaxDimensionCount()); in PadImpl()
55 for (int i = 0; i < op_params.left_padding_count; ++i) { in PadImpl()
57 op_params.left_padding_count] = op_params.left_padding[i]; in PadImpl()
63 for (int i = 0; i < op_params.right_padding_count; ++i) { in PadImpl()
65 op_params.right_padding_count] = in PadImpl()
66 op_params.right_padding[i]; in PadImpl()
111 inline void Pad(const tflite::PadParams& op_params, in Pad() argument
115 PadImpl(op_params, input_shape, input_data, pad_value_ptr, output_shape, in Pad()
[all …]
/external/libaom/libaom/av1/common/
Dtiming.c73 void av1_set_dec_model_op_parameters(aom_dec_model_op_parameters_t *op_params) { in av1_set_dec_model_op_parameters() argument
74 op_params->decoder_model_param_present_flag = 1; in av1_set_dec_model_op_parameters()
75 op_params->decoder_buffer_delay = 90000 >> 1; // 0.5 s in av1_set_dec_model_op_parameters()
76 op_params->encoder_buffer_delay = 90000 >> 1; // 0.5 s in av1_set_dec_model_op_parameters()
77 op_params->low_delay_mode_flag = 0; in av1_set_dec_model_op_parameters()
78 op_params->display_model_param_present_flag = 1; in av1_set_dec_model_op_parameters()
79 op_params->initial_display_delay = 8; // 8 frames delay in av1_set_dec_model_op_parameters()
83 aom_dec_model_op_parameters_t *op_params) { in av1_set_resource_availability_parameters() argument
84 op_params->decoder_model_param_present_flag = 0; in av1_set_resource_availability_parameters()
85 op_params->decoder_buffer_delay = in av1_set_resource_availability_parameters()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Dresize_bilinear_test.cc29 void TestOneResizeBilinear(const tflite::ResizeBilinearParams& op_params, in TestOneResizeBilinear() argument
53 reference_ops::ResizeBilinear(op_params, input_dims_inference, in TestOneResizeBilinear()
58 op_params, input_dims_inference, input_data.data(), output_size_dims, in TestOneResizeBilinear()
84 const tflite::ResizeBilinearParams op_params = GetParam(); in TEST_P() local
94 TestOneResizeBilinear<uint8>(op_params, batch, depth, input_width, in TEST_P()
103 const tflite::ResizeBilinearParams op_params = GetParam(); in TEST_P() local
114 if (op_params.align_corners) { in TEST_P()
119 TestOneResizeBilinear<uint8>(op_params, batch, depth, input_width, in TEST_P()
128 const tflite::ResizeBilinearParams op_params = GetParam(); in TEST_P() local
139 if (op_params.align_corners) { in TEST_P()
[all …]
Dstrided_slice_logic_test.cc28 StridedSliceParams op_params; in RunStridedSlicePadIndices() local
30 op_params.start_indices_count = dims; in RunStridedSlicePadIndices()
31 op_params.stop_indices_count = dims; in RunStridedSlicePadIndices()
32 op_params.strides_count = dims; in RunStridedSlicePadIndices()
35 op_params.start_indices[i] = begin.begin()[i]; in RunStridedSlicePadIndices()
36 op_params.stop_indices[i] = end.begin()[i]; in RunStridedSlicePadIndices()
37 op_params.strides[i] = stride.begin()[i]; in RunStridedSlicePadIndices()
40 strided_slice::StridedSlicePadIndices(&op_params, 4); in RunStridedSlicePadIndices()
43 EXPECT_EQ(op_params.start_indices[i], expected_begin.begin()[i]); in RunStridedSlicePadIndices()
44 EXPECT_EQ(op_params.stop_indices[i], expected_end.begin()[i]); in RunStridedSlicePadIndices()
[all …]
/external/u-boot/arch/arm/mach-mvebu/serdes/a38x/
Dhigh_speed_env_spec.c147 struct op_params sata_port0_power_up_params[] = {
166 struct op_params sata_port1_power_up_params[] = {
186 struct op_params sata_and_sgmii_power_up_params[] = {
203 struct op_params sata_and_sgmii_speed_config_params[] = {
220 struct op_params sata_and_sgmii_tx_config_params1[] = {
235 struct op_params sata_port0_tx_config_params[] = {
250 struct op_params sata_port1_tx_config_params[] = {
265 struct op_params sata_and_sgmii_tx_config_serdes_rev1_params2[] = {
276 struct op_params sata_and_sgmii_tx_config_serdes_rev2_params2[] = {
302 struct op_params sata_electrical_config_serdes_rev1_params[] = {
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/portable_optimized/
Ddepthwise_conv.cc318 tflite::DepthwiseParams op_params; in EvalFloat() local
320 op_params.padding_type = PaddingType::kSame; in EvalFloat()
321 op_params.padding_values.width = data->padding.width; in EvalFloat()
322 op_params.padding_values.height = data->padding.height; in EvalFloat()
323 op_params.stride_width = params->stride_width; in EvalFloat()
324 op_params.stride_height = params->stride_height; in EvalFloat()
325 op_params.dilation_width_factor = 1; in EvalFloat()
326 op_params.dilation_height_factor = 1; in EvalFloat()
327 op_params.depth_multiplier = params->depth_multiplier; in EvalFloat()
328 op_params.float_activation_min = output_activation_min; in EvalFloat()
[all …]

12345