#include <LocalNeuralNetImp.hpp>
|
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...
|
|
◆ LocalNeuralNetImp()
geopm::LocalNeuralNetImp::LocalNeuralNetImp |
( |
const std::vector< std::shared_ptr< DenseLayer > > |
layers | ) |
|
Constructor input from a vector of DenseLayers.
- Parameters
-
- Exceptions
-
geopm::Exception | if consecutive layer sizes are incompatible |
◆ forward()
Perform inference using the instance weights and biases.
- Parameters
-
- Exceptions
-
geopm::Exception | if input dimension is incompatible with network. |
- Returns
- Returns a TensorOneD vector of output values.
Implements geopm::LocalNeuralNet.
◆ get_input_dim()
size_t geopm::LocalNeuralNetImp::get_input_dim |
( |
| ) |
const |
|
overridevirtual |
◆ get_output_dim()
size_t geopm::LocalNeuralNetImp::get_output_dim |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: