• H
    [Cherry-pick] amp related PR cherry pick into Release/2.0 (#30212) · 9f7c66b4
    huangxu96 提交于
    * Optimizer trans momentum (#29597)
    
    * merge amp related function in Momentum from paddle.fluid.contrib.optimizer into paddle.optimizer.
    
    * Add unittest for 2.0  Momentum API.
    
    * fix some bugs in weight_decay.
    
    * add alias for fluid.contrib.mixed_precision (#29562)
    
    * add alias for fluid.contrib.mixed_precision
    
    * add static.amp into setup.pu.in (#29621)
    
    * add static.amp into setup.pu.in
    
    * add unittest for api
    
    * fix a bug in multi_precision_fp16 unittest. (#29756)
    9f7c66b4
fp16_utils.py 17.9 KB