This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
!9149
Fix bug of moments precision error in pynative
From:
@joylvliang
Reviewed-by: @chujinjin,@kisnwang,@jjfeing,@chujinjin Signed-off-by:
@chujinjin
tags/v1.1.0
mindspore-ci-bot
Gitee
5 years ago
parent
9c38a63f18
4515e6d92d
commit
d67c54b0dc
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
mindspore/_extends/builtin_operations.py
+ 2
- 0
mindspore/_extends/builtin_operations.py
View File
@@ -157,6 +157,8 @@ def tuple_to_array(x):
def stop_gradient(x):
"""Implement `stop_gradient`."""
if isinstance(x, Tensor):
return Tensor(x.asnumpy())
return x
Write
Preview
Loading…
Cancel
Save