Home
last modified time | relevance | path

Searched refs:pad_before (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dconv_grad_size_util.cc41 dim.pad_before = dim.pad_after = 0; in GetWindowedOutputSize()
50 dim.pad_before = padding_needed / 2; in GetWindowedOutputSize()
51 dim.pad_after = padding_needed - dim.pad_before; in GetWindowedOutputSize()
85 dim.pad_before = effective_filter_size - 1 - output_dim.pad_before; in ConvGradExtractAndVerifyDimension()
86 dim.pad_after = padded_out_size - dim.output_size - dim.pad_before; in ConvGradExtractAndVerifyDimension()
90 << ", pad_before = " << dim.pad_before in ConvGradExtractAndVerifyDimension()
Dconv_grad_size_util.h30 int64_t pad_before; member
Dpooling.cc265 padding->set_edge_padding_low(conv_backprop_spatial_dim.pad_before); in AvgPoolGrad()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_utils.cc368 int64_t pad_before, pad_after; in getPaddingValuesFromPadType() local
388 pad_before = pad_before_tf; in getPaddingValuesFromPadType()
390 computed_paddings.push_back(pad_before); in getPaddingValuesFromPadType()
413 int64_t pad_before, pad_after; in getPaddingValuesFromExplicitPadAttr() local
418 pad_before = explicit_pad[dim * 2].template cast<IntegerAttr>().getInt(); in getPaddingValuesFromExplicitPadAttr()
420 computed_paddings.push_back(pad_before); in getPaddingValuesFromExplicitPadAttr()
442 int64_t pad_before, pad_after; in getTransposeConv2dPaddingValues() local
464 pad_before = total_padding / 2; in getTransposeConv2dPaddingValues()
465 pad_after = total_padding - pad_before; in getTransposeConv2dPaddingValues()
467 computed_paddings.push_back(pad_before); in getTransposeConv2dPaddingValues()
/external/tensorflow/tensorflow/core/kernels/
Dconv_grad_shape_utils.cc81 dim->pad_before = effective_filter_size - 1 - padding_before; in ConvBackpropExtractAndVerifyDimension()
83 padded_out_size - dim->expanded_output_size - dim->pad_before; in ConvBackpropExtractAndVerifyDimension()
87 << ", pad_before = " << dim->pad_before in ConvBackpropExtractAndVerifyDimension()
Dconv_grad_shape_utils.h41 int64_t pad_before, pad_after; member
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconv_op_helpers.cc361 padding[i] = {dims.spatial_dims[i].pad_before, in MakeXlaBackpropInputConvOp()
512 const int64_t pad_before = in MakeXlaBackpropFilterConvOp() local
516 padding[i] = {pad_before, pad_total - pad_before}; in MakeXlaBackpropFilterConvOp()
/external/libaom/aom/src/
Daom_encoder.c231 unsigned int pad_before, in aom_codec_set_cx_data_buf() argument
237 ctx->priv->enc.cx_data_pad_before = pad_before; in aom_codec_set_cx_data_buf()
/external/libvpx/vpx/src/
Dvpx_encoder.c286 unsigned int pad_before, in vpx_codec_set_cx_data_buf() argument
292 ctx->priv->enc.cx_data_pad_before = pad_before; in vpx_codec_set_cx_data_buf()
/external/libaom/aom/
Daom_encoder.h1090 unsigned int pad_before,
/external/libvpx/vpx/
Dvpx_encoder.h1070 unsigned int pad_before,
/external/eigen/unsupported/test/
Dcxx11_tensor_block_eval.cpp334 DSizes<Index, NumDims> pad_before = RandomDims<NumDims>(0, 4); in test_eval_tensor_padding() local
338 paddings[i] = std::make_pair(pad_before[i], pad_after[i]); in test_eval_tensor_padding()
343 pad_before[inner_dim] = 0; in test_eval_tensor_padding()
350 padded_dims[i] = dims[i] + pad_before[i] + pad_after[i]; in test_eval_tensor_padding()
/external/tensorflow/tensorflow/python/kernel_tests/nn_ops/
Ddepthwise_conv_op_base.py118 pad_before = total_padding // 2
119 pad_after = total_padding - pad_before
120 return pad_before, pad_after
/external/tensorflow/tensorflow/compiler/tests/
Drandomized_tests.cc4215 int64_t pad_before; in TEST_F() local
4218 pad_before = distribution(generator()); in TEST_F()
4220 } while (pad_before + pad_after > input_dims[1 + i]); in TEST_F()
4221 input_dims[1 + i] -= pad_before + pad_after; in TEST_F()
4222 padding_vals.push_back(pad_before); in TEST_F()
4257 int64_t pad_before; in TEST_F() local
4260 pad_before = distribution(generator()); in TEST_F()
4262 } while (pad_before + pad_after > input_dims[1 + i]); in TEST_F()
4263 input_dims[1 + i] -= pad_before + pad_after; in TEST_F()
4264 padding_vals.push_back(pad_before); in TEST_F()
/external/tensorflow/tensorflow/cc/gradients/
Darray_grad.cc321 auto pad_before = Slice(scope, a, {0, 0}, size); in PadGrad() local
323 auto begin = Reshape(scope, pad_before, {-1}); in PadGrad()
/external/tensorflow/tensorflow/python/ops/
Darray_grad.py890 pad_before = array_ops.slice(a, [0, 0],
893 begin = array_ops.reshape(pad_before, [-1])
/external/tensorflow/tensorflow/compiler/mlir/tosa/g3doc/
Dlegalization.md104 int64 pad_before, pad_after
109 pad_before = explicit_pad[dim * 2]
111 computed_paddings.push_back(pad_before)
1048 int64 pad_before, pad_after;
1065 pad_before = total_padding / 2
1066 pad_after = total_padding - pad_before
1068 computed_padding.push_back(pad_before)
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf.cc2843 conv_grad_spatial_dim.pad_before - orig_padding[dim].first; in matchAndRewrite()
4979 int64_t pad_before = effective_filter_size - 1 - padding_before; in matchAndRewrite() local
4982 int64_t pad_after = padded_out_size - expanded_output_size - pad_before; in matchAndRewrite()
4988 paddings.push_back(pad_before); in matchAndRewrite()
5229 const int64_t pad_before = padding == tensorflow::Padding::EXPLICIT in matchAndRewrite() local
5234 paddings.push_back(pad_before); in matchAndRewrite()
5235 paddings.push_back(pad_total - pad_before); in matchAndRewrite()