This commit is contained in:
wejoncy 2023-03-09 13:42:58 +08:00 committed by JiCheng
parent 5fe61c53a3
commit 8aeed1e87d
2 changed files with 1 additions and 4 deletions

View file

@ -32,6 +32,7 @@ limitations under the License.
#define NNAPI_LOG(format, ...) fprintf(stderr, format "\n", __VA_ARGS__);
namespace {
#ifdef __ANDROID__
int32_t GetAndroidSdkVersion() {
const char* sdkProp = "ro.build.version.sdk";

View file

@ -239,11 +239,7 @@ const NnApi LoadNnApi() {
}
} // namespace
namespace onnxruntime {
namespace nnapi {
const NnApi* NnApiImplementation() {
static const NnApi nnapi = LoadNnApi();
return &nnapi;
}
} // namespace nnapi
} // namespace onnxruntime