From ed76a5ddb1de5280beba1c9c531931337524e528 Mon Sep 17 00:00:00 2001 From: zhangting2020 <709968123@qq.com> Date: Sun, 27 Sep 2020 06:48:18 +0000 Subject: [PATCH] update doc --- doc/paddle/api/alias_api_mapping | 1 + .../fluid/{ => framework}/is_compiled_with_cuda_cn.rst | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) rename doc/paddle/api/paddle/fluid/{ => framework}/is_compiled_with_cuda_cn.rst (62%) diff --git a/doc/paddle/api/alias_api_mapping b/doc/paddle/api/alias_api_mapping index a29a76ae8..1950d917d 100644 --- a/doc/paddle/api/alias_api_mapping +++ b/doc/paddle/api/alias_api_mapping @@ -74,6 +74,7 @@ paddle.fluid.layers.has_nan paddle.has_nan,paddle.tensor.has_nan,paddle.tensor.s paddle.tensor.manipulation.expand_as paddle.expand_as,paddle.tensor.expand_as paddle.fluid.layers.crf_decoding paddle.static.nn.crf_decoding paddle.fluid.framework.default_main_program paddle.static.default_main_program +paddle.fluid.framework.is_compiled_with_cuda paddle.is_compiled_with_cuda,paddle.device.is_compiled_with_cuda paddle.fluid.framework.Variable paddle.Variable,paddle.framework.Variable paddle.fluid.layers.l2_normalize paddle.nn.functional.l2_normalize,paddle.nn.functional.norm.l2_normalize paddle.fluid.layers.log_loss paddle.nn.functional.log_loss,paddle.nn.functional.loss.log_loss diff --git a/doc/paddle/api/paddle/fluid/is_compiled_with_cuda_cn.rst b/doc/paddle/api/paddle/fluid/framework/is_compiled_with_cuda_cn.rst similarity index 62% rename from doc/paddle/api/paddle/fluid/is_compiled_with_cuda_cn.rst rename to doc/paddle/api/paddle/fluid/framework/is_compiled_with_cuda_cn.rst index 5f2741e78..0e9c9be28 100644 --- a/doc/paddle/api/paddle/fluid/is_compiled_with_cuda_cn.rst +++ b/doc/paddle/api/paddle/fluid/framework/is_compiled_with_cuda_cn.rst @@ -10,15 +10,15 @@ is_compiled_with_cuda 检查 ``whl`` 包是否可以被用来在GPU上运行模型 -返回:支持gpu则为True,否则为False。 +返回:支持GPU则为True,否则为False。 -返回类型:out(boolean) +返回:是否支持GPU的bool值 **示例代码** .. code-block:: python - import paddle.fluid as fluid - support_gpu = fluid.is_compiled_with_cuda() + import paddle + support_gpu = paddle.is_compiled_with_cuda() -- GitLab