iVS3D v2.0.0
Loading...
Searching...
No Matches
NeuralNetFactory.h
Go to the documentation of this file.
1#pragma once
2
10#include "NeuralNet.h"
11#include "NeuralError.h"
12
13#include <memory>
14#include <string>
15#include <iostream>
16#include <tl/expected.hpp>
17
18namespace NN
19{
26 {
27 public:
40 static tl::expected<NeuralNetPtr, NeuralError> create(const std::string& modelPath, bool useGpu = false, int gpuId = 0);
41 };
42}
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