pytroch 模型设置成half后,使用Adam,loss出现 2019-06-29 本文已影响0人 zhenggeaza 解决办法: eps 改为 1e-4 (默认的1e-8在half下会round成0,除以0时会出现Nan)