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

test_feature_precision_test_c
donproc 5 years ago committed by GitHub
parent 4f259354d2
commit 94b05850d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,10 +45,23 @@ class SimpleLayer(Layer):
def run_check(): 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 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 ... ") print("Running Verify Fluid Program ... ")
device_list = [] device_list = []

@ -63,7 +63,6 @@
"Compressor", "Compressor",
"Compressor.config", "Compressor.config",
"Compressor.run", "Compressor.run",
"run_check",
"HDFSClient.upload", "HDFSClient.upload",
"HDFSClient.download", "HDFSClient.download",
"HDFSClient.is_exist", "HDFSClient.is_exist",

Loading…
Cancel
Save