ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
EngineBuilder.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include "reusex/vision/sam3/EngineBuildProfiles.hpp"
8
9#include <filesystem>
10#include <stdexcept>
11
13
17 std::filesystem::path onnx_path;
19 std::filesystem::path engine_path;
23};
24
29class EngineProfileError : public std::runtime_error {
30 public:
31 using std::runtime_error::runtime_error;
32};
33
44std::filesystem::path build_engine(const EngineBuildRequest &req);
45
46} // namespace reusex::vision::tensor_rt
A build that failed because the requested optimization profile does not fit the network's shapes (an ...
std::filesystem::path build_engine(const EngineBuildRequest &req)
Build a serialized TensorRT engine from an ONNX file using nvonnxparser + IBuilder,...
Per-engine TensorRT build recipe, deserialized from engine-build.json.
One ONNX → TensorRT engine build job.
sam3::EngineProfile profile
Precision, workspace and optimization-profile shapes for this engine, taken verbatim from engine-buil...
std::filesystem::path onnx_path
Input ONNX graph (external weight files, if any, must sit beside it).
std::filesystem::path engine_path
Output serialized engine (written atomically via a temp file + rename).