Skip to content

Commit 7467c65

Browse files
committed
update as onnxruntime_ep_c_api.h changes
1 parent 6fd38c3 commit 7467c65

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

plugin_execution_providers/tensorrt/tensorrt_execution_provider.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,8 @@ OrtStatus* TensorrtExecutionProvider::CreateNodeComputeInfoFromGraph(OrtEp* this
14811481
}
14821482

14831483

1484-
OrtStatus* ORT_API_CALL TensorrtExecutionProvider::GetCapabilityImpl(OrtEp* this_ptr, const OrtGraph* graph, OrtEpGraphSupportInfo* graph_support_info) {
1484+
OrtStatus* ORT_API_CALL TensorrtExecutionProvider::GetCapabilityImpl(OrtEp* this_ptr, const OrtGraph* graph,
1485+
OrtEpGraphSupportInfo* graph_support_info) noexcept {
14851486
TensorrtExecutionProvider* ep = static_cast<TensorrtExecutionProvider*>(this_ptr);
14861487
const OrtApi& ort_api = ep->ort_api;
14871488

@@ -1751,7 +1752,7 @@ OrtStatus* ORT_API_CALL TensorrtExecutionProvider::CompileImpl(_In_ OrtEp* this_
17511752
_In_ const OrtNode** fused_nodes,
17521753
_In_ size_t count,
17531754
_Out_writes_all_(count) OrtNodeComputeInfo** node_compute_infos,
1754-
_Out_writes_(count) OrtNode** ep_context_nodes) {
1755+
_Out_writes_(count) OrtNode** ep_context_nodes) noexcept {
17551756

17561757
TensorrtExecutionProvider* ep = static_cast<TensorrtExecutionProvider*>(this_ptr);
17571758
const OrtApi& ort_api = ep->ort_api;
@@ -2228,7 +2229,7 @@ TensorrtExecutionProvider::TensorrtExecutionProvider(TensorrtExecutionProviderFa
22282229
}
22292230

22302231
void ORT_API_CALL TensorrtExecutionProvider::ReleaseNodeComputeInfosImpl(OrtEp* this_ptr, OrtNodeComputeInfo** node_compute_infos,
2231-
size_t num_node_compute_infos) {
2232+
size_t num_node_compute_infos) noexcept {
22322233
(void)this_ptr;
22332234
for (size_t i = 0; i < num_node_compute_infos; i++) {
22342235
delete node_compute_infos[i];

plugin_execution_providers/tensorrt/tensorrt_execution_provider.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,13 @@ struct TensorrtExecutionProvider : public OrtEp, public ApiPtrs {
313313
private:
314314
static const char* ORT_API_CALL GetNameImpl(const OrtEp* this_ptr) noexcept;
315315
static OrtStatus* ORT_API_CALL GetCapabilityImpl(OrtEp* this_ptr, const OrtGraph* graph,
316-
OrtEpGraphSupportInfo* graph_support_info);
316+
OrtEpGraphSupportInfo* graph_support_info) noexcept;
317317
static OrtStatus* ORT_API_CALL CompileImpl(_In_ OrtEp* this_ptr, _In_ const OrtGraph** graphs,
318318
_In_ const OrtNode** fused_nodes, _In_ size_t count,
319319
_Out_writes_all_(count) OrtNodeComputeInfo** node_compute_infos,
320-
_Out_writes_(count) OrtNode** ep_context_nodes);
320+
_Out_writes_(count) OrtNode** ep_context_nodes) noexcept;
321321
static void ORT_API_CALL ReleaseNodeComputeInfosImpl(OrtEp* this_ptr, OrtNodeComputeInfo** node_compute_infos,
322-
size_t num_node_compute_infos);
322+
size_t num_node_compute_infos) noexcept;
323323

324324
OrtStatus* CreateEpContextNodes(gsl::span<const OrtNode*> fused_nodes,
325325
/*out*/ gsl::span<OrtNode*> ep_context_nodes);

0 commit comments

Comments
 (0)