From 32179ff57aa44f2f42c4176c7342022bea9f9a8f Mon Sep 17 00:00:00 2001 From: Li-fAngyU <56572498+Li-fAngyU@users.noreply.github.com> Date: Sun, 3 Apr 2022 13:14:34 +0800 Subject: [PATCH] Update math.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改nanmean的example code 错误 --- python/paddle/tensor/math.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index c6c678ac9c5eb..ee0dc13922be6 100644 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -1037,7 +1037,8 @@ def nanmean(x, axis=None, keepdim=False, name=None): Examples: .. code-block:: python - :name: code-example1 + :name: code-example1 + import paddle # x is a Tensor with following elements: