未验证 提交 94b05850 编写于 作者: D donproc 提交者: GitHub

add paddle.fluid.install_check.run_check example doc (#25993)

上级 4f259354
......@@ -45,10 +45,23 @@ class SimpleLayer(Layer):
def run_check():
''' install check to verify if install is success
"""To check whether install is successful
This func should not be called only if you need to verify installation
'''
Examples:
.. code-block: python
import paddle.fluid as fluid
fluid.install_check.run_check()
# If installed successfully, output may be
# Running Verify Fluid Program ...
# W0805 04:24:59.496919 35357 device_context.cc:268] Please NOTE: device: 0, CUDA Capability: 70, Driver API Version: 10.2, Runtime API Version: 10.1
# W0805 04:24:59.505594 35357 device_context.cc:276] device: 0, cuDNN Version: 7.6.
# Your Paddle Fluid works well on SINGLE GPU or CPU.
# Your Paddle Fluid works well on MUTIPLE GPU or CPU.
# Your Paddle Fluid is installed successfully! Let's start deep Learning with Paddle Fluid now
"""
print("Running Verify Fluid Program ... ")
device_list = []
......
......@@ -63,7 +63,6 @@
"Compressor",
"Compressor.config",
"Compressor.run",
"run_check",
"HDFSClient.upload",
"HDFSClient.download",
"HDFSClient.is_exist",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册