提交 d205e7be 编写于 作者: M Megvii Engine Team

docs(mge/functional): update copy example

GitOrigin-RevId: 59aacfe42b700cdec1c8159c513c114df2015a46
上级 6e48e593
......@@ -1052,7 +1052,6 @@ def copy(inp, device=None):
>>> import numpy as np
>>> x = Tensor([1, 2, 3], np.int32)
Tensor([1 2 3], dtype=int32, device=xpux:0)
>>> F.copy(x, 'cpu1')
Tensor([1 2 3], dtype=int32, device=cpu1:0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册