ONNX Runtime
Loading...
Searching...
No Matches
OrtNodeFusionOptions Struct Reference

The OrtNodeFusionOptions struct specifies options for fusing nodes supported by an execution provider. More...

#include <onnxruntime_ep_c_api.h>

Public Attributes

uint32_t ort_version_supported
 The ONNX Runtime version the OrtNodeFusionOptions was compiled with.
 
bool drop_constant_initializers
 If set to true, specify that the execution provider does not require ONNX Runtime to provide constant initializers as inputs to the fused node during model inference. This is used when the execution provider saves a copy of constant initializers, and allows ONNX Runtime to release constant initializers that are not used by any execution provider.
 

Detailed Description

The OrtNodeFusionOptions struct specifies options for fusing nodes supported by an execution provider.

Refer to OrtEpApi::EpGraphSupportInfo_AddNodesToFuse.

Since
Version 1.23.

Member Data Documentation

◆ drop_constant_initializers

bool OrtNodeFusionOptions::drop_constant_initializers

If set to true, specify that the execution provider does not require ONNX Runtime to provide constant initializers as inputs to the fused node during model inference. This is used when the execution provider saves a copy of constant initializers, and allows ONNX Runtime to release constant initializers that are not used by any execution provider.

If not specified, defaults to false. That is, ONNX Runtime provides constant initializers as inputs to the fused node by default.

Since
Version 1.23.

◆ ort_version_supported

uint32_t OrtNodeFusionOptions::ort_version_supported

The ONNX Runtime version the OrtNodeFusionOptions was compiled with.

Implementation should set to ORT_API_VERSION. ORT will use this to ensure it does not use members that were not available when the EP library was compiled.

Since
Version 1.23.