Fork自 PaddlePaddle / Paddle
if all input grads are zero, the output of clip_by_norm will be inf or nan. This pr is used to fix this bug.
拖放文件到此处或点击上传