OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
opennn::profiler::Stats Struct Reference

#include <profiler.h>

Public Member Functions

void add (const std::string &key, double ms)
 
void clear ()
 
void print (std::ostream &os, const std::string &title, double total_ms=0.0) const
 

Public Attributes

std::map< std::string, double > times_ms
 
std::map< std::string, long > counts
 

Member Function Documentation

◆ add()

void opennn::profiler::Stats::add ( const std::string & key,
double ms )
inline

◆ clear()

void opennn::profiler::Stats::clear ( )
inline

◆ print()

void opennn::profiler::Stats::print ( std::ostream & os,
const std::string & title,
double total_ms = 0.0 ) const
inline

Member Data Documentation

◆ counts

std::map<std::string, long> opennn::profiler::Stats::counts

◆ times_ms

std::map<std::string, double> opennn::profiler::Stats::times_ms