未验证 提交 809516f6 编写于 作者: L Leo Chen 提交者: GitHub

fix doc of NPUPlace (#48148)

* fix doc of NPUPlace

* fix doc of NPUPlace, test=document_fix
上级 2d0fb059
......@@ -553,8 +553,11 @@ void BindPlace(pybind11::module &m) { // NOLINT
Examples:
.. code-block:: python
# required: npu
import paddle
npu_place = paddle.NPUPlace(0)
place = paddle.NPUPlace(0)
)DOC");
g_npuplace_pytype = reinterpret_cast<PyTypeObject *>(npuplace.ptr());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册