MLUPlace¶
- class paddle.fluid.libpaddle. MLUPlace
-
MLUPlace is a descriptor of a device. It represents a MLU device on which a tensor will be allocated and a model will run.
Examples
MLUPlace is a descriptor of a device. It represents a MLU device on which a tensor will be allocated and a model will run.
Examples
System Message: ERROR/3 (docstring of paddle.fluid.libpaddle.MLUPlace, line 6)
Error in “code-block” directive: maximum 1 argument(s) allowed, 9 supplied.
.. code-block:: python
import paddle
# required: mlu
mlu_place = paddle.MLUPlace(0)