.. _cn_api_fluid_CPUPlace:

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

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

:alias_main: paddle.CPUPlace
:alias: paddle.CPUPlace,paddle.framework.CPUPlace
:old_api: paddle.fluid.core.CPUPlace






``CPUPlace`` 是一个设备描述符，表示一个分配或将要分配 ``Tensor`` 或 ``LoDTensor`` 的 ``CPU`` 设备。

**代码示例**

.. code-block:: python

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


