/tflite-micro-3.4.0-2.7.6/tensorflow/lite/kernels/ |
D | padding.h | 26 int padding = ((out_size - 1) * stride + effective_filter_size - in_size) / 2; in ComputePadding() local 27 return padding > 0 ? padding : 0; in ComputePadding() 44 inline int ComputeOutSize(TfLitePadding padding, int image_size, 52 switch (padding) { 65 int filter_width, TfLitePadding padding, int* out_height, int* out_width) { in ComputePaddingHeightWidth() argument 66 *out_width = ComputeOutSize(padding, in_width, filter_width, stride_width, in ComputePaddingHeightWidth() 68 *out_height = ComputeOutSize(padding, in_height, filter_height, stride_height, in ComputePaddingHeightWidth() 88 int filter_width, int filter_depth, TfLitePadding padding, int* out_height, in ComputePadding3DValues() argument 90 *out_width = ComputeOutSize(padding, in_width, filter_width, stride_width, in ComputePadding3DValues() 92 *out_height = ComputeOutSize(padding, in_height, filter_height, stride_height, in ComputePadding3DValues() [all …]
|
D | BUILD | 37 name = "padding", 39 hdrs = ["padding.h"],
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/ |
D | pooling_common.cc | 41 data->padding = ComputePaddingHeightWidth( in CalculateOpDataPooling() 45 params->filter_width, params->padding, &out_height, &out_width); in CalculateOpDataPooling() 88 op_params.padding_values.height = data->padding.height; in AveragePoolingEvalFloat() 89 op_params.padding_values.width = data->padding.width; in AveragePoolingEvalFloat() 110 op_params.padding_values.height = data->padding.height; in AveragePoolingEvalQuantized() 111 op_params.padding_values.width = data->padding.width; in AveragePoolingEvalQuantized() 131 op_params.padding_values.height = data->padding.height; in MaxPoolingEvalFloat() 132 op_params.padding_values.width = data->padding.width; in MaxPoolingEvalFloat() 151 op_params.padding_values.height = data->padding.height; in MaxPoolingEvalQuantized() 152 op_params.padding_values.width = data->padding.width; in MaxPoolingEvalQuantized()
|
D | conv_common.cc | 46 op_params.padding_type = tflite::micro::RuntimePaddingType(params.padding); in ConvParamsFloat() 47 op_params.padding_values.width = data.padding.width; in ConvParamsFloat() 48 op_params.padding_values.height = data.padding.height; in ConvParamsFloat() 66 op_params.padding_type = tflite::micro::RuntimePaddingType(params.padding); in ConvParamsQuantized() 67 op_params.padding_values.height = data.padding.height; in ConvParamsQuantized() 68 op_params.padding_values.width = data.padding.width; in ConvParamsQuantized() 90 auto padding = params.padding; in CalculateOpDataConv() local 91 data->padding = ComputePaddingHeightWidth( in CalculateOpDataConv() 94 padding, &out_height, &out_width); in CalculateOpDataConv()
|
D | depthwise_conv_common.cc | 46 op_params.padding_type = tflite::micro::RuntimePaddingType(params.padding); in DepthwiseConvParamsFloat() 47 op_params.padding_values.width = data.padding.width; in DepthwiseConvParamsFloat() 48 op_params.padding_values.height = data.padding.height; in DepthwiseConvParamsFloat() 67 op_params.padding_type = tflite::micro::RuntimePaddingType(params.padding); in DepthwiseConvParamsQuantized() 68 op_params.padding_values.height = data.padding.height; in DepthwiseConvParamsQuantized() 69 op_params.padding_values.width = data.padding.width; in DepthwiseConvParamsQuantized() 91 auto padding = params.padding; in CalculateOpDataDepthwiseConv() local 92 data->padding = ComputePaddingHeightWidth( in CalculateOpDataDepthwiseConv() 95 padding, &out_height, &out_width); in CalculateOpDataDepthwiseConv()
|
D | l2_pool_2d.cc | 58 auto padding = params->padding; in L2Prepare() local 61 params->computed.padding = ComputePaddingHeightWidth( in L2Prepare() 63 params->filter_height, params->filter_width, padding, &out_height, in L2Prepare() 114 op_params.padding_values.height = params->computed.padding.height; in L2Eval() 115 op_params.padding_values.width = params->computed.padding.width; in L2Eval()
|
D | pooling_test.cc | 34 TfLitePadding padding, in ValidatePoolingGoldens() argument 41 TfLitePoolParams builtin_data = {padding, in ValidatePoolingGoldens() 65 int* output_dims_data, TfLitePadding padding, in TestAveragePoolFloat() argument 84 expected_output_data, output_dims_count, padding, in TestAveragePoolFloat() 95 TfLitePadding padding, TfLiteFusedActivation activation, T* output_data) { in TestAveragePoolQuantized() argument 115 expected_output_data, output_dims_count, padding, in TestAveragePoolQuantized() 122 int* output_dims_data, TfLitePadding padding, in TestMaxPoolFloat() argument 139 expected_output_data, output_dims_count, padding, in TestMaxPoolFloat() 150 TfLitePadding padding, in TestMaxPoolQuantized() argument 169 expected_output_data, output_dims_count, padding, in TestMaxPoolQuantized()
|
D | l2_pool_2d_test.cc | 32 TfLitePadding padding = kTfLitePaddingValid; member 54 op_params.padding = params.padding; in ExecuteL2Pool2DTest() 177 params.padding = kTfLitePaddingSame; in TF_LITE_MICRO_TEST() 195 params.padding = kTfLitePaddingSame; in TF_LITE_MICRO_TEST()
|
D | kernel_util.cc | 40 PaddingType RuntimePaddingType(TfLitePadding padding) { in RuntimePaddingType() argument 41 switch (padding) { in RuntimePaddingType()
|
D | transpose_conv.cc | 59 inline PaddingType RuntimePaddingType(TfLitePadding padding) { in RuntimePaddingType() argument 60 switch (padding) { in RuntimePaddingType() 82 auto padding = params->padding; in CalculateOpData() local 86 width, filter_height, filter_width, padding, &out_height, &out_width); in CalculateOpData() 88 data->params.padding_type = RuntimePaddingType(padding); in CalculateOpData()
|
D | conv.h | 28 TfLitePaddingValues padding; member
|
D | pooling.h | 30 TfLitePaddingValues padding; member
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/arc_mli/ |
D | pooling.cc | 38 TfLitePaddingValues padding; member 71 data->padding = ComputePaddingHeightWidth( in CalculateOpData() 75 params->filter_width, params->padding, &out_height, &out_width); in CalculateOpData() 125 if (params->padding == kTfLitePaddingValid) { in Prepare() 131 data->cfg->padding_left = data->padding.width; in Prepare() 133 data->padding.width + data->padding.width_offset; in Prepare() 134 data->cfg->padding_top = data->padding.height; in Prepare() 136 data->padding.height + data->padding.height_offset; in Prepare() 155 op_params.padding_values.height = data.padding.height; in AverageEvalFloat() 156 op_params.padding_values.width = data.padding.width; in AverageEvalFloat() [all …]
|
D | conv.cc | 52 TfLitePaddingValues padding; member 88 inline PaddingType RuntimePaddingType(TfLitePadding padding) { in RuntimePaddingType() argument 89 switch (padding) { in RuntimePaddingType() 128 auto padding = params->padding; in CalculateOpData() local 129 data->padding = ComputePaddingHeightWidth( in CalculateOpData() 132 width, filter_height, filter_width, padding, &out_height, &out_width); in CalculateOpData() 297 if (params->padding == kTfLitePaddingValid) { in Prepare() 303 data->cfg->padding_left = data->padding.width; in Prepare() 305 data->padding.width + data->padding.width_offset; in Prepare() 306 data->cfg->padding_top = data->padding.height; in Prepare() [all …]
|
D | depthwise_conv.cc | 55 TfLitePaddingValues padding; member 136 data->padding = ComputePaddingHeightWidth( in CalculateOpData() 138 filter_height, filter_width, params->padding, &unused_output_height, in CalculateOpData() 324 if (params->padding == kTfLitePaddingValid) { in Prepare() 330 data->cfg->padding_left = data->padding.width; in Prepare() 332 data->padding.width + data->padding.width_offset; in Prepare() 333 data->cfg->padding_top = data->padding.height; in Prepare() 335 data->padding.height + data->padding.height_offset; in Prepare() 353 op_params.padding_values.width = data.padding.width; in EvalFloat() 354 op_params.padding_values.height = data.padding.height; in EvalFloat() [all …]
|
D | pooling_slicing_test.cc | 42 float output_max, TfLitePadding padding, TfLiteFusedActivation activation, in TestAveragePoolingQuantized() argument 68 TfLitePoolParams builtin_data = {padding, stride_width, stride_height, in TestAveragePoolingQuantized() 113 int* output_dims_data, TfLitePadding padding, in TestMaxPoolQuantized() argument 140 padding, stride_width, stride_height, in TestMaxPoolQuantized()
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/c/ |
D | builtin_op_data.h | 78 TfLitePadding padding; member 90 TfLitePadding padding; member 103 TfLitePadding padding; member 110 TfLitePaddingValues padding; member 116 TfLitePadding padding; member 413 TfLitePadding padding; member
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/cmsis_nn/ |
D | pooling.cc | 66 pool_params.padding.h = data.reference_op_data.padding.height; in AverageEvalQuantized() 67 pool_params.padding.w = data.reference_op_data.padding.width; in AverageEvalQuantized() 114 pool_params.padding.h = data.reference_op_data.padding.height; in MaxEvalInt8() 115 pool_params.padding.w = data.reference_op_data.padding.width; in MaxEvalInt8()
|
D | depthwise_conv.cc | 137 dw_conv_params.padding.h = data->reference_op_data.padding.height; in Prepare() 138 dw_conv_params.padding.w = data->reference_op_data.padding.width; in Prepare() 169 dw_conv_params.padding.h = data.reference_op_data.padding.height; in EvalQuantizedPerChannel() 170 dw_conv_params.padding.w = data.reference_op_data.padding.width; in EvalQuantizedPerChannel()
|
D | conv.cc | 110 conv_params.padding.h = data->reference_op_data.padding.height; in Prepare() 111 conv_params.padding.w = data->reference_op_data.padding.width; in Prepare() 145 conv_params.padding.h = data.reference_op_data.padding.height; in EvalQuantizedPerChannel() 146 conv_params.padding.w = data.reference_op_data.padding.width; in EvalQuantizedPerChannel()
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/xtensa/ |
D | depthwise_conv_hifi.cc | 66 const int pad_width = data->reference_op_data.padding.width; in DepthwiseConvPrepareHifi() 67 const int pad_height = data->reference_op_data.padding.height; in DepthwiseConvPrepareHifi() 98 const int pad_width = data.reference_op_data.padding.width; in DepthwiseConvEvalHifi() 99 const int pad_height = data.reference_op_data.padding.height; in DepthwiseConvEvalHifi()
|
D | conv_hifi.cc | 55 const int pad_height = data->reference_op_data.padding.height; in ConvPrepareHifi() 92 const int pad_width = data.reference_op_data.padding.width; in ConvEvalHifi() 93 const int pad_height = data.reference_op_data.padding.height; in ConvEvalHifi()
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/ceva/ |
D | depthwise_conv.cc | 80 const int pad_width = data.padding.width; in EvalFloat() 81 const int pad_height = data.padding.height; in EvalFloat() 156 const int pad_width = data.padding.width; in EvalQuantizedPerChannel() 157 const int pad_height = data.padding.height; in EvalQuantizedPerChannel()
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/examples/magic_wand/train/ |
D | train.py | 55 padding="same", 60 tf.keras.layers.Conv2D(16, (4, 1), padding="same", 62 tf.keras.layers.MaxPool2D((3, 1), padding="same"), # (batch, 14, 1, 16)
|
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/vexriscv/ |
D | depthwise_conv.cc | 281 TfLitePaddingValues padding; member 312 data->padding = ComputePaddingHeightWidth( in CalculateOpData() 314 filter_height, filter_width, params->padding, &unused_output_height, in CalculateOpData() 411 op_params.padding_values.width = data.padding.width; in EvalQuantizedPerChannel() 412 op_params.padding_values.height = data.padding.height; in EvalQuantizedPerChannel() 449 op_params.padding_values.width = data.padding.width; in EvalQuantized() 450 op_params.padding_values.height = data.padding.height; in EvalQuantized()
|