ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
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
12
namespace
reusex::vision::tensor_rt
{
13
15
struct
EngineBuildRequest
{
17
std::filesystem::path
onnx_path
;
19
std::filesystem::path
engine_path
;
22
sam3::EngineProfile
profile
;
23
};
24
29
class
EngineProfileError
:
public
std::runtime_error {
30
public
:
31
using
std::runtime_error::runtime_error;
32
};
33
44
std::filesystem::path
build_engine
(
const
EngineBuildRequest
&req);
45
46
}
// namespace reusex::vision::tensor_rt
reusex::vision::tensor_rt::EngineProfileError
A build that failed because the requested optimization profile does not fit the network's shapes (an ...
Definition
EngineBuilder.hpp:29
reusex::vision::tensor_rt
Definition
Backend.hpp:11
reusex::vision::tensor_rt::build_engine
std::filesystem::path build_engine(const EngineBuildRequest &req)
Build a serialized TensorRT engine from an ONNX file using nvonnxparser + IBuilder,...
reusex::vision::sam3::EngineProfile
Per-engine TensorRT build recipe, deserialized from engine-build.json.
Definition
EngineBuildProfiles.hpp:33
reusex::vision::tensor_rt::EngineBuildRequest
One ONNX → TensorRT engine build job.
Definition
EngineBuilder.hpp:15
reusex::vision::tensor_rt::EngineBuildRequest::profile
sam3::EngineProfile profile
Precision, workspace and optimization-profile shapes for this engine, taken verbatim from engine-buil...
Definition
EngineBuilder.hpp:22
reusex::vision::tensor_rt::EngineBuildRequest::onnx_path
std::filesystem::path onnx_path
Input ONNX graph (external weight files, if any, must sit beside it).
Definition
EngineBuilder.hpp:17
reusex::vision::tensor_rt::EngineBuildRequest::engine_path
std::filesystem::path engine_path
Output serialized engine (written atomically via a temp file + rename).
Definition
EngineBuilder.hpp:19
libs
reusex
include
vision
tensor_rt
common
EngineBuilder.hpp
Generated by
1.18.0