From 716c294ce9828cd02b36d8566b12e93898b1e2bc Mon Sep 17 00:00:00 2001 From: Wu Chencan <77946882+DanGuge@users.noreply.github.com> Date: Thu, 16 Nov 2023 06:50:02 -0600 Subject: [PATCH] Update python/paddle/tensor/manipulation.py Co-authored-by: ooo oo <106524776+ooooo-create@users.noreply.github.com> --- python/paddle/tensor/manipulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index c2f6e04240fd41..601fd716784aa2 100644 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -5650,7 +5650,7 @@ def diagonal_scatter(x, y, offset=0, axis1=0, axis2=1, name=None): ``y`` should have the same shape as paddle.diagonal(x, offset, axis1, axis2). Args: - x (Tensor): `x`` is the original Tensor. Must be at least 2-dimensional. + x (Tensor): ``x`` is the original Tensor. Must be at least 2-dimensional. y (Tensor): ``y`` is the Tensor to embed into ``x`` offset (int, optional): which diagonal to consider. Default: 0 (main diagonal). axis1 (int, optional): first axis with respect to which to take diagonal. Default: 0.