onnxruntime
4aaf852f - [NvTensorRTRTX EP] Fix build breaks with TRT-RTX 1.5+ and 1.6+ (#28263)

Commit
7 days ago
[NvTensorRTRTX EP] Fix build breaks with TRT-RTX 1.5+ and 1.6+ (#28263) Four fixes for build breaks when compiling against TRT-RTX >= 1.5.0.95: 1. nv_execution_provider_custom_ops.cc: Migrate from removed getPluginCreatorList() to getAllCreators(), returning IPluginCreatorInterface* which requires dynamic_cast<IPluginCreator*> with a null check to skip V3 entries. 2. test_nv_trt_rtx_ep_util.cc: Replace onnxruntime::utils::SetRawDataInTensorProto (removed in ORT 1.25) with proto.set_raw_data() at 5 call sites. 3. nv_execution_provider.cc: Guard kSTRONGLY_TYPED enum usage behind #if (TRT_MINOR_RTX == 5 && TRT_BUILD_RTX >= 97) || TRT_MINOR_RTX >= 6 since the enum is marked TRT_DEPRECATED_ENUM starting 1.5.0.97. Use the equivalent literal value (1U) instead. 4. nv_execution_provider.h: Define SubGraph_t / SubGraphCollection_t behind #if TRT_MINOR_RTX >= 6 since these types were removed from NvOnnxParser.h in TRT-RTX 1.6.x. Also add #include <utility> and #include <vector> needed for the type definitions. All guards preserve backward compatibility with TRT-RTX 1.4.x and earlier. --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
Parents
Loading