mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Enable xnnpack EP in Android AAR package (#12720)
* take new features to export symbols * comments to explain why
This commit is contained in:
parent
8483b9c6e3
commit
baf141a084
1 changed files with 4 additions and 1 deletions
|
|
@ -64,7 +64,10 @@ with open(args.output_source, "w") as file:
|
|||
# WinML adapter should not be exported in platforms other than Windows.
|
||||
# Exporting OrtGetWinMLAdapter is exported without issues using .def file when compiling for Windows
|
||||
# so it isn't necessary to include it in generated_source.c
|
||||
if c not in ("winml", "cuda", "migraphx", "snpe"):
|
||||
|
||||
# external symbols are removed, xnnpack ep will be created via the standard ORT API.
|
||||
# https://github.com/microsoft/onnxruntime/pull/11798
|
||||
if c not in ("winml", "cuda", "migraphx", "snpe", "xnnpack"):
|
||||
file.write("#include <core/providers/%s/%s_provider_factory.h>\n" % (c, c))
|
||||
file.write("void* GetFunctionEntryByName(const char* name){\n")
|
||||
for symbol in symbols:
|
||||
|
|
|
|||
Loading…
Reference in a new issue