diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index 73429bc373801..5f588b2fdd5cf 100644 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -796,6 +796,13 @@ def crop( [[3, 4, 5], [6, 7, 8]]] + The image below demonstrates the Case 2 that a 3D tensor with shape [2,3,4] is cropped into a 3D tensor with shape [2,2,3] + + .. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/images/api_legend/crop.png + :width: 500 + :alt: Illustration of Case 2 + :align: center + Parameters: x (Tensor): 1-D to 6-D Tensor, the data type is float32, float64, int32 or int64. shape (list|tuple|Tensor, optional): The output shape is specified