diff --git a/doc/paddle/api/alias_api_mapping b/doc/paddle/api/alias_api_mapping index a29a76ae8f8d09c8519a84fa570b9123f0b18712..1950d917dfdd30ad145d5eaf48645e7137232f19 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 5f2741e78783c432eb22fd82509e2f3ebf7c808e..0e9c9be2880e468ddc9524d9e931e9d0ff3d6e57 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()