platform/core/ml/nnfw.git
6 years agoRemove CXX_STANDARD workaround (#1405)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 29 May 2018 22:33:08 +0000 (07:33 +0900)]
Remove CXX_STANDARD workaround (#1405)

* Remove CXX_STANDARD workaround

CXX_STANDARD is no longer necessary as the minimum required version of
CMake is 3.1 (which supports CXX_STANDARD feature).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Apply the same change to 'libs/kernel/acl/CMakeLists.txt'

6 years ago[Pure CL runtime] Add symbolcheck test (#1397)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 29 May 2018 11:09:00 +0000 (20:09 +0900)]
[Pure CL runtime] Add symbolcheck test (#1397)

This commit introduces 'pure_arm_compute_symbolcheck' executable which
allows us to detect undefined references in pure CL runtimes during
build.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoRevert "Update validation in runtime (#1351)" (#1406)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 29 May 2018 05:51:07 +0000 (14:51 +0900)]
Revert "Update validation in runtime (#1351)" (#1406)

This reverts commit 86bbecea1fce90cac87a40782900eb24ff09db95.

PR #1351 caused many test failures, which were not noticed by our CI.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoUpdate validation in runtime (#1351)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 29 May 2018 02:01:53 +0000 (11:01 +0900)]
Update validation in runtime (#1351)

This commit updates validation in runtime.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoInstall arm_compute_XXX and libnueralnetworks.so on pure_arm_compute … (#1393)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 29 May 2018 01:25:00 +0000 (10:25 +0900)]
Install arm_compute_XXX and libnueralnetworks.so on pure_arm_compute … (#1393)

* Install arm_compute_XXX and libnueralnetworks.so on pure_arm_compute build

1. On pure_arm_compute runtime build, install arm_compute_XXX.so into lib
2. DO NOT build NN Runtime if BUILD_ACL=ON

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Add option BUILD_PURE_ARM_COMPUTE and change install dir

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Remove `BUILD_NN_RUNTIME` option off

Since pure_acl_compute runtime is installed to lib/pureacl, we do not need turn
off option BUILD_NN_RUNTIME.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Apply suggestion

In summary,
1. install arm_compute_xxx to lib
2. install libnn.so to lib/pureacl

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoConvert TF Lite's DIV to NN API's (#1398)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 29 May 2018 01:22:40 +0000 (10:22 +0900)]
Convert TF Lite's DIV to NN API's (#1398)

For #1199 and #1366

This commit links TF Lite's DIV operation to NN API's.  It also enables
the Div test in the framework test.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years ago[pure_arm_compute] Fix no return value (Context &) (#1396)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 29 May 2018 00:47:33 +0000 (09:47 +0900)]
[pure_arm_compute] Fix no return value (Context &) (#1396)

`Context::set()` is non-void but did not return a value.
Make it to return `*this`.

Similar to #1382

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoEnable SUB NNAPI delegation and SUB broadcast test (#1394)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 29 May 2018 00:47:11 +0000 (09:47 +0900)]
Enable SUB NNAPI delegation and SUB broadcast test (#1394)

Tensorflow is updated to v.1.8 so we can run SUB broadcast.
I pave the way to NN runtime for Sub, (It's same to ADD.)
and enabled the corresponding test.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoIntroduce 'Tensorflow' package (#1387)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 11:13:50 +0000 (20:13 +0900)]
Introduce 'Tensorflow' package (#1387)

This commit introduces 'Tensorflow' package which allows users to use
externally built libtensorflow-core.a as if CMake targets.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoMake Tensorflow Lite calls MUL CPU fallback (#1360)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 May 2018 10:43:11 +0000 (19:43 +0900)]
Make Tensorflow Lite calls MUL CPU fallback (#1360)

1. Modified `NNAPIDelegate` to build graph with `MUL`
2. Test with ADAS 'MUL' graph by nnapi_test

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoUpdate TensorFlow submodule to v1.8 (#1388)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 08:32:50 +0000 (17:32 +0900)]
Update TensorFlow submodule to v1.8 (#1388)

For #1383

This patch updates the submodule hash for TensorFlow to v1.8 branch in
RS7-STAR/Tensorflow.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoInclude model.h in nnapi_delegate.cpp (#1386)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 07:27:21 +0000 (16:27 +0900)]
Include model.h in nnapi_delegate.cpp (#1386)

For #1383

Although TF Lite's `nnapi_delegate.cc` includes
`tensorflow/contrib/lite/model.h`, our nnapi_delegate.cpp did not
include `model.h` because we were able to compile `nnapi_delegate.cpp`
without the header file.  However, it is not the case with the latest
TensorFlow v1.8, which we will be using soon.  This patch is to prevent
the build failure that could be caused by not including `model.h` when
building with TensorFlow v1.8.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoIntroduce nnfw's BuiltinOpResolver (#1384)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 07:19:56 +0000 (16:19 +0900)]
Introduce nnfw's BuiltinOpResolver (#1384)

For issue #1383

This patch introduces our own BuiltinOpResolver, which is basically
copied from externals/tensorflow, in order to manage which builtin
operators in TF Lite are used with nnfw.

To only use nnfw's BuiltinOpResolver, this patch also excludes
register.cc in externals/tensorflow from the TF Lite build.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years ago[pure_arm_compute] Fix no return value (#1382)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 28 May 2018 07:09:16 +0000 (16:09 +0900)]
[pure_arm_compute] Fix no return value (#1382)

`Sequence::emplace_back()` is non-void but did not return a variable.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[Pure CL runtime] Fix undefined references (#1380)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 06:31:22 +0000 (15:31 +0900)]
[Pure CL runtime] Fix undefined references (#1380)

This commit fixes undefined reference issues on pure CL runtime.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoInclude cstring for memcpy (#1378)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 05:35:42 +0000 (14:35 +0900)]
Include cstring for memcpy (#1378)

This patch adds `#include <cstring>` to tensor_dumper.cc, since `memcpy`
is used in the file.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoAdd Extended NNAPI shim header (#1365)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 05:35:23 +0000 (14:35 +0900)]
Add Extended NNAPI shim header (#1365)

* Add Extended NNAPI shim header

Add Extended NNAPI shim header. This header includes
ANEURALNETWORKS_STRIDED_SLICE_EX = 50005

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoInclude cassert in Diff.cpp (#1377)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 04:33:05 +0000 (13:33 +0900)]
Include cassert in Diff.cpp (#1377)

This patch adds `#include <cassert>` to Diff.cpp, since `assert()` is
used in the file.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoIntroduce 'nnfw_find_package' (#1372)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 04:32:49 +0000 (13:32 +0900)]
Introduce 'nnfw_find_package' (#1372)

This commit introduces 'nnfw_find_package' macro which allows users to
write and use nnfw-internal CMake modules (similarly as modules provided
via find_package).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoUse nnfw-internal NNAPIDelegate (#1370)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 04:11:38 +0000 (13:11 +0900)]
Use nnfw-internal NNAPIDelegate (#1370)

This commit revises NNAPISession to use nnfw-internal NNAPIDelegate.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd tensorflow-based 'detection' example (#1368)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 04:10:33 +0000 (13:10 +0900)]
Add tensorflow-based 'detection' example (#1368)

This commit adds 'detection' sample app which loads T/F model (which
takes 1x320x320x3 input whose name is 'input_node') and measures elapsed
time for 5 runs.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoUse common benchmark framework (#1371)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 04:07:48 +0000 (13:07 +0900)]
Use common benchmark framework (#1371)

Thsi commit revises tflite_run and tflite_benchmark to use common
benchmark framework.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoDo NOT install libtensorflow-lite.a (#1375)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 04:06:45 +0000 (13:06 +0900)]
Do NOT install libtensorflow-lite.a (#1375)

libtensrflow-lite.a is used only during nnfw build.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years ago[Pure CL runtime] Support general reshape (#1353)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 02:39:55 +0000 (11:39 +0900)]
[Pure CL runtime] Support general reshape (#1353)

* [Pure CL runtime] Support general reshape

This commit removes height/width restriction on reshape operation in
pure CL runtime.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoMove to CMake 3.1 (#1369)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 02:28:51 +0000 (11:28 +0900)]
Move to CMake 3.1 (#1369)

This commit requires CMake 3.1 as minimum required CMake version for
nnfw.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoOperator selector: support topk_v2 and gather (#1361)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 28 May 2018 01:35:57 +0000 (10:35 +0900)]
Operator selector: support topk_v2 and gather (#1361)

Support topk_v2 and gather operator

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoShow every tensor diffs (#1356)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 10:17:49 +0000 (19:17 +0900)]
Show every tensor diffs (#1356)

* Show every tensor diffs

This commit revises TfLiteInterpMatchApp to show all the tensor matching
results even when there are unmatched tensors.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd topk_v2 and gather framework test (#1362)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 09:18:08 +0000 (18:18 +0900)]
Add topk_v2 and gather framework test (#1362)

Add topk_v2 and gather framework test

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agomake extern C for extended NNAPI (#1336)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 08:55:32 +0000 (17:55 +0900)]
make extern C for extended NNAPI (#1336)

* make extern C for extended NNAPI

Add __BEGIN_DECLS for extended NNAPI

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAllow build contrib projects when BUILD_LABS is on (#1352)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 08:54:55 +0000 (17:54 +0900)]
Allow build contrib projects when BUILD_LABS is on (#1352)

This commit revises contrib/CMakeLists.txt to allow users to build
contrib porjects other than bindacl, convacl, and kerneltesting even
when BUILD_LABS is on.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce 'tflite::Session' interface (#1350)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 08:53:15 +0000 (17:53 +0900)]
Introduce 'tflite::Session' interface (#1350)

* Introduce 'tflite::Session' interface

This commit introduces 'nnfw::support::tflite::Session' which abstracts
how we run inference (either via pure T/F Lite interpreter, or via NN
runtime).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoelementwise 'MUL' NEON kernel (#1337)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 May 2018 08:50:30 +0000 (17:50 +0900)]
elementwise 'MUL' NEON kernel (#1337)

In this commit,
1. elementwise 'MUL' NEON kernel is added
2. refactored elementwise 'MUL' *CL* kernel
3. tests for both NEON and CL kernel were added

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoAdd CPU fallback for DIV and SUB (#1349)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 May 2018 07:27:27 +0000 (16:27 +0900)]
Add CPU fallback for DIV and SUB (#1349)

DIV and SUB implementation is copied from tensoflow lite.
Since old version tensorflow lite does not support DIV and SUB broadcasting,
I brought those implementation from recent one(`7ad3964`)

Related issue: #1229

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoUse NNAPIDelegate implemented in nnfw (#1348)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 04:10:53 +0000 (13:10 +0900)]
Use NNAPIDelegate implemented in nnfw (#1348)

* Use NNAPIDelegate implemented in nnfw

This commit introduces nnfw::NNAPIDelegate derived from tflite::NNAPIDelegate,
and revises NN API tests to use derived NNAPIDelegate to invoke NNAPI.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Add NeuralNetworksShim.h

* Update license notice

6 years agoEnable `toString()` to print struct, class and enum in `V1_0/types.h` (#1341)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 25 May 2018 01:56:34 +0000 (10:56 +0900)]
Enable `toString()` to print struct, class and enum in `V1_0/types.h` (#1341)

This commit enables `toString()` to print struct, class and enum in `V1_0/types.h`.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoFix android build bug (#1340)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 00:30:10 +0000 (09:30 +0900)]
Fix android build bug (#1340)

Fix android build bug in CMakefile.txt

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[ADD] make nnapi call [cl | neon]/addFloat32 (#1339)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 May 2018 00:29:52 +0000 (09:29 +0900)]
[ADD] make nnapi call [cl | neon]/addFloat32 (#1339)

Make nnapi call `addFloat32` `cl/neon` kernel
by adding code to check `NNFW_KERNEL_addFloat32` environment variable.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoOperator selector: use operator range (#1327)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 25 May 2018 00:26:30 +0000 (09:26 +0900)]
Operator selector: use operator range (#1327)

Can use operators' range instead of write each operator's index

ex. 1 2 3 4 5 10 => 1-5 10

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd explanation for building tizen package using docker (#1331)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 May 2018 00:25:55 +0000 (09:25 +0900)]
Add explanation for building tizen package using docker (#1331)

- How to pull docker image for tizen gbs build
- How to build tizen package using docker

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAdd NN tests skip list for armv7l-tizen (#1335)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 May 2018 23:49:13 +0000 (08:49 +0900)]
Add NN tests skip list for armv7l-tizen (#1335)

Skip list for armv7l-tizen is same to one for armv7l-linux.

Related Issue: #1272

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAddOperationEx supports extended DIV, SUB, STRIDED_SLICE (#1333)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 11:36:43 +0000 (20:36 +0900)]
AddOperationEx supports extended DIV, SUB, STRIDED_SLICE (#1333)

1. add DIV, SUB enum to OperationType
 - cf) There is no implementaion for DIV and SUB
2. add function mapping extended op to OperationType

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd STRIDED_SLICE_EX test to generated test (#1332)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 07:59:28 +0000 (16:59 +0900)]
Add STRIDED_SLICE_EX test to generated test (#1332)

1. add python generator for strided slice ex
2. add generated cpp

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years ago[CL/NEON Kernel] add ADD operation to add two matrixes (#1305)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 May 2018 07:55:37 +0000 (16:55 +0900)]
[CL/NEON Kernel] add ADD operation to add two matrixes (#1305)

- adds code for two matrix addition
- 2D, 3D, 4D addition
- future work: broadcasting support and 5D
(parent issue: #1288)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoIntroduce new runtime based on pure_acl_runtime (#1325)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 24 May 2018 07:54:54 +0000 (16:54 +0900)]
Introduce new runtime based on pure_acl_runtime (#1325)

Related : #1306

This commit introduces new runtime based on pure_acl_runtime.
When the implementation of this runtime is done, we can replace the current `nn` runtime.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd the CAST_EX operation performed as CPU fall-back (#1300)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 24 May 2018 07:51:52 +0000 (16:51 +0900)]
Add the CAST_EX operation performed as CPU fall-back (#1300)

This commit adds the CAST_EX operation performed as CPU fall-back
    - The cast_EX operation is implemented by referring to the tflite's code.
    - The test code for this OP is changed to a test without activation.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years ago[NNAPI unittest] Add 'resize_bilinear_1' (#1321)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 06:16:13 +0000 (15:16 +0900)]
[NNAPI unittest] Add 'resize_bilinear_1' (#1321)

* [NNAPI unittest] Add 'resize_bilinear_1'

This commit adds 'resize_bilinear_1' unittest which allows us to
experiments with various resize configurations.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years ago[NNAPI unittest] Add 'add_1' (#1317)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 06:15:07 +0000 (15:15 +0900)]
[NNAPI unittest] Add 'add_1' (#1317)

* Introduce 'add_1' NNAPI unittest

This commit introduces 'add_1' NN API unittest, which allows folks to
experiments with various 4D tensor configuration.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoGit ignore format.path (#1330)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 06:13:45 +0000 (15:13 +0900)]
Git ignore format.path (#1330)

Ignore format.path file generated by format checker

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd option to control parallel build (#1328)
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 May 2018 06:13:13 +0000 (15:13 +0900)]
Add option to control parallel build (#1328)

- add shell variable PARALLEL_BUILD with default value 1
- `PARALLEL_BUILD=0 make xxx` disables parallel build

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
6 years ago[Pure CL Runtime] Support 'RESIZE_BILINEAR' operation (#1326)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 06:12:43 +0000 (15:12 +0900)]
[Pure CL Runtime] Support 'RESIZE_BILINEAR' operation (#1326)

This commit implements 'RESIZE_BILINEAR' operation support in pure CL
runtime.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoOperator selector: slim operator table (#1309)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 06:11:12 +0000 (15:11 +0900)]
Operator selector: slim operator table (#1309)

Modify operator table from source model file
Generated model file's operator table has only used operators

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoEnable framework test for RESIZE_BILINEAR (#1324)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 04:49:35 +0000 (13:49 +0900)]
Enable framework test for RESIZE_BILINEAR (#1324)

- Enable framework test for RESIZE_BILINEAR

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoAdd STRIDE_SLICE,DIV,SUB as extended op (#1320)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 04:42:26 +0000 (13:42 +0900)]
Add STRIDE_SLICE,DIV,SUB as extended op (#1320)

1. add  DIV,SUB,STRIDED_SLICE to extended
op.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years ago[Pure CL Runtime] Support 'ADD' operation (#1318)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 03:55:44 +0000 (12:55 +0900)]
[Pure CL Runtime] Support 'ADD' operation (#1318)

This commit implements 'ADD' operation support in pure CL runtime.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd CAST_EX to the skip list (#1313)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 24 May 2018 03:47:18 +0000 (12:47 +0900)]
Add CAST_EX to the skip list (#1313)

This commit adds `CAST_EX` to the skip list.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years ago[Gather Op] add Gather-2D operation test (#1296)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 May 2018 02:35:47 +0000 (11:35 +0900)]
[Gather Op] add Gather-2D operation test (#1296)

This commit introduces a test for Gather-2D operation.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoRemove android dependency in TestValidation (#1316)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 24 May 2018 02:15:22 +0000 (11:15 +0900)]
Remove android dependency in TestValidation (#1316)

* Remove android dependency in TestValidation

This commit removes android dependency in TestValidation test.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoUpdate external/tensorflow to the latest nnfw branch (#1319)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 24 May 2018 02:14:20 +0000 (11:14 +0900)]
Update external/tensorflow to the latest nnfw branch (#1319)

- Update external/tensorflow to the latest nnfw branch
- Added one PR
  Implement RESIZE_BILINEAR using NN API
  https://github.sec.samsung.net/RS7-STAR/Tensorflow/pull/37

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years ago[Gather Op] update gather operation to support Gather-2D operation (#1295)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 May 2018 01:50:21 +0000 (10:50 +0900)]
[Gather Op] update gather operation to support Gather-2D operation (#1295)

* [Gather Op] Update outputshape's dimension to support Gather-2D

This commit updates gather operation to support Gather-2D operation in optimized_op file and
outputshape's dimension to support Gather-2D in gatherPrepare.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago[Topk_v2 Op] introduce topk_v2 test cases (#1304)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 May 2018 00:51:19 +0000 (09:51 +0900)]
[Topk_v2 Op] introduce topk_v2 test cases (#1304)

* [Topk_v2 Op] introduce topk_v2 test cases

This commit introduces topk_v2 test cases.
-1D float
-2D float

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Topk_v2 Op] add new line at the end of line

This commit adds new lines at the end of line

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago[ADD Op] enabled nnapi_test (#1311)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 May 2018 23:52:15 +0000 (08:52 +0900)]
[ADD Op] enabled nnapi_test (#1311)

This commit enables nnapi_test for ADD operation to add 4D matrixes

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoDisable submodule update in Makefile (#1310)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 23:37:33 +0000 (08:37 +0900)]
Disable submodule update in Makefile (#1310)

Disable submodule update in Makefile
It will be useful to test submodule's PR

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[Gather OP] add gather operation to nn runtime unittest (#1260)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 May 2018 23:34:27 +0000 (08:34 +0900)]
[Gather OP] add gather operation to nn runtime unittest (#1260)

* [Gather OP] add gather operation to nn runtime unittest

This commit adds gather operation to nn runtime unittest.
-gather 1-dimension test

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Modify addOperation to support the new extended structure

-modify addOperation to addOpeationEx
-move gather operation file from V1.1 to Ex

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoTFLiteSharp: Added methods to create model and build interpreter (#1221)
Saurav Babu/Advanced SW Team/Engineer/삼성전자 [Wed, 23 May 2018 23:32:48 +0000 (05:02 +0530)]
TFLiteSharp: Added methods to create model and build interpreter (#1221)

* TFLiteSharp: Added methods to create model and build interpreter

This commit contains addition of 3 function definition in native code
for creating a flatbuffer model, building an interpreter instance and
setting the number of threads. The respective changes are also made in
C# code along with the addition of interop functions for shared
library(libtflite-native.so) runtime linkage. Also included are some
modification in build system, specifically adding the manifest file.

Signed-off-by: kshitiz-b <kshitiz.b@samsung.com>
6 years ago[TopK_v2] introduce topk_v2 operation (#1301)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 May 2018 07:38:50 +0000 (16:38 +0900)]
[TopK_v2] introduce topk_v2 operation (#1301)

* [TopK_v2] introduce topk_v2 operation

This commits introduces topk_v2 operation.
-currently, for float

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoInstall OpenCL package for arm rootfs (#1307)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 23 May 2018 07:03:21 +0000 (16:03 +0900)]
Install OpenCL package for arm rootfs (#1307)

Install OpenCL package for arm rootfs

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[CL kernel] element-wise mul (#1285)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 May 2018 04:25:26 +0000 (13:25 +0900)]
[CL kernel] element-wise mul (#1285)

This commit introduces element-wise mul for mali GPU.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoTFLiteFile tool: fix stride_slice bug (#1299)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 04:24:28 +0000 (13:24 +0900)]
TFLiteFile tool: fix stride_slice bug (#1299)

Fix stride_slice option generation bug

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd STRIDED_SLICE CPU fall-back (#1297)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 04:11:20 +0000 (13:11 +0900)]
Add STRIDED_SLICE CPU fall-back (#1297)

Issue: #1237
1. Add STRIDED_SLICE CPU fall-back
   - Most code comes from upstream NN Runtime and upstream tflite
2. Enable Genereted Test for STRIDED_SLICE
   - Fix generated test bug

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd strided_slice framework test (#1298)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 02:34:17 +0000 (11:34 +0900)]
Add strided_slice framework test (#1298)

Upload strided_slice tflite file to server and add framework test

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUse RS7-RuntimeNTools/ComputeLibrary for `externals/acl` (#1268)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 01:24:10 +0000 (10:24 +0900)]
Use RS7-RuntimeNTools/ComputeLibrary for `externals/acl` (#1268)

Since we want to modify ACL internally, we try to use
our local repo instead of tizen's repo.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoModel parser: simplify enum matching (#1293)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 01:22:09 +0000 (10:22 +0900)]
Model parser: simplify enum matching (#1293)

Simplify enum value matching to name string

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd nn tests skip list for armv7l-linux (#1292)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 May 2018 01:20:46 +0000 (10:20 +0900)]
Add nn tests skip list for armv7l-linux (#1292)

Skip list for armv7l-linux differs to one for x86_64-linux.
More tests are skipped since they fail with ACL kernels.

In addition, I added comments for both of list.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAdd testing CAST_EX operation and supporting extended API's test (#1279)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 23 May 2018 01:01:59 +0000 (10:01 +0900)]
Add testing CAST_EX operation and supporting extended API's test (#1279)

This commit adds testing CAST_EX operation and supporting extended API's test.

    - Open the way to test extended operators.
    - add tests for CAST_EX operation.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoModel parser: define class (#1291)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 23 May 2018 00:42:57 +0000 (09:42 +0900)]
Model parser: define class (#1291)

Define model parser class: TFLiteModelFileParser

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoRemove md5sum from config.sh files (#1290)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 21 May 2018 06:55:54 +0000 (15:55 +0900)]
Remove md5sum from config.sh files (#1290)

Now that we can fetch md5sum from the file server, we can remove it from
`config.sh` files

Resolve #1264

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoGet md5sum of tflite files from the file server (#1289)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 21 May 2018 05:45:18 +0000 (14:45 +0900)]
Get md5sum of tflite files from the file server (#1289)

Get original file's md5sum from HTTP header(Content-MD5 field) so we do not
have to maintain md5sum in `config.sh`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoConvert test_driver.sh to one in python3 (#1277)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 21 May 2018 03:34:24 +0000 (12:34 +0900)]
Convert test_driver.sh to one in python3 (#1277)

* Convert test_driver.sh to one in python3

To prepare for detailed, specific tests in the future, converts
test_driver.sh to one in python3. Now it is just ported to python3, not
applied with OOP concepts yet.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Apply format.patch

6 years agoIntroduce skip list for nn runtime tests (#1287)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 21 May 2018 03:33:34 +0000 (12:33 +0900)]
Introduce skip list for nn runtime tests (#1287)

Main purpose of this PR is running a subset of tests in CI.
It makes use of `gtest_filter` option that enables running a subset of tests.
Put {unit_test_name}.skip.{archtecture} in runtimse/tests/neural_networks_test.

Related issue: #1272

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoRemove gcc version check on tizen build (#1283)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 21 May 2018 03:33:21 +0000 (12:33 +0900)]
Remove gcc version check on tizen build (#1283)

Both gbs and cross for tizen support building generated test, thus no
need to check gcc version.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd RESIZE_BILINEAR in runtimes/logging (#1284)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 21 May 2018 03:32:54 +0000 (12:32 +0900)]
Add RESIZE_BILINEAR in runtimes/logging (#1284)

- Add RESIZE_BILINEAR in runtimes/logging

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoFix model_parser script (#1282)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 21 May 2018 02:08:30 +0000 (11:08 +0900)]
Fix model_parser script (#1282)

This will fix model_parser.py script
- update flatbuffers python code as flatbuffers doesn't exist anymore in externals
- fix custom code understand utf-8 code (for python3)

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[Gather OP] add gather operation fall-back (#1267)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 18 May 2018 08:05:20 +0000 (17:05 +0900)]
[Gather OP] add gather operation fall-back (#1267)

* [Gather OP] add gather operation fall-back

This commit introduces GATHER operation which is the first version.
- currently, only for float32 and 1D

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Gather Op] Gather operation to CPU executor

This commit adds Gather operation in CpuExecutor.
-currently, only for float32 and 1D

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoIntroduce extended CAPI akin to `ANeuralNetworksModel_addOperation()` to support...
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 18 May 2018 06:32:16 +0000 (15:32 +0900)]
Introduce extended CAPI akin to `ANeuralNetworksModel_addOperation()` to support extended operators. (#1256)

This commit introduces extended CAPI that plays a role similar to ANeuralNetworksModel_addOperation() to support extended operators.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoIgnore submodules for format-checker (#1270)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 18 May 2018 05:36:29 +0000 (14:36 +0900)]
Ignore submodules for format-checker (#1270)

format-checker is failed when submodule is modified.
This is not what we want, so ignore submodule's state in format-checker.sh

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoTFLiteFile tool: Fix shape bug, option (#1265)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 18 May 2018 01:06:32 +0000 (10:06 +0900)]
TFLiteFile tool: Fix shape bug, option (#1265)

Fix tensor shape bug when tensor is scalar
Fix generating option for new supported operators

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoArm Cross Toolchain update to 6.3 on nnfw_docker (#1263)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 18 May 2018 01:05:24 +0000 (10:05 +0900)]
Arm Cross Toolchain update to 6.3 on nnfw_docker (#1263)

issue: #1251

To support GeneretedTest build, we need at least gcc 6.3.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoFix test tflite file bug (#1259)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 18 May 2018 01:03:18 +0000 (10:03 +0900)]
Fix test tflite file bug (#1259)

Change to fixed tflite file and update md5sum

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoEnabling LOGISTIC operation in CpuExecutor (#1258)
Siva Sai Vaddipati/SRI-Bangalore-System SW/./삼성전자 [Thu, 17 May 2018 23:40:27 +0000 (05:10 +0530)]
Enabling LOGISTIC operation in CpuExecutor (#1258)

This commit enables the Logistic activation in CpuExecutor and adds the necessary framework tests file to test logistic operation

Signed-off-by: Siva Sai <siva.sai@samsung.com>
6 years agoMove libs/util/include/util to include/util (#1255)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 17 May 2018 23:33:31 +0000 (08:33 +0900)]
Move libs/util/include/util to include/util (#1255)

To be consistent with other header files, this patch moves
`libs/util/include/util` to `include/util` and accordingly modifies
`libs/util/CMakeLists.txt`.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agorenamed previous mul to matmul (#1254)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 17 May 2018 23:31:23 +0000 (08:31 +0900)]
renamed previous mul to matmul (#1254)

In previous PR (#1238), `mul` was added for two matrix multiplication.
However, it turned out that `mul` must be element-wise mul, not matmul (matrix mul).
For this reason previous `mul` was renamed to `matmul` and test was changed to `disabled`.
Also, 'matmul2x2.tflite` was uploaded into `npuarchive.mooo.com`.
(previous `mul2x2.tflite` in `npuarchive.mooo.com` will be deleted after this PR is merged.)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoEnable DIV, SUB and STRIDED_SLICE tests (#1257)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 17 May 2018 11:14:15 +0000 (20:14 +0900)]
Enable DIV, SUB and STRIDED_SLICE tests (#1257)

SIGSEGV was resolved. Thus related tests are enabled.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoPrint exact operation name (#1252)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 17 May 2018 09:25:05 +0000 (18:25 +0900)]
Print exact operation name (#1252)

This commit fixes to print exact operation name using operation index.
If the index is not found, use option_type as before.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoIntroduce enum `OperationCodeEx` to support extended operators (#1223)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 17 May 2018 07:53:54 +0000 (16:53 +0900)]
Introduce enum `OperationCodeEx` to support extended operators (#1223)

This commit introduces enum `OperationCodeEx` to support extended operators.
The list of added operations:
  - ANEURALNETWORKS_EX_CAST
  - ANEURALNETWORKS_EX_GATHER
  - ANEURALNETWORKS_EX_TOPK_V2
  - ANEURALNETWORKS_EX_TENSORFLOW_MAX

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoIntroduce profiling feature on test_driver.sh (#1248)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 17 May 2018 07:46:29 +0000 (16:46 +0900)]
Introduce profiling feature on test_driver.sh (#1248)

Now `test_driver.sh --profile` runs profiling by `oprofile`. To profile,
`oprofile` should be installed on target machine and needs root
permission.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoPrepare scripts for Coverity (#1236)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 17 May 2018 04:31:51 +0000 (13:31 +0900)]
Prepare scripts for Coverity (#1236)

* Prepare scripts for Coverity

- Add run_coverity.sh
- Add Coverity_Tizen_SelfVerification_2017.07.0.sh

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
* Download Coverity script from server

- Download Coverity script from server, instead of maintaining in this repo

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
* Receive name of Coverity script as a parameter

- Receive name of Coverity script as a parameter

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
* Use consistent convention for variables

- Add a description about variable name convention
- Rename variables to follow convention

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoAdd a test for TFLITE to call 'MUL' CPU fallback inside NN API (#1238)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 17 May 2018 03:45:53 +0000 (12:45 +0900)]
Add a test for TFLITE to call 'MUL' CPU fallback inside NN API (#1238)

For #1232, a simple tflite file (mul2x2.tflite) was generated and
added into NNAPI_TEST to make sure if tensorflow lite
calls MUL operation (CPU fallback) under NN API layer.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoAdd NN Tests for div, sub, strided_slice (#1246)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 17 May 2018 02:16:02 +0000 (11:16 +0900)]
Add NN Tests for div, sub, strided_slice (#1246)

Related issue: #1229

Added tests are generated with neural_networks_test/specs/generate_test.sh.
While running these tests, I got SIGSEGV. So I disalbed them for now.
These tests will be enabled after SIGSEGV is fixed.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoApply format checker to disabled codes in CpuExecutor (#1245)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 17 May 2018 01:43:33 +0000 (10:43 +0900)]
Apply format checker to disabled codes in CpuExecutor (#1245)

We are supposed to enable NYI codes later, but the current disabled codes follow android coding rules still.
So if we just remove `#if 0` to enable the codes, it would be hard to compare the difference with before codes for review.

This commit applies format checker to disabled codes in CpuExecutor.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoApply library function to scripts (#1244)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 17 May 2018 01:43:09 +0000 (10:43 +0900)]
Apply library function to scripts (#1244)

- Apply library function to scripts

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>