class paddle. NPUPlace

NPUPlace is a descriptor of a device. It represents a NPU device on which a tensor will be allocated and a model will run.


System Message: ERROR/3 (docstring of paddle.fluid.core_avx.NPUPlace, line 6)

Error in “code-block” directive: maximum 1 argument(s) allowed, 6 supplied.

.. code-block:: python
  import paddle
  npu_place = paddle.NPUPlace(0)