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
modernize Python in losses.py and its tests #47873
Conversation
There was a problem hiding this 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.
@zenogantner Can you please check @mihaimaruseac's comments and keep us posted ? Thanks! |
@zenogantner Can you please resolve conflicts? Thanks! |
object
.super()
calls.future
imports.six
..format()
with f-strings.