Skip to content

Commit

Permalink
Merge pull request #3 from cxxly/science-add-rules-ut
Browse files Browse the repository at this point in the history
update the format of english documents
  • Loading branch information
cxxly committed May 16, 2022
2 parents 06dd62d + a8b3bb1 commit 03256b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
9 changes: 8 additions & 1 deletion python/paddle/incubate/autograd/__init__.py
Expand Up @@ -16,5 +16,12 @@
from .utils import enable_prim, disable_prim, prim_enabled

__all__ = [ # noqa
'vjp', 'jvp', 'Jacobian', 'Hessian', 'prim2orig', 'enable_prim', 'disable_prim', 'prim_enabled'
'vjp',
'jvp',
'Jacobian',
'Hessian',
'prim2orig',
'enable_prim',
'disable_prim',
'prim_enabled'
]
5 changes: 1 addition & 4 deletions python/paddle/incubate/autograd/primx.py
Expand Up @@ -548,10 +548,7 @@ def prim2orig(block=None):
block(paddle.fluid.framework.Variable|None, optional): The
target block to process on. Default None, and will
process on the current block of main program.
Returns:
None
Examples:
.. code-block:: python
Expand Down
29 changes: 9 additions & 20 deletions python/paddle/incubate/autograd/utils.py
Expand Up @@ -36,13 +36,12 @@ def prim_enabled():
.. note::
**This API is ONLY available in the static mode.**
This API shows whether the automatic differentiation mechanism based on automatic differential basic operators is ON.
Args:
None
This API 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.
Examples:
Expand All @@ -69,14 +68,9 @@ def enable_prim():
.. note::
**This API is ONLY available in the static mode.**
This API turns ON automatic differentiation mechanism based on automatic differential basic operators.
This API turns ON automatic differentiation mechanism based on automatic
differential basic operators.
Args:
None
Returns:
None
Examples:
.. code-block:: python
Expand All @@ -98,14 +92,9 @@ def disable_prim():
.. note::
**This API is ONLY available in the static mode.**
This API turns OFF automatic differentiation mechanism based on automatic differential basic operators.
Args:
None
This API turns OFF automatic differentiation mechanism based on automatic
differential basic operators.
Returns:
None
Examples:
.. code-block:: python
Expand Down

1 comment on commit 03256b4

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 03256b4 May 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #3 Commit ID: 03256b4 contains failed CI.

🔹 Failed: PR-CI-APPROVAL

Unknown Failed
Unknown Failed

🔹 Failed: PR-CI-Windows-OPENBLAS

Unknown Failed
Unknown Failed

🔹 Failed: PR-CI-Windows

Unknown Failed
Unknown Failed

🔹 Failed: PR-CI-Static-Check

Unknown Failed
Unknown Failed

🔹 Failed: PR-CI-Coverage

Unknown Failed
Unknown Failed

Please sign in to comment.