CPUPlace_cn.rst 319 字节
Newer Older
H
Hao Wang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
.. _cn_api_fluid_CPUPlace:

CPUPlace
-------------------------------

.. py:class:: paddle.fluid.CPUPlace


CPUPlace是设备的描述符。它代表一个CPU,可以访问CPUPlace对应的内存。

**代码示例**

.. code-block:: python

        import paddle.fluid as fluid
        cpu_place = fluid.CPUPlace()