-
Notifications
You must be signed in to change notification settings - Fork 411
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
Refactor: allow reduction None #891
Conversation
for more information, see https://pre-commit.ci
…ing/metrics into refactor/reduction
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #891 +/- ##
=====================================
Coverage 95% 95%
=====================================
Files 167 167
Lines 6933 6947 +14
=====================================
+ Hits 6589 6603 +14
Misses 344 344 |
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.
qq: Is there any difference between
Literal["elementwise_mean", "sum", "none", None]
and
Optional[Literal["elementwise_mean", "sum", "none"]
?
it is the same, just had a feeling that less bracket depth makes it easier to read :) |
* allow reduction None * Literal Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
What does this PR do?
Just to be consistent with other reduction options
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃