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

cov: add tests for ignite.metrics #1816

Merged
merged 13 commits into from
Mar 22, 2021
Merged

cov: add tests for ignite.metrics #1816

merged 13 commits into from
Mar 22, 2021

Conversation

ydcjeff
Copy link
Contributor

@ydcjeff ydcjeff commented Mar 18, 2021

Part of #1790

Description: Add tests / Removed unused code for ignite.metrics

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@github-actions github-actions bot added the module: metrics Metrics module label Mar 18, 2021
@@ -478,16 +478,6 @@ def __mod__(self, other: Any) -> "MetricsLambda":

return MetricsLambda(lambda x, y: x % y, self, other)

def __div__(self, other: Any) -> "MetricsLambda":
Copy link
Contributor Author

@ydcjeff ydcjeff Mar 18, 2021

Choose a reason for hiding this comment

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

These are only applicable to py2 : test

Comment on lines -188 to -189
else:
raise ValueError(f"multiref : wrong value (got : {self._multiref})")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is no need to catch. The same error has been caught above.

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 19, 2021

@ydcjeff, just a small though on saving computational resources while merging master to all PRs. When PR is approved we can update it once and then merge and avoid updating all PRs.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @ydcjeff !

@vfdev-5 vfdev-5 merged commit 75d816d into pytorch:master Mar 22, 2021
@ydcjeff ydcjeff deleted the metrics-cov branch March 22, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: metrics Metrics module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants