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
commit
20478b574b
1 changed files with 0 additions and 1 deletions
  1. +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.


Loading…
Cancel
Save