forked from tensorflow/similarity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve tensorflow#299 Fix WarmupCosineDecay.
* Previous version scaled the cosine decay by a linear warmup value. So the max value was max_lr*0.5*(1+cos(warmup_steps/total_steps*pi)) * New version has a linear warmup and then begins the cosine decay from cos(0.0) so the max value is now max_lr. * Previous version accepted a tensor of values, this is not needed. Simplified to accept a single scaler step value. * Updated tests to be consistent with the keras LearningRateSchedule tests. * Renamed class from WarmUpCosine to WarmupCosineDecay. This is more consistent with the Keras LearningRateSchedules.
- Loading branch information
1 parent
48eeaaf
commit c6d4700
Showing
2 changed files
with
185 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.