pytorch / torcheval

A library that contains a rich collection of performant PyTorch model metrics, a simple interface to create new metrics, a toolkit to facilitate metric computation in distributed training and tools for PyTorch model evaluations.
https://pytorch.org/torcheval
Other
211 stars 46 forks source link

Update reset to handle float/int types #174

Closed ananthsub closed 1 year ago

ananthsub commented 1 year ago

Summary: With https://github.com/pytorch/torcheval/pull/158, we need to properly reset float/int types in reset as well

Reviewed By: JKSenthil

Differential Revision: D48366994

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D48366994

codecov[bot] commented 1 year ago

Codecov Report

Merging #174 (9747ecb) into main (83ae20a) will decrease coverage by 0.05%. The diff coverage is 10.34%.

@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
- Coverage   24.71%   24.67%   -0.05%     
==========================================
  Files         173      173              
  Lines        9892     9921      +29     
==========================================
+ Hits         2445     2448       +3     
- Misses       7447     7473      +26     
Files Changed Coverage Δ
torcheval/metrics/metric.py 57.77% <0.00%> (-2.00%) :arrow_down:
tests/metrics/test_metric.py 11.81% <11.53%> (-0.04%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more