From 8138075ccad196b163e3e28cb4e2854c51f15455 Mon Sep 17 00:00:00 2001 From: Hector Li Date: Thu, 30 Jun 2022 15:18:54 -0700 Subject: [PATCH 1/2] update doc for snpe to reflect the API change --- c_cxx/Snpe_EP/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_cxx/Snpe_EP/README.md b/c_cxx/Snpe_EP/README.md index 2ec1cbbed..3adcb5d3c 100644 --- a/c_cxx/Snpe_EP/README.md +++ b/c_cxx/Snpe_EP/README.md @@ -47,8 +47,8 @@ std::vector options_keys = {"runtime", "buffer_type"}; std::vector options_values = {"CPU", "TF8"}; // set to TF8 if use quantized data - CheckStatus(g_ort, g_ort->SessionOptionsAppendExecutionProvider_SNPE(session_options, options_keys.data(), - options_values.data(), options_keys.size())); + CheckStatus(g_ort, g_ort->SessionOptionsAppendExecutionProvider(session_options, "SNPE", options_keys.data(), + options_values.data(), options_keys.size())); ``` Please refers to the unit test case [Snpe_ConvertFromAbs.QuantizedModelTf8Test](https://github.com/microsoft/onnxruntime/blob/5ecfaef042380995fb15587ccf6ff77f9d3a01d2/onnxruntime/test/contrib_ops/snpe_op_test.cc#L209-L251) for more details. From b78c6f9265549108d0453157e423a21fb6314707 Mon Sep 17 00:00:00 2001 From: Hector Li Date: Thu, 30 Jun 2022 15:22:22 -0700 Subject: [PATCH 2/2] minor change --- c_cxx/Snpe_EP/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_cxx/Snpe_EP/README.md b/c_cxx/Snpe_EP/README.md index 3adcb5d3c..9fa5251cd 100644 --- a/c_cxx/Snpe_EP/README.md +++ b/c_cxx/Snpe_EP/README.md @@ -47,8 +47,8 @@ std::vector options_keys = {"runtime", "buffer_type"}; std::vector options_values = {"CPU", "TF8"}; // set to TF8 if use quantized data - CheckStatus(g_ort, g_ort->SessionOptionsAppendExecutionProvider(session_options, "SNPE", options_keys.data(), - options_values.data(), options_keys.size())); + g_ort->SessionOptionsAppendExecutionProvider(session_options, "SNPE", options_keys.data(), + options_values.data(), options_keys.size()); ``` Please refers to the unit test case [Snpe_ConvertFromAbs.QuantizedModelTf8Test](https://github.com/microsoft/onnxruntime/blob/5ecfaef042380995fb15587ccf6ff77f9d3a01d2/onnxruntime/test/contrib_ops/snpe_op_test.cc#L209-L251) for more details.