提交 ed76a5dd 编写于 作者: Z zhangting2020

update doc

上级 f457a8bf
......@@ -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
......
......@@ -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()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册