Repository navigation
Initial PR for NNAPI execution provider - #1220
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 19 pipeline(s), but failed to run 1 pipeline(s). |
| NnapiExecutionProvider::~NnapiExecutionProvider() {} | ||
|
|
||
| Status NnapiExecutionProvider::CopyTensor(const Tensor& src, Tensor& dst) const { | ||
| if (!(strcmp(src.Location().name, NNAPI) == 0 && strcmp(dst.Location().name, CPU) == 0) && |
There was a problem hiding this comment.
a separate PR will also come to solve the problem of asking execution provider to provide copy tensor function implementation. :).
|
/azp run |
|
Azure Pipelines successfully started running 19 pipeline(s), but failed to run 1 pipeline(s). |
5475ddc to
8a54abe
Compare
|
/azp run |
|
Azure Pipelines successfully started running 22 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 22 pipeline(s). |
| const std::vector<const KernelRegistry*>& /*kernel_registries*/) const { | ||
| // This method is based on that of TRT EP | ||
| // Construct modelproto from graph | ||
| onnxruntime::Model model(graph.Name(), true, ModelMetaData(), IOnnxRuntimeOpSchemaRegistryList(), graph.DomainToVersionMap()); |
There was a problem hiding this comment.
it's necessary to add a "ToProto()" interface in GraphViewer to avoid duplicating this kind of logic in every provider. Let me know if you want to do the refactoring or not, if no, I'll do it later (may after your check-in).
There was a problem hiding this comment.
I'd like to submit a sperate PR to refactor it :)
|
Thanks daquexian (@daquexian) ! The initial PR looks good to me. Please resolve the conflicts and let's monitor the CI a little bit to get all CI pass. |
|
/azp run |
|
Azure Pipelines successfully started running 22 pipeline(s). |
|
Ke Zhang (@linkerzhang) Win CPU x64 MKLML CI Pipeline is canceled due to timeout |
## Update OrtPerfTuning pass to accept data only using data_config ## Checklist before requesting a review - [x] Add unit tests for this change. - [x] Make sure all tests can pass. - [x] Update documents if necessary. - [x] Lint and apply fixes to your code by running `lintrunner -a` - [ ] Is this a user-facing change? If yes, give a description of this change to be included in the release notes. - [ ] Is this PR including examples changes? If yes, please remember to update [example documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md) in a follow-up PR. ## (Optional) Issue link
Related issue: #919
It is an initial PR for Android NNAPI execution provider. Currently the
GetSupportedNodesreturns the whole model if the model is supported or an empty vector if the model is unsupported. It will be improved soon.