From: 이한종/On-Device Lab(SR)/Engineer/삼성전자 Date: Tue, 29 Oct 2019 00:51:37 +0000 (+0900) Subject: [android_jni] Add missing builtin_ops_jni.cc (#8548) X-Git-Tag: submit/tizen/20191205.083104~533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=132fde9d9b99cdf479edc3cc512cfb91ba2f186c;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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