diff --git a/python/paddle/incubate/autograd/primx.py b/python/paddle/incubate/autograd/primx.py index f7be2a353ea8a..7a969748208a4 100644 --- a/python/paddle/incubate/autograd/primx.py +++ b/python/paddle/incubate/autograd/primx.py @@ -537,7 +537,7 @@ def orig2prim(block=None): def prim2orig(block=None): """ .. note:: - **This API is ONLY available in the static mode.** + **ONLY available in the static mode.** All operators in the target block are processed as follows. If it is an automatic differential basic operator, it will be @@ -545,7 +545,7 @@ def prim2orig(block=None): equivalent function to support execution. Args: - block(paddle.fluid.framework.Variable|None, optional): The + block(paddle.static.Variable|None, optional): The target block to process on. Default None, and will process on the current block of main program. diff --git a/python/paddle/incubate/autograd/utils.py b/python/paddle/incubate/autograd/utils.py index c7efd7d393381..1f8d357699c7a 100644 --- a/python/paddle/incubate/autograd/utils.py +++ b/python/paddle/incubate/autograd/utils.py @@ -34,14 +34,13 @@ def set_status(self, flag): def prim_enabled(): """ .. note:: - **This API is ONLY available in the static mode.** + **ONLY available in the static mode.** - This API shows whether the automatic differentiation mechanism based on + Shows whether the automatic differentiation mechanism based on automatic differential basic operators is ON. Returns: - flag(bool): whether the automatic differentiation mechanism based on - automatic differential basic operators is ON. + flag(bool): Whether the automatic differentiation mechanism based on automatic differential basic operators is ON. Defaults to False. Examples: @@ -66,9 +65,9 @@ def prim_enabled(): def enable_prim(): """ .. note:: - **This API is ONLY available in the static mode.** + **ONLY available in the static mode.** - This API turns ON automatic differentiation mechanism based on automatic + Turns ON automatic differentiation mechanism based on automatic differential basic operators. Examples: @@ -90,9 +89,9 @@ def enable_prim(): def disable_prim(): """ .. note:: - **This API is ONLY available in the static mode.** + **ONLY available in the static mode.** - This API turns OFF automatic differentiation mechanism based on automatic + Turns OFF automatic differentiation mechanism based on automatic differential basic operators. Examples: