From a5d5b9633f28a685f8ffe468e6b246b739447f79 Mon Sep 17 00:00:00 2001 From: SigureMo Date: Mon, 24 Jul 2023 14:58:30 +0800 Subject: [PATCH] add some ... for decorator --- python/paddle/jit/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/jit/api.py b/python/paddle/jit/api.py index 107d0f282e667..e1366d110a3c4 100644 --- a/python/paddle/jit/api.py +++ b/python/paddle/jit/api.py @@ -130,7 +130,7 @@ def _dygraph_to_static_func_(dygraph_func): >>> from paddle.jit.api import dygraph_to_static_func >>> @dygraph_to_static_func - >>> def func(x): + ... def func(x): ... if paddle.mean(x) < 0: ... x_v = x - 1 ... else: @@ -345,12 +345,12 @@ def not_to_static(func=None): >>> import paddle >>> @paddle.jit.not_to_static - >>> def func_not_to_static(x): + ... def func_not_to_static(x): ... res = x - 1 ... return res >>> @paddle.jit.to_static - >>> def func(x): + ... def func(x): ... if paddle.mean(x) < 0: ... out = func_not_to_static(x) ... else: