microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.77k stars 2.94k forks source link

[TensorRT EP] Fix wrong input order when generating IndexedSubGraph #22857

Open chilo-ms opened 6 days ago

chilo-ms commented 6 days ago

The input order of generated indexedSubGraph needs to be consistent with the input order of original graph.

This PR will also fix the github issue https://github.com/microsoft/onnxruntime/issues/22729