Home
last modified time | relevance | path

Searched refs:left_padding (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dstring_ngrams_op.cc149 int left_padding = std::max(0, pad_width - ngram_index); in CreateNgrams() local
152 int num_tokens = ngram_width - (left_padding + right_padding); in CreateNgrams()
153 int data_start_index = left_padding > 0 ? 0 : ngram_index - pad_width; in CreateNgrams()
159 ngram_size += left_padding * left_pad_.length(); in CreateNgrams()
167 int num_separators = left_padding + right_padding + num_tokens - 1; in CreateNgrams()
173 for (int n = 0; n < left_padding; ++n) { in CreateNgrams()
Dconv_ops_fused_image_transform.cc120 int left_padding; member
229 int64 left_padding, int64 pad_offset, in CalculatePerCachePixelParameters() argument
237 float in_x = (cache_x - left_padding); in CalculatePerCachePixelParameters()
267 int top_padding, int bottom_padding, int left_padding, in operator ()() argument
317 task_params.left_padding = left_padding; in operator ()()
487 task_params.input_depth, task_params.left_padding, in operator ()()
753 const int32 left_padding = paddings_matrix(2, 0); in Compute() local
859 bottom_padding, left_padding, right_padding, offset_); in Compute()
Dconv_ops_test.cc141 const int left_padding = 0; in HandwrittenConv() local
148 {0, 0, top_padding, bottom_padding, left_padding, right_padding, 0, 0}); in HandwrittenConv()
/external/tensorflow/tensorflow/compiler/mlir/tfr/examples/pad/
Dops_defs.py63 left_padding, _ = tf.raw_ops.SplitV(
74 _, left_padding = tf.raw_ops.SplitV(
86 concat_dim=i, values=[left_padding, input_, right_padding])
110 left_padding, core, right_padding = tf.raw_ops.SplitV(
115 reversed_left_padding = tf.raw_ops.Reverse(tensor=left_padding, dims=rdims)
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dim2col_utils.h63 const int left_padding = w_offset; in ExtractPatchIntoBufferColumn() local
66 ((kwidth - (left_padding + right_padding)) * in_depth)); in ExtractPatchIntoBufferColumn()
78 if ((left_padding == 0) && (right_padding == 0)) { in ExtractPatchIntoBufferColumn()
87 if (left_padding > 0) { in ExtractPatchIntoBufferColumn()
88 const int left_start = (out_offset - (left_padding * in_depth)); in ExtractPatchIntoBufferColumn()
90 (left_padding * in_depth * sizeof(T))); in ExtractPatchIntoBufferColumn()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_padv2_attributes.cc36 if (!op->left_padding.empty()) return ::tensorflow::Status::OK(); in Run()
51 op->left_padding.push_back(buffer[i * 2]); in Run()
Dresolve_pad_attributes.cc36 if (!op->left_padding.empty()) return ::tensorflow::Status::OK(); in Run()
51 op->left_padding.push_back(buffer[i * 2]); in Run()
Dpropagate_fixed_sizes.cc1507 if (op->left_padding.empty()) return; in ProcessPadOperator()
1508 CHECK_EQ(op->left_padding.size(), op->right_padding.size()); in ProcessPadOperator()
1515 CHECK_EQ(op->left_padding.size(), dims.size()); in ProcessPadOperator()
1517 for (size_t i = 0; i < op->left_padding.size(); ++i) { in ProcessPadOperator()
1518 dims[i] += op->left_padding[i] + op->right_padding[i]; in ProcessPadOperator()
1533 if (op->left_padding.empty()) return; in ProcessPadV2Operator()
1534 CHECK_EQ(op->left_padding.size(), op->right_padding.size()); in ProcessPadV2Operator()
1541 CHECK_EQ(op->left_padding.size(), dims.size()); in ProcessPadV2Operator()
1543 for (size_t i = 0; i < op->left_padding.size(); ++i) { in ProcessPadV2Operator()
1544 dims[i] += op->left_padding[i] + op->right_padding[i]; in ProcessPadV2Operator()
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/
Dimage_preprocessing_stage.cc191 std::uninitialized_fill_n(pad_params.left_padding, 4, 0); in Pad()
192 pad_params.left_padding[1] = in Pad()
194 pad_params.left_padding[2] = in Pad()
199 output_height - pad_params.left_padding[1] - image_data->height; in Pad()
201 output_width - pad_params.left_padding[2] - image_data->width; in Pad()
/external/libvpx/libvpx/test/
Dbuffer.h29 Buffer(int width, int height, int top_padding, int left_padding, in Buffer() argument
32 left_padding_(left_padding), right_padding_(right_padding), in Buffer()
36 Buffer(int width, int height, int top_padding, int left_padding, in Buffer() argument
39 left_padding_(left_padding), right_padding_(right_padding), in Buffer()
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/
Dtfr_gen_test.py144 left_padding, _ = array_ops.SplitV(
148 return [left_padding, right_padding]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cpp892 const uptr left_padding = in MapDynamicShadow() local
896 const uptr map_size = shadow_size + left_padding + alignment; in MapDynamicShadow()
901 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow()
903 UnmapFromTo(map_start, shadow_start - left_padding); in MapDynamicShadow()
Dsanitizer_win.cpp357 const uptr left_padding = in MapDynamicShadow() local
359 uptr space_size = shadow_size_bytes + left_padding; in MapDynamicShadow()
367 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, in FindAvailableMemoryRange() argument
377 uptr shadow_address = RoundUpTo((uptr)info.BaseAddress + left_padding, in FindAvailableMemoryRange()
Dsanitizer_mac.cpp1141 const uptr left_padding = in MapDynamicShadow() local
1144 uptr space_size = shadow_size_bytes + left_padding; in MapDynamicShadow()
1169 space_size = (high_mem_end >> shadow_scale) + left_padding; in MapDynamicShadow()
1183 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, in FindAvailableMemoryRange() argument
1214 uptr gap_start = RoundUpTo((uptr)free_begin + left_padding, alignment); in FindAvailableMemoryRange()
Dsanitizer_common.h150 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding,
Dsanitizer_linux.cpp2246 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, in FindAvailableMemoryRange() argument
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dpad.h57 op_params.left_padding_count] = op_params.left_padding[i]; in PadImpl()
/external/tensorflow/tensorflow/lite/kernels/
Dpad.cc199 op_params.left_padding[idx] = paddings_data[idx * 2]; in Eval()
/external/tensorflow/tensorflow/lite/micro/kernels/
Dpad.cc102 data->params.left_padding[idx] = paddings_data[idx * 2]; in Prepare()
/external/tensorflow/tensorflow/lite/toco/
Dexport_tensorflow.cc1701 CHECK_EQ(src_op.left_padding.size(), src_op.right_padding.size()); in ConvertPadOperator()
1702 for (int i = 0; i < src_op.left_padding.size(); ++i) { in ConvertPadOperator()
1703 tensor->add_int_val(src_op.left_padding[i]); in ConvertPadOperator()
1707 shape->add_dim()->set_size(src_op.left_padding.size()); in ConvertPadOperator()
1733 CHECK_EQ(src_op.left_padding.size(), src_op.right_padding.size()); in ConvertPadV2Operator()
1734 for (int i = 0; i < src_op.left_padding.size(); ++i) { in ConvertPadV2Operator()
1735 tensor->add_int_val(src_op.left_padding[i]); in ConvertPadV2Operator()
1739 shape->add_dim()->set_size(src_op.left_padding.size()); in ConvertPadV2Operator()
Dmodel.h1069 std::vector<int> left_padding;
1092 std::vector<int> left_padding;
/external/tensorflow/tensorflow/lite/kernels/internal/
Dtypes.h1021 int32_t left_padding[4]; member
/external/tensorflow/tensorflow/lite/micro/kernels/ceva/
Dtypes.h1120 int32_t left_padding[4];
/external/fmtlib/include/fmt/
Dformat.h1503 size_t left_padding = padding >> shifts[specs.align];
1505 it = fill(it, left_padding, specs.fill);
1507 it = fill(it, padding - left_padding, specs.fill);
/external/tensorflow/tensorflow/python/eager/
Dfunction.py2394 left_padding = tuple([no_default] * num_args_without_defaults)
2396 args_with_defaults = zip(old_args, left_padding + old_defaults)

12