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
!1286
Deleted the blank line
Merge pull request
!1286
from Kang/master
tags/v0.3.0-alpha
mindspore-ci-bot
Gitee
6 years ago
parent
aa1cee113d
66e5320b1b
commit
20478b574b
1 changed files
with
0 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
mindspore/model_zoo/Bert_NEZHA/bert_for_pre_training.py
+ 0
- 1
mindspore/model_zoo/Bert_NEZHA/bert_for_pre_training.py
View File
@@ -35,7 +35,6 @@ GRADIENT_CLIP_VALUE = 1.0
_nn_clip_by_norm = nn.ClipByNorm()
clip_grad = C.MultitypeFuncGraph("clip_grad")
@clip_grad.register("Number", "Number", "Tensor")
def _clip_grad(clip_type, clip_value, grad):
"""
Clip gradients.
Write
Preview
Loading…
Cancel
Save