Class to load neural net from file, sample signals specified in that file, feed those signals into th...
Definition: DomainNetMap.hpp:22
static std::unique_ptr< DomainNetMap > make_unique(const std::string &nn_path, geopm_domain_e domain_type, int domain_index)
Returns a unique_ptr to a concrete object constructed using the underlying implementation which loads...
Definition: DomainNetMap.cpp:26
virtual std::map< std::string, double > last_output() const =0
Populates a map of trace names to the latest output from the neural net.
virtual std::vector< std::string > trace_names() const =0
generates the names for trace columns from the appropriate field in the neural net
virtual std::vector< double > trace_values() const =0
Populates trace values from last_output for each index within each domain type.
virtual void sample()=0
Samples latest signals for a specific domain and applies the resulting TensorOneD state to the neural...
static std::shared_ptr< DomainNetMap > make_shared(const std::string &nn_path, geopm_domain_e domain_type, int domain_index)
Returns a shared_ptr to a concrete object constructed using the underlying implementation which loads...
Definition: DomainNetMap.cpp:33
virtual ~DomainNetMap()=default