[android_jni] Add missing builtin_ops_jni.cc (#8548)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Tue, 29 Oct 2019 00:51:37 +0000 (09:51 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 29 Oct 2019 00:51:37 +0000 (09:51 +0900)
This file should have been committed from #8026 but it was not added by
accident. Target `tensorflowlite_jni` would not build without this file.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/contrib/android_tflite/builtin_ops_jni.cc [new file with mode: 0644]

diff --git a/runtimes/contrib/android_tflite/builtin_ops_jni.cc b/runtimes/contrib/android_tflite/builtin_ops_jni.cc
new file mode 100644 (file)
index 0000000..af9d332
--- /dev/null
@@ -0,0 +1,29 @@
+/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
+   Copyright 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+==============================================================================*/
+
+#include "tensorflow/lite/kernels/register.h"
+#include "tflite/ext/kernels/register.h"
+
+namespace tflite
+{
+
+std::unique_ptr<OpResolver> CreateOpResolver()
+{
+  return std::unique_ptr<::nnfw::tflite::BuiltinOpResolver>(
+      new ::nnfw::tflite::BuiltinOpResolver());
+}
+
+} // namespace tflite