geopm
3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
|
Class to manage data and operations of feed forward neural nets required for neural net inference. More...
#include <LocalNeuralNet.hpp>
Public Member Functions | |
virtual | ~LocalNeuralNet ()=default |
virtual TensorOneD | forward (const TensorOneD &inp) const =0 |
Perform inference using the instance weights and biases. More... | |
virtual size_t | get_input_dim () const =0 |
Get the dimension required for the input TensorOneD. More... | |
virtual size_t | get_output_dim () const =0 |
Get the dimension of the resulting TensorOneD. More... | |
TensorOneD | operator() (const TensorOneD &input) const |
Static Public Member Functions | |
static std::unique_ptr< LocalNeuralNet > | make_unique (std::vector< std::shared_ptr< DenseLayer > > layers) |
Returns a unique_ptr to a concrete object constructed using the underlying implementation from a vector of DenseLayers. More... | |
Class to manage data and operations of feed forward neural nets required for neural net inference.
|
virtualdefault |
|
pure virtual |
Perform inference using the instance weights and biases.
[in] | TensorOneD | vector of input signals. |
geopm::Exception | if input dimension is incompatible with network. |
Implemented in geopm::LocalNeuralNetImp.
|
pure virtual |
Get the dimension required for the input TensorOneD.
Implemented in geopm::LocalNeuralNetImp.
|
pure virtual |
Get the dimension of the resulting TensorOneD.
Implemented in geopm::LocalNeuralNetImp.
|
static |
Returns a unique_ptr to a concrete object constructed using the underlying implementation from a vector of DenseLayers.
[in] | Vector | of DenseLayers |
TensorOneD geopm::LocalNeuralNet::operator() | ( | const TensorOneD & | input | ) | const |