ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
EngineBuildProfiles.hpp File Reference
#include <filesystem>
#include <map>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for EngineBuildProfiles.hpp:

Go to the source code of this file.

Classes

struct  reusex::vision::sam3::EngineProfile
 Per-engine TensorRT build recipe, deserialized from engine-build.json. More...
struct  reusex::vision::sam3::EngineProfile::ShapeProfile
 Min / opt / max dimensions for one dynamic (or static) input tensor. More...
struct  reusex::vision::sam3::EngineBuildProfiles
 The full set of per-engine build recipes. More...

Namespaces

namespace  reusex
namespace  reusex::vision
namespace  reusex::vision::sam3

Functions

std::optional< EngineProfile > reusex::vision::sam3::text_only_fallback (const std::string &engine_name, const EngineProfile &profile)
 The text-only fallback for an engine whose geometry-prompt profile cannot be built: an export that bakes the prompt length or box count into its graph (the TorchScript exporter can constant-fold the trace shape) builds only at that shape.
std::optional< std::string > reusex::vision::sam3::profile_shape_conflict (const std::vector< long long > &network_dims, const EngineProfile::ShapeProfile &profile)
 Why an optimization profile cannot apply to a network input whose dims are network_dims (-1 = dynamic): a rank mismatch, or a static dim the profile's min or max does not equal.
bool reusex::vision::sam3::is_shape_build_error (const std::vector< std::string > &builder_errors)
 Whether a failed TensorRT build's error messages point at the profile's shapes (a dimension, reshape or profile error) rather than at resources: any message about memory, allocation or disk makes it a resource failure.

Variables

constexpr int reusex::vision::sam3::kGeometryTraceBoxes = 8
 The box count the in-repo exporter traces the geometry encoder at (export_detector.GEOM_NUM_BOXES, tied to build_engines.GEOM_MAX_BOXES).