ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
Backend.hpp
Go to the documentation of this file.
1#pragma once
5
7/* TensorRTBackend is a concrete implementation of the IMLBackend interface for
8 * TensorRT. It provides methods to create TensorRT-based models and datasets.
9 */
11 public:
12 /* Constructor for TensorRTBackend. Initializes any necessary resources for
13 * the backend. In this case, it is a default constructor.
14 */
15 TensorRTBackend() = default;
16
17 /* Destructor for TensorRTBackend. Cleans up any resources allocated by the
18 * backend. In this case, it is a default destructor.
19 * @param: type - The type of model to create (not used in this
20 * implementation).
21 * @param: modelPath - The file path to the model to be created (not used in
22 * this implementation).
23 * @return: A unique pointer to an IModel instance representing the created
24 * model.
25 */
26 std::unique_ptr<IModel>
27 createModel(const Model type,
28 const std::filesystem::path &modelPath) override;
29
30 /* Creates a dataset based on the provided dataset path. This method is
31 * responsible for initializing and returning a dataset that can be used for
32 * training or inference. The dataset is created based on the specified path,
33 * which may contain the necessary data and configuration for the dataset.
34 * @param: datasetPath - The file path to the dataset to be created.
35 * @return: A unique pointer to an IDataset instance representing the created
36 * dataset.
37 */
38 std::unique_ptr<IDataset>
39 createDataset(const std::filesystem::path &datasetPath) override;
40};
41} // namespace ReUseX::vision::tensor_rt
std::unique_ptr< IModel > createModel(const Model type, const std::filesystem::path &modelPath) override
std::unique_ptr< IDataset > createDataset(const std::filesystem::path &datasetPath) override