Implement LossScaleOptimizer.
Loss scaling is necessary for mixed precision training when using float16. This change only implements fixed loss scaling, and dynamic loss scaling will come in a future change.
Co-authored-by:
James Qin <jamesqin@google.com>
PiperOrigin-RevId: 236948980
Loading
Please sign in to comment