singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Kaiping (JIRA)" <>
Subject [jira] [Created] (SINGA-44) A bug when reseting metric values
Date Sun, 02 Aug 2015 15:07:04 GMT
Zheng Kaiping created SINGA-44:

             Summary: A bug when reseting metric values
                 Key: SINGA-44
             Project: Singa
          Issue Type: Bug
            Reporter: Zheng Kaiping

In /src/utils/, inside the loop of  "void Metric::Reset()" function, the reference
of entry needs to be reset instead of the variable.

for(auto e : entry_)
Fix the bug:
for(auto &e : entry_) 

If we use the previous reset method, the metric value is output as an average value for all
minibatches. Then even if we have set the frequency to output metrics in job.conf (which means
we need the average metric values every several minibatches), the output results are incorrect.
Therefore, the previous reset method causes invalid metric value resetting operation.

This message was sent by Atlassian JIRA

View raw message