• Haoyu Zhang's avatar
    Merged commit includes the following changes: (#7354) · dc4c5f1a
    Haoyu Zhang authored
    261171038  by gjn<gjn@google.com>:
    
        Remove weight_decay_rate 0 early exit check
    
        Removing this code path should be fine since this was actually not doing
        what it meant to do. Since weight_decay_rate is actually a tensor, the
        equality check was only looking at the id of the object and comparing to
        0. This should never be true. Evaluating a tensor is also not what we
        want to do at this point of the code. Thus it should be fine to simply
        remove this code.
    
    --
    261169862  by haoyuzhang<haoyuzhang@google.com>:
    
        Internal change
    
    261153520  by haoyuzhang<haoyuzhang@google.com>:
    
        Internal change
    
    261140302  by hongkuny<hongkuny@google.com>:
    
        Clean up
    
    --
    
    PiperOrigin-RevId: 261171038
    dc4c5f1a
optimization.py 6.59 KB