16#include <tl/expected.hpp>
40 static tl::expected<NeuralNetPtr, NeuralError>
create(
const std::string& modelPath,
bool useGpu =
false,
int gpuId = 0);
Defines error handling classes for the neural network module.
Contains the NeuralNet interface for neural network inference.
Factory class for creating NeuralNet instances. This abstracts from the underlying inference engine (...
Definition NeuralNetFactory.h:26
static tl::expected< NeuralNetPtr, NeuralError > create(const std::string &modelPath, bool useGpu=false, int gpuId=0)
Create a NeuralNet instance from a model file.
Definition NeuralNetFactory.cpp:4
NN Neural Network Library containing Tensor and NeuralNet classes for inference.
Definition NeuralError.h:13