Enable xnnpack EP in Android AAR package (#12720)

* take new features to export symbols

* comments to explain why
This commit is contained in:
Cheng 2022-08-26 10:29:23 +08:00 committed by GitHub
parent 8483b9c6e3
commit baf141a084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: