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
fix(mge/autodiff): fix incorrect handling of tuple dy
GitOrigin-RevId:
beca8e3711
release-1.5
Megvii Engine Team
4 years ago
parent
5868d1fe4f
commit
01354337a9
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
imperative/python/megengine/autodiff/grad_manager.py
+ 1
- 1
imperative/python/megengine/autodiff/grad_manager.py
View File
@@ -262,7 +262,7 @@ class GradManager:
if dy is None:
dys = [ones_like(y) for y in ys]
elif isinstance(dy, (tuple, list)):
dys = y
s
dys =
d
y
else:
dys = [dy]
try:
Write
Preview
Loading…
Cancel
Save