Safety Graph Initialization#
- nvinfer1::ErrorCode trt_edgellm::safety::createSafetyGraph(
- SafetyAttentionModules &modules,
- nvinfer2::safe::ITRTGraph *&graph,
- void const *engine,
- int64_t engineBytes,
- nvinfer2::safe::ISafeRecorder &graphRecorder,
- char const *companionSoPath
Register admitted plugins and bind the executor-owned modules while creating a graph. modules must be loaded before any other CUDA APIs and outlive the graph and its clones. The executor owns fixed IO/workspace, warmup, sealing, async error checks, and graph teardown. Registry operations and graph creation must be externally serialized. companionSoPath is the absolute path to the trusted companion .so built with the engine.