[Refactor] Delegate tfNode creation to exporter
authorJihoon Lee <jhoon.it.lee@samsung.com>
Thu, 29 Apr 2021 06:31:33 +0000 (15:31 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 8 Jun 2021 05:35:55 +0000 (14:35 +0900)
commit8b18e9b421b0516a074ba358494760f731360ee5
tree631b7840c2c4fc1d1dafe17854c5d6f20eb93c47
parente69446d4b8f8d0b3168760b3386d8715d3b381f5
[Refactor] Delegate tfNode creation to exporter

This patch enables delegating exporting logic to exporter.
Note that this is supposed to be 1:1 mapping, if it has to be m:n
mapping, it should be directly handled by the interpreter, which
actually can see the node.

Also s/`save_result`/`saveResult` and `get_result`/`getResult`

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
[Android] Add tflite interpreter option

This patch add tflite interpreter option to ndk build

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
jni/Android.mk
nntrainer/compiler/ini_interpreter.cpp
nntrainer/compiler/tflite_interpreter.cpp
nntrainer/compiler/tflite_opnode.cpp
nntrainer/compiler/tflite_opnode.h
nntrainer/layers/fc_layer.cpp
nntrainer/layers/layer_internal.h
nntrainer/utils/node_exporter.cpp
nntrainer/utils/node_exporter.h
test/unittest/compiler/unittest_interpreter.cpp
test/unittest/unittest_base_properties.cpp