From 132fde9d9b99cdf479edc3cc512cfb91ba2f186c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 29 Oct 2019 09:51:37 +0900 Subject: [PATCH] [android_jni] Add missing builtin_ops_jni.cc (#8548) 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 --- runtimes/contrib/android_tflite/builtin_ops_jni.cc | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 runtimes/contrib/android_tflite/builtin_ops_jni.cc diff --git a/runtimes/contrib/android_tflite/builtin_ops_jni.cc b/runtimes/contrib/android_tflite/builtin_ops_jni.cc new file mode 100644 index 0000000..af9d332 --- /dev/null +++ b/runtimes/contrib/android_tflite/builtin_ops_jni.cc @@ -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 CreateOpResolver() +{ + return std::unique_ptr<::nnfw::tflite::BuiltinOpResolver>( + new ::nnfw::tflite::BuiltinOpResolver()); +} + +} // namespace tflite -- 2.7.4