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

modernize Python in losses.py and its tests #47873

Merged
merged 10 commits into from Mar 30, 2021

Conversation

zenogantner
Copy link
Contributor

  • Do not explicitly inherit from object.
  • Simplify super() calls.
  • Remove future imports.
  • Remove uses of six.
  • Replace .format() with f-strings.

@google-ml-butler google-ml-butler bot added the size:M CL Change Size: Medium label Mar 17, 2021
@google-cla google-cla bot added the cla: yes label Mar 17, 2021
@gbaned gbaned self-assigned this Mar 18, 2021
@gbaned gbaned added the comp:keras Keras related issues label Mar 18, 2021
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Mar 18, 2021
@gbaned gbaned self-requested a review March 18, 2021 03:46
Copy link

@deeb02 deeb02 left a comment

Choose a reason for hiding this comment

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

Thank you for the change. Some of the changes affect compatibility with Python 2.x, which was a constraint on us at some point. We'll double check if that is still the case or if we can go ahead apply these changes.
Aside from that, many of the changes in this PR, are stylistic and indentation changes. Please refrain from doing that unless there is a compelling reason.

PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Mar 23, 2021
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Mar 23, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Mar 23, 2021
@gbaned
Copy link
Contributor

gbaned commented Mar 24, 2021

@zenogantner Can you please check @mihaimaruseac's comments and keep us posted ? Thanks!

@gbaned gbaned removed the ready to pull PR ready for merge process label Mar 24, 2021
@gbaned
Copy link
Contributor

gbaned commented Mar 25, 2021

@zenogantner Can you please resolve conflicts? Thanks!

@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Mar 26, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Mar 26, 2021
@copybara-service copybara-service bot merged commit 9fde795 into tensorflow:master Mar 30, 2021
PR Queue automation moved this from Approved by Reviewer to Merged Mar 30, 2021
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:M CL Change Size: Medium
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

5 participants