mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-27 20:02:15 +00:00
[VITISAI] nested subgraph is unsupported for now (#17067)
### Description <!-- Describe your changes. --> return empty ComputeCapability when a graph contains nested subgraph. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> For now, our architecture does not support nested subgraph. So, we return empty ComputeCapability for this case.
This commit is contained in:
parent
1b081d51dc
commit
87285323e6
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ std::shared_ptr<KernelRegistry> VitisAIExecutionProvider::GetKernelRegistry() co
|
|||
std::vector<std::unique_ptr<ComputeCapability>>
|
||||
VitisAIExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph,
|
||||
const IKernelLookup& /*kernel_lookup*/) const {
|
||||
if (graph.IsSubgraph()) {
|
||||
// VITIS AI EP not support sungraph. Assigned to CPU.
|
||||
return {};
|
||||
}
|
||||
auto opt_str = info_.get_json_config_str(); // String
|
||||
execution_providers_ =
|
||||
std::make_unique<my_ep_t>(compile_onnx_model(graph, *GetLogger(), opt_str));
|
||||
|
|
|
|||
Loading…
Reference in a new issue