CPUPlace_cn.rst 354 字节
Newer Older
H
Hao Wang 已提交
1 2 3 4 5 6 7
.. _cn_api_fluid_CPUPlace:

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

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

S
swtkiwi 已提交
8 9 10



11
``CPUPlace`` 是一个设备描述符,表示一个分配或将要分配 ``Tensor`` 或 ``LoDTensor`` 的 ``CPU`` 设备。
H
Hao Wang 已提交
12 13 14 15 16 17 18 19 20

**代码示例**

.. code-block:: python

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