6 #ifndef LOCALNEURALNET_HPP_INCLUDE
7 #define LOCALNEURALNET_HPP_INCLUDE
28 static std::unique_ptr<LocalNeuralNet>
make_unique(std::vector<std::shared_ptr<DenseLayer> > layers);
Class to manage data and operations of feed forward neural nets required for neural net inference.
Definition: LocalNeuralNet.hpp:20
virtual ~LocalNeuralNet()=default
virtual size_t get_input_dim() const =0
Get the dimension required for the input TensorOneD.
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 vect...
Definition: LocalNeuralNet.cpp:18
virtual size_t get_output_dim() const =0
Get the dimension of the resulting TensorOneD.
virtual TensorOneD forward(const TensorOneD &inp) const =0
Perform inference using the instance weights and biases.
TensorOneD operator()(const TensorOneD &input) const
Definition: LocalNeuralNet.cpp:73
Class to store and perform operations on 1D Tensors, aka vectors, suitable for use in feed-forward ne...
Definition: TensorOneD.hpp:21
Definition: Accumulator.cpp:12