geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
Class ingesting region classification logits and a frequency map json file and determining a recommended frequency decision. More...
#include <RegionHintRecommenderImp.hpp>
Public Member Functions | |
RegionHintRecommenderImp (const std::string &fmap_path, int min_freq, int max_freq) | |
double | recommend_frequency (const std::map< std::string, double > &nn_output, double phi) const override |
Recommends frequency based on region classification logits. More... | |
Public Member Functions inherited from geopm::RegionHintRecommender | |
virtual | ~RegionHintRecommender ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from geopm::RegionHintRecommender | |
static std::unique_ptr< RegionHintRecommender > | make_unique (const std::string &fmap_path, int min_freq, int max_freq) |
Returns a unique_ptr to a concrete object constructed using the underlying implementation, which loads a frequency map file into a std::map of region class string to double, and sets both min and max frequency recommendations. More... | |
static std::shared_ptr< RegionHintRecommender > | make_shared (const std::string &fmap_path, int min_freq, int max_freq) |
Returns a shared_ptr to a concrete object constructed using the underlying implementation, which loads a frequency map file into a std::map of region class string to double, and sets both min and max frequency recommendations. More... | |
Class ingesting region classification logits and a frequency map json file and determining a recommended frequency decision.
geopm::RegionHintRecommenderImp::RegionHintRecommenderImp | ( | const std::string & | fmap_path, |
int | min_freq, | ||
int | max_freq | ||
) |
|
overridevirtual |
Recommends frequency based on region classification logits.
[in] | nn_output | List of region classification names and logits output from region class neural net |
[in] | phi | User-input perf-energy bias |
Implements geopm::RegionHintRecommender.