提交 064d4213 编写于 作者: J Junkun

fix norm_by_batchsize

上级 91bc5959
...@@ -46,7 +46,7 @@ class CTCLoss(nn.Layer): ...@@ -46,7 +46,7 @@ class CTCLoss(nn.Layer):
if grad_norm_type == 'instance': if grad_norm_type == 'instance':
self.norm_by_times = True self.norm_by_times = True
if grad_norm_type == 'batch': if grad_norm_type == 'batch':
self.norm_by_times = True self.norm_by_batchsize = True
if grad_norm_type == 'frame': if grad_norm_type == 'frame':
self.norm_by_total_logits_len = True self.norm_by_total_logits_len = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册