onnxruntime
3924b6e8 - [QNN EP] Update tensor naming logic in DebugNodeInputsOutputs (#26660)

Commit
131 days ago
[QNN EP] Update tensor naming logic in DebugNodeInputsOutputs (#26660) ### Description Introduced a new environment variable ORT_DEBUG_NODE_IO_PREPEND_EP_TO_FILE_NAME to control whether the Execution Provider (EP) type is prepended to tensor file names. Updated MakeTensorFileName() and related logic to include the EP type in the format: `<EPType>_<TensorName>` when the variable is set to a non-zero value. This change helps avoid file name conflicts and improves clarity when analyzing outputs from multi-EP runs. ### Motivation and Context Accuracy unit tests may run the same model multiple times using different EPs, such as ORT CPU and QNN HTP. Previously, dumped tensor files used identical names when tensor names matched across sessions, causing file overwrites. ### Example When ORT_DEBUG_NODE_IO_PREPEND_EP_TO_FILE_NAME=1, dumped tensors include EP-specific prefixes: ``` CPU_input.tensorproto CPU_input_token_0.tensorproto CPU_output.tensorproto QNN_constant.tensorproto QNN_input.tensorproto QNN_input_token_0.tensorproto QNN_output.tensorproto ```
Author
Parents
Loading