Apache SINGA
A distributed deep learning platform .
|
Performance mtrics. More...
#include <common.h>
Public Member Functions | |
Metric (const std::string &str) | |
void | Add (const std::string &name, float value) |
Add one metric. More... | |
void | Add (const std::string &name, float value, int count) |
void | Reset () |
reset all metric counter and value to 0 | |
std::string | ToLogString () const |
Generate a one-line string for logging. | |
std::string | ToString () const |
Serialize the object into a string. | |
void | ParseFrom (const std::string &msg) |
Parse the metric from a string. | |
Performance mtrics.
void singa::Metric::Add | ( | const std::string & | name, |
float | value | ||
) |
Add one metric.
If the metric exist, the aggregate. Otherwise create a new entry for it.
name | metric name, e.g., 'loss' |
value | metric value |