45 void Run(
const std::vector<Eigen::MatrixXf>& inputs,
46 Eigen::MatrixXf* output)
const override;
52 void SetState(
const std::vector<Eigen::MatrixXf>& states)
override;
58 void State(std::vector<Eigen::MatrixXf>* states)
const override;
NetModel is a base class for specific network model It contains a pure virtual function Run which mus...
RnnModel is a derived class from NetModel, it has a specific layers structure.
void State(std::vector< Eigen::MatrixXf > *states) const override
Access to the internal state of a network model
void Run(const std::vector< Eigen::MatrixXf > &inputs, Eigen::MatrixXf *output) const override
Compute the model output from inputs according to a defined layers' flow
void ResetState() const override
Set the internal state of a model
void SetState(const std::vector< Eigen::MatrixXf > &states) override
Set the internal state of a network model
#define DECLARE_SINGLETON(classname)