未验证 提交 3481ff55 编写于 作者: R risemeup1 提交者: GitHub

fix_static_problem (#49439)

* fix_static_problem

* test

* fix_static_problem,test=document_fix
上级 9e6007f0
...@@ -106,7 +106,7 @@ __all__ = ['cuda', 'cudnn', 'show'] ...@@ -106,7 +106,7 @@ __all__ = ['cuda', 'cudnn', 'show']
def show(): def show():
"""Get the version of paddle if `paddle` package if tagged. Otherwise, output the corresponding commit id. """Get the version of paddle if `paddle` package if tagged. Otherwise, output the corresponding commit id.
Returns: Returns:
If paddle package is not tagged, the commit-id of paddle will be output. If paddle package is not tagged, the commit-id of paddle will be output.
Otherwise, the following information will be output. Otherwise, the following information will be output.
...@@ -118,13 +118,13 @@ def show(): ...@@ -118,13 +118,13 @@ def show():
minor: the minor version of paddle minor: the minor version of paddle
patch: the patch level version of paddle patch: the patch level version of paddle
rc: whether it's rc version rc: whether it's rc version
cuda: the cuda version of package. It will return `False` if CPU version paddle package is installed cuda: the cuda version of package. It will return `False` if CPU version paddle package is installed
cudnn: the cudnn version of package. It will return `False` if CPU version paddle package is installed cudnn: the cudnn version of package. It will return `False` if CPU version paddle package is installed
Examples: Examples:
.. code-block:: python .. code-block:: python
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册