2 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _TFLITE_NATIVEWRAPPER_H_
18 #define _TFLITE_NATIVEWRAPPER_H_
20 #include "tensorflow/lite/kernels/register.h"
21 #include "tensorflow/lite/model.h"
22 #include "tensorflow/lite/string_util.h"
23 #include "tensorflow/lite/tools/mutable_op_resolver.h"
27 #endif /*__cplusplus*/
31 /** 32-bit signed integer. */
34 /** 32-bit single precision floating point. */
37 /** 8-bit unsigned integer. */
40 /** 64-bit signed integer. */
44 void tflite_interpreter_setNumThreads(long *interpreterHandle, int numThreads);
46 long long tflite_flatbuffermodel_BuildFromFile(char *modelPath);
48 long long tflite_builder_interpreterBuilder(long *modelHandle);
50 void *tflite_interpreter_run(long *interpreterHandle, void *values, int inputLength, int dataType);
54 #endif /*__cplusplus*/
56 #endif /*_TFLITE_NATIVEWRAPPER_H_*/