Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #39462 #39728

Merged
merged 1 commit into from Nov 13, 2020
Merged

Fix #39462 #39728

merged 1 commit into from Nov 13, 2020

Conversation

ben-arnao
Copy link
Contributor

When using get_value to retrieve the value for LR, we receive a np.float32. However when we cast this to a python float, there are unwanted trailing significant digits added to our value that causes old_lr to never be exactly equal to our supplied min_lr, despite it being equal internally.

By leaving old_lr as it's original np.float32, and by casting our supplied min_lr to np.float32, we are now able to properly compare the values and the block of code should not be executed again after lr has been set to min_lr.

@google-ml-butler google-ml-butler bot added the size:XS CL Change Size: Extra Small label May 20, 2020
@gbaned gbaned self-assigned this May 21, 2020
@gbaned gbaned added the comp:keras Keras related issues label May 21, 2020
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation May 21, 2020
@gbaned gbaned requested a review from rchao May 21, 2020 03:33
@gbaned gbaned added the awaiting review Pull request awaiting review label May 27, 2020
@gbaned gbaned requested a review from omalleyt12 June 17, 2020 13:57
Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the PR, and sorry for the very long delay in reviewing.

PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Nov 12, 2020
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Nov 12, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Nov 12, 2020
@gbaned gbaned added ready to pull PR ready for merge process and removed awaiting review Pull request awaiting review ready to pull PR ready for merge process labels Nov 13, 2020
@copybara-service copybara-service bot merged commit 506164c into tensorflow:master Nov 13, 2020
PR Queue automation moved this from Approved by Reviewer to Merged Nov 13, 2020
@ben-arnao ben-arnao deleted the patch-2 branch December 1, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes comp:keras Keras related issues ready to pull PR ready for merge process size:XS CL Change Size: Extra Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

5 participants