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:
2ea102e0ad
release-1.11.1
Megvii Engine Team
2 years ago
parent
e89ee63112
commit
6e48e59334
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
imperative/python/megengine/functional/tensor.py
+ 2
- 1
imperative/python/megengine/functional/tensor.py
View File
@@ -1050,7 +1050,8 @@ def copy(inp, device=None):
Examples:
>>> x = Tensor([1, 2, 3], numpy.int32)
>>> import numpy as np
>>> x = Tensor([1, 2, 3], np.int32)
Tensor([1 2 3], dtype=int32, device=xpux:0)
>>> F.copy(x, 'cpu1')
Write
Preview
Loading…
Cancel
Save