Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

总是出现I0427 15:28:48.800117 15154 FirstOrderOptimizer.cpp:321] parameter=___fc_layer_2__.wbias need clipping by local threshold=400, max grad=9.38485e+12, avg grad=8.67426e+10该怎么办

Open chenbblei opened this issue 8 years ago • 2 comments

如题,求大家帮助,学习率已经调的很小了,batch_size也很小

chenbblei avatar Apr 27 '18 07:04 chenbblei

@chenbblei 这是训练不稳定,触发了梯度截断引起的,如果模型在正常收敛,可以把gradient_clipping_threshold这个值设置大一点。如果模型没有正常收敛,请考虑用另外一组参数训练模型。

kuke avatar Apr 27 '18 07:04 kuke

已解决

chenbblei avatar May 03 '18 11:05 chenbblei