Replies: 1 comment
-
Hi deahhh, have you tried this test in an android device or linux os target? I am getting the same error with Mac OS target. I suspect nnapi execution provider is supported in only Android. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have built libonnxruntime.so.1.17.1 with command:
./build.sh --config MinSizeRel --minimal_build extended --use_nnapi --parallel --compile_no_warning_as_error --disable_ml_ops --disable_exceptions --build_shared_lib --skip_tests --include_ops_by_config ./deploy/onnx_models/required_operators.config --skip_submodule_sync --cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER
on linux amd64.
File
required_operators.config
is generated with commandpython -m onnxruntime.tools.convert_onnx_models_to_ort ./deploy/onnx_models --target_platform amd64 --optimization_style Runtime
.model.onnx is generated from pytorch:
Load the ort model with cpp, build and run:
I got error message as follow:
Comment
x = (x-x.mean())
will executes it correctly.Help! I have followed the instructions to the letter. And the ops used here are all listed in the page. What's WRONG with my code!
Beta Was this translation helpful? Give feedback.
All reactions