onnxruntime/onnxruntime/test
Chi Lo 21ef14476b
Bug fix for nested control flow ops for TRT EP (#16343)
Current TRT EP can support model which has nested control flow ops
(multiple level subgraphs). But it fails at a case where the subgraph
has outer scope value that is defined several levels up in the top-level
graph, in this case, the outer scope value is the input of the top-level
graph. The outer scope values are not properly handled during TRT EP's
subgraph reconstruction stage and fails at `graph.resolve()`.

The way ORT gets capability from EPs is a bottom-up approach meaning
inner most subgraph gets handled first. TRT EP reconstructs each
subgraph level by level and following modifications are made to fix the
outer scope values issue:

- `SetGraphOuterScopeValuesAndInputs()` and `SetAllGraphInputs()` are
added to handle outer scope values and add those values as graph inputs
if needed in order to make `graph.resolve()` happy.
- Change to use `GetNodeArgIncludingParentGraphs` so that when creating
the fused TRT node for some subgraphs in`
Graph::CreateFusedSubGraphNode()`, it can get the NodeArgs for outer
scope values from top-level graph.


This PR fixes https://github.com/microsoft/onnxruntime/issues/16217
2023-07-23 16:16:17 -07:00
..
common [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
contrib_ops [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
custom_op_registration Support custom ops taking float 8 tensors as inputs and outputs (#16323) 2023-07-06 14:36:06 +02:00
debug_node_inputs_outputs Separate out operator vs model testing. (#16228) 2023-06-17 12:58:57 +10:00
framework Fix bug with saving model optimized by inference session (#16716) 2023-07-20 18:44:28 -07:00
fuzzing Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
global_thread_pools Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
ir Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
logging_apis Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
mlas NhwcFusedConv: Add before Activation (#15837) 2023-05-08 21:02:35 -07:00
onnx [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
opaque_api Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
optimizer [QNN EP] Update QNN SDK to 2.12 (#16750) 2023-07-20 16:22:14 -07:00
perftest Enable -Wshorten-64-to-32 warning if available. (#16524) 2023-07-07 08:11:44 -07:00
platform Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
proto
providers [QNN EP] Op support: LayerNorm, Asin, Sign (#16740) 2023-07-20 20:57:48 -07:00
python Bug fix for nested control flow ops for TRT EP (#16343) 2023-07-23 16:16:17 -07:00
quantization remove AllocatorMgr class (#16509) 2023-06-28 15:43:19 -07:00
shared_lib RunAsync C/CXX API (#16613) 2023-07-16 16:51:40 -07:00
testdata Add support for training apis to support custom ops (#16601) 2023-07-14 11:15:51 -07:00
unittest_main [TensorRT EP] avoid excessive library load/unload overhead when running unit tests. (#15639) 2023-04-24 14:43:13 -07:00
util [QNN EP] Fix support of ArgMin and ArgMax on all QNN backends (#16731) 2023-07-18 14:50:24 -07:00
wasm Enable Web CI on Linux (#16419) 2023-06-22 15:42:58 +08:00
win_getopt Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
xctest Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00