```Given:
X = [[[[ 0,  1,  2],
[ 3,  4,  5]],
[[ 6,  7,  8],
[ 9, 10, 11]],
[[12, 13, 14],
[15, 16, 17]]],
[[[18, 19, 20],
[21, 22, 23]],
[[24, 25, 26],
[27, 28, 29]],
[[30, 31, 32],
[33, 34, 35]]]]

X.shape = (2, 3, 2, 3)

Y = [[[[35, 36, 37]],
[[38, 39, 40]],
[[41, 42, 43]]]]

Y.shape = (1, 3, 1, 3)

And

Return:
Out = [[[[35, 36, 37],
[ 0,  0,  0]],
[[38, 39, 40],
[ 0,  0,  0]],
[[41, 42, 43],
[ 0,  0,  0]]],
[[[ 0,  0,  0],
[ 0,  0,  0]],
[[ 0,  0,  0],
[ 0,  0,  0]],
[[ 0,  0,  0],
[ 0,  0,  0]]]]

Out.shape = [2, 3, 2, 3]
```

## 参数¶

• x （Variable）- 多维Tensor

• y （Variable）- 多维Tensor，与x具有相同的秩，而且对任意维度 `i`，要求满足 `y.shape[i] <= x.shape[i]`。数据类型为float32或float64

• pad_value (float，可选) - 用于填充的常量值。默认值为0。

• name (str，可选) - 具体用法请参见 Name，一般无需设置，默认值为 None。

Variable

## 代码示例¶

```# x是秩为4的tensor, x.shape = (2, 3, 2, 3)
# y是秩为4的tensor, y.shape = (1, 3, 1, 3)
import paddle.fluid as fluid
x = fluid.data(name='x', shape=[2,3,2,3], dtype='float32')
y = fluid.data(name='y', shape=[1,3,1,3], dtype='float32')