This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
MegEngine
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
31
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
docs(mge/functional): update copy example
GitOrigin-RevId:
59aacfe42b
release-1.11.1
Megvii Engine Team
2 years ago
parent
6e48e59334
commit
d205e7bee4
1 changed files
with
0 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
imperative/python/megengine/functional/tensor.py
+ 0
- 1
imperative/python/megengine/functional/tensor.py
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save