[TFLITE/RELOAD] Revise tflite sub-plugin to support model reloading
authorDongju Chae <dongju.chae@samsung.com>
Tue, 10 Dec 2019 11:34:15 +0000 (20:34 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 13 Dec 2019 04:40:19 +0000 (13:40 +0900)
commit9b43fe02f6224c74c682bf6f36e1d20ad4653297
tree49cbf97c7374ad5dcb0fa1a97585817ede78b11f
parentd2f37985b3fe8e36ca38ccf4c97ae361a5feb701
[TFLITE/RELOAD] Revise tflite sub-plugin to support model reloading

This commit revises tflite sub-plugin to support model reloading.

It implements new interpreter class with its own mutex, which wraps
existing codes. Also, it's designed to support interpreter swapping
to hide the overhead of model reloading.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite.c
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.cc
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.h
gst/nnstreamer/nnstreamer_plugin_api_filter.h