platform/core/ml/nnfw.git
6 years agoAdd `ctags` configuration file (#1120)
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 8 May 2018 06:30:23 +0000 (15:30 +0900)]
Add `ctags` configuration file (#1120)

- exclude binary paths including `Product`, `rootfs`, `cache`
- include external source path
- set --extra=+f as default for easy file searching in project

Signed-off-by: Sung-Jae Lee <sjlee@mail.com>
6 years agoAdded content for minicom novice. (#1119)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 8 May 2018 02:43:08 +0000 (11:43 +0900)]
Added content for minicom novice. (#1119)

added 1. where to find minicom setup info and 2. how to find serial device name.

Signed-off-by: Hyun Sik Yoon (hyunsik.yoon@samsung.com)
6 years agoTF Lite C# API's Skeleto (#986)
Kshitiz Bansal/Advanced SW Team/./삼성전자 [Mon, 7 May 2018 07:03:36 +0000 (12:33 +0530)]
TF Lite C# API's Skeleto (#986)

Following are the part of this Pull Request

- TFLiteSharp package
- README.md
- C# api skeleton code

We have built the skeleton of the c# APIs taking Java APIs as the basis, as we discussed.

Signed-off-by: Kshitiz Bansal <kshitiz.b@samsung.com>
6 years agoAdd README.md to tflite_run (#1110)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 4 May 2018 08:42:10 +0000 (17:42 +0900)]
Add README.md to tflite_run (#1110)

A brief description for tflite_run

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoRemove unused code from Diff.cpp (#1111)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 4 May 2018 08:41:54 +0000 (17:41 +0900)]
Remove unused code from Diff.cpp (#1111)

This code was not removed to minimize diff from another commit.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoFix max_pool_float_2 test (#1109)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 4 May 2018 06:28:52 +0000 (15:28 +0900)]
Fix max_pool_float_2 test (#1109)

This will fix max_pool_float_2 test that has N>1

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoUpdate the nnfw behavior figure (#1106)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 06:25:26 +0000 (15:25 +0900)]
Update the nnfw behavior figure (#1106)

The arrow from the runtime seemed to be directly connected to the
application, which is not correct.  This patch modifies the arrow to be
connected only to TF Lite and makes a single output arrow from TF Lite.

Thanks to SaeHie Park for this comment.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years ago[tflite_run] Support compare results (#1103)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 4 May 2018 06:19:54 +0000 (15:19 +0900)]
[tflite_run] Support compare results (#1103)

With `--compare` or `-c` option, user can compare the results with output
tensor file which was dumped by `--dump` option.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoFix svace build script bug (#1107)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 06:19:12 +0000 (15:19 +0900)]
Fix svace build script bug (#1107)

Fix svace build script bug: check  file exist

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUpdate the SW high level design document (#1105)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 05:43:13 +0000 (14:43 +0900)]
Update the SW high level design document (#1105)

For issue #942

This commit addresses two comments posted in #921.
- Fix the return path from the runtime in the nnfw_behavior figure
- Clarify the description about what compute interface is used in the
  runtime implementation

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoExtract compareSingleTensorView from TfLiteTensorComparator::run (#1072)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 4 May 2018 02:14:23 +0000 (11:14 +0900)]
Extract compareSingleTensorView from TfLiteTensorComparator::run (#1072)

So we can compare single TensorView. This method will be used from `tflite_run`.

OutputTensorDumper, which will be introduced later, restores TensorView from a
binary tensor file. So we need an interface for comparing two `TensorView`s.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoremove internal url from gbs.conf (#1090)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 01:57:35 +0000 (10:57 +0900)]
remove internal url from gbs.conf (#1090)

1. remove repo.localacl from gbs.conf

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoRemove scripts/command/change_gitmodule.sh (#1085)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 01:56:49 +0000 (10:56 +0900)]
Remove scripts/command/change_gitmodule.sh (#1085)

For issue #1071

This patch removes `scripts/command/change_gitmodule.sh`, since it is no
longer used, and updates its caller sites.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years ago[tflite_run] Introduce OutputTensorLoader (#1073)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 4 May 2018 01:21:32 +0000 (10:21 +0900)]
[tflite_run] Introduce OutputTensorLoader (#1073)

As a pair with OutputTensorDumper, this class reads and builds
`TensorView<float>` from binary tensor file.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoApply insertFusedActivationLayer to NEON layers (#1083)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 01:21:21 +0000 (10:21 +0900)]
Apply insertFusedActivationLayer to NEON layers (#1083)

This commit applies insertFusedActivationLayer to NEON layers
such as Conv2D and Pooling.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoApply insertFusedActivationLayer() to other CL layers. (#1082)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 01:21:05 +0000 (10:21 +0900)]
Apply insertFusedActivationLayer() to other CL layers. (#1082)

This commit applies insertFusedActivationLayer() to CL layers
(Conv2D and Pooling).

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoChange the git url for tensorflow submodule (#1070)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 01:02:17 +0000 (10:02 +0900)]
Change the git url for tensorflow submodule (#1070)

For issue #1069

This patch changes the git url and branch for the tensorflow submodule
as Tizen's.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years ago[BUGFIX] Do not insert activation layer for ANEURALNETWORKS_FUSED_NONE (#1080)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 00:52:07 +0000 (09:52 +0900)]
[BUGFIX] Do not insert activation layer for ANEURALNETWORKS_FUSED_NONE (#1080)

If the activation layer is ANEURALNETWORKS_FUSED_NONE,
just return the function instead of break to avoid
inserting an unconfigured activation layer.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoRemove server information (#1075)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 00:30:05 +0000 (09:30 +0900)]
Remove server information (#1075)

Remove server information from script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUse on-device AI instead of embedded AI (#1076)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 4 May 2018 00:17:44 +0000 (09:17 +0900)]
Use on-device AI instead of embedded AI (#1076)

For issue #939

This patch changes the term, embedded AI, used in the background section
of the requirement specification document as on-device AI for
consistency.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoApply CLUniqueTensor to Pooling and Softmax (#1051)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 23:56:11 +0000 (08:56 +0900)]
Apply CLUniqueTensor to Pooling and Softmax (#1051)

This commit applies CLUniqueTensor instead of directly using ACL's Tensor.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoApply NEUniqueTensor (#1054)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 23:55:33 +0000 (08:55 +0900)]
Apply NEUniqueTensor (#1054)

This commit applies NEUniqueTensor to Conv2D, Pooling, and Softmax
instead of directly using ACL's Tensor.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd xu4 tizen test script (#1038)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 11:55:38 +0000 (20:55 +0900)]
Add xu4 tizen test script (#1038)

* Add xu4 tizen test script

For example, if you'd like to build & test for tizen xu4, do as
follows:
1. cross build and test
`$ ./run docker_build_tizen_cross.sh ; ./run tizen_xu4_test.sh --test-suite-path=Product/out/test-suite.tar.gz --unittest --verification`
2. gbs build and test
`$ ./run docker_gbs_build.sh ; ./run tizen_xu4_test.sh --rpm-dir=Product/out/rpm --verification --unittest`

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd 3-clause BSD license in LICENSE (#1048)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 3 May 2018 10:53:20 +0000 (19:53 +0900)]
Add 3-clause BSD license in LICENSE (#1048)

SOLVe complains 3-clause BSD license should be specified.
It will make SOLVe happy.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoUse `BSD-3-Clause` for tizen build spec (#1061)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 3 May 2018 10:47:30 +0000 (19:47 +0900)]
Use `BSD-3-Clause` for tizen build spec (#1061)

Related issue: #1059
All license identified in protex should be specified in tizen build spec.
Furthemore, SOLVe is happy with `BSD-3-Clause`, not `3-clause BSD License`.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoenable coverage-suite on gbs build (#1058)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 10:35:25 +0000 (19:35 +0900)]
enable coverage-suite on gbs build (#1058)

1. coverage-suite on gbs build
2. docker_gbs_build.sh accepts gbs define option

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoIgnore changes externals/acl (#1047)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 09:48:04 +0000 (18:48 +0900)]
Ignore changes externals/acl (#1047)

This commit adds `ignore = dirty` to ignore untracked or
modified files in `external/acl`

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agofix gbs build error & add return status (#1055)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 07:45:09 +0000 (16:45 +0900)]
fix gbs build error & add return status (#1055)

1. Fix #1053
2. Add return status on docker_gbs_build.sh

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoEnable depthwiseConvQuant8 (#1037)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 06:59:05 +0000 (15:59 +0900)]
Enable depthwiseConvQuant8 (#1037)

- enable depthwiseConvQuant8, because we enabled tests
  for DEPTHWISE_CONV_2D with TENSOR_QUANT8_ASYMM.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoFix softmax of ACL op for matrix input (#1020)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 3 May 2018 06:57:44 +0000 (15:57 +0900)]
Fix softmax of ACL op for matrix input (#1020)

This will fix ACL softmax op that has matrix input
- this adds MatrixInputAccessor class to handle matrix input

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[tflite_run] Change code format of argument addition (#1041)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 3 May 2018 06:04:54 +0000 (15:04 +0900)]
[tflite_run] Change code format of argument addition (#1041)

One option per one line with clang-format on/off

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoIntroduce insertFusedActivationLayer() (#1005)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 3 May 2018 06:04:28 +0000 (15:04 +0900)]
Introduce insertFusedActivationLayer() (#1005)

This commit introduces insertFusedActivationLayer().
This function generates activation layer of ACL according to the
activation type spcified by NNAPI.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd MPL2, Apache-2.0, and BSD in tizen build spec (#1046)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 3 May 2018 05:45:55 +0000 (14:45 +0900)]
Add MPL2, Apache-2.0, and BSD in tizen build spec (#1046)

SOLVe system complained that we don't specified the licenses
that are identified by Protex. This PR added those licenses,
and removed MIT license since we don't use MIT.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoIntegrate tflite_run argument parsing (#1030)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 3 May 2018 04:27:38 +0000 (13:27 +0900)]
Integrate tflite_run argument parsing (#1030)

Currently the command line argument of `tflite_run` is parsed by
`boost::program_options` and directly from `argv`. This has introduced a
few problems. So this commit integrates argument parsing with introducing
positional options so we don't have to access `argv[1]` directly for `.tflite`
file.

Fix #1001

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoAdd benchmark-acl test to test_driver.sh (#1026)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 3 May 2018 04:24:15 +0000 (13:24 +0900)]
Add benchmark-acl test to test_driver.sh (#1026)

Enables test_driver.sh to run benchmark-acl tests such as
benchmark_googlenet. This benchmark-acl test will be run on daily
benchmark ci. To run the tests, the benchmark-acl test binaries should be
already built.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoremoved since these files are under LGPL license (#1029)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 3 May 2018 02:41:07 +0000 (11:41 +0900)]
removed since these files are under LGPL license (#1029)

Amd.h and SinplicialCholesky_impl.h in Eigen directory are under LGPL license.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoRevise benchmark test in test script (#1013)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 3 May 2018 00:53:56 +0000 (09:53 +0900)]
Revise benchmark test in test script (#1013)

To prepare benchmark-acl test in test script, revises benchmark
test code in test driver and script for making json.

6 years agoFix googletest build for native (#1009)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 3 May 2018 00:17:20 +0000 (09:17 +0900)]
Fix googletest build for native (#1009)

This will remove CMAKE_TOOLCHAIN_FILE option for googltest native build

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix SVACE build script (#1010)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 23:56:16 +0000 (08:56 +0900)]
Fix SVACE build script (#1010)

Fix SVACE build script to verify test package build

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoChange ifdef guard to changed namespace rule (#1008)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 23:56:04 +0000 (08:56 +0900)]
Change ifdef guard to changed namespace rule (#1008)

This commit changes ifdef guard to changed namespace rule.

close : #1006

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd command line argument `dump` to tflite_run (#1011)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 23:31:38 +0000 (08:31 +0900)]
Add command line argument `dump` to tflite_run (#1011)

* Add command line argument `dump` to tflite_run

Argument `dump` specifies the file name of output tensors are stored.
If not given, outputs are not dumped.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoExclude frameworktest from test_driver's default tests (#998)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 23:27:33 +0000 (08:27 +0900)]
Exclude frameworktest from test_driver's default tests (#998)

Now defult tests by test_driver run verification and unittest excluding
for frameworktest.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoIntroduce OutputTensorDumper (#991)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 10:16:33 +0000 (19:16 +0900)]
Introduce OutputTensorDumper (#991)

This class writes output tensors to generate golden data

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoBuild test only (#997)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 10:06:35 +0000 (19:06 +0900)]
Build test only (#997)

Modify Makefile on root directory to build test only by "make testbuild"
Can build tensoflow lite only using "make tflite"

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agonnfw-test dir contains bin/lib directory (#1004)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 08:29:26 +0000 (17:29 +0900)]
nnfw-test dir contains bin/lib directory (#1004)

Now, nnfw-test.rpm contains subdirectories(tests, tools, and Product) which is the same structure as
test-suite.tar.gz file

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoList up how-to documents in a separate document (#1003)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 08:19:46 +0000 (17:19 +0900)]
List up how-to documents in a separate document (#1003)

For #926

This commit puts together how-to documents in docs/howto and lists them up
in docs/howto.md.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoAdd missing header definition macro in shape.h (#1002)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 08:08:47 +0000 (17:08 +0900)]
Add missing header definition macro in shape.h (#1002)

This commit adds missing header definition macro
(#ifndef - #define - #endif) in shape.h

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd license sources in contrib/kerneltesting (#971)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 08:08:06 +0000 (17:08 +0900)]
Add license sources in contrib/kerneltesting (#971)

Related issue: #840

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAdd license to sources in contrib/convacl/* (#970)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 08:07:46 +0000 (17:07 +0900)]
Add license to sources in contrib/convacl/* (#970)

Related issue: #840

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAdd license to sources in contrib/bindacl/* (#969)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 08:07:35 +0000 (17:07 +0900)]
Add license to sources in contrib/bindacl/* (#969)

Related issue: #840

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoUpdate README.md (#1000)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 08:07:22 +0000 (17:07 +0900)]
Update README.md (#1000)

For issue #926

This commit updates README.md to better describe the project and
repository information.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoImplement RELU6 with a test case of RELU6 (#995)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 07:49:26 +0000 (16:49 +0900)]
Implement RELU6 with a test case of RELU6 (#995)

This commit introduces RELU6 implementation as a fused activation
function with its test case.
The parameter sizes of the test case are from the first depthwise conv2d
layer of MobileNet.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoMove NeuralNetworksWrapper.h to tests/include (#990)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 07:43:15 +0000 (16:43 +0900)]
Move NeuralNetworksWrapper.h to tests/include (#990)

Related issue: #978

NeuralNetworksWrapper.h (C++ wrapper for NeuralNetworks.h) is used only
in runtime unit tests under runtime/tests/*. It is not official API that
there is no documentation on it. So I move it to tests/include.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAdd acl env options to test_driver.sh (#996)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 07:23:24 +0000 (16:23 +0900)]
Add acl env options to test_driver.sh (#996)

Enables test_driver to handle setting acl environments by
--acl_envon option.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoChange namespace from android::nn to nnfw::rt (#987)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 07:16:16 +0000 (16:16 +0900)]
Change namespace from android::nn to nnfw::rt (#987)

* This commit changes namespace from android::nn to nnft::rt.

Related : #663
Close : #716

Signed-off-by: sjsujinkim sjsujin.kim@samsung.com
6 years agoChange variable convention of Make and CMake (#993)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 07:11:23 +0000 (16:11 +0900)]
Change variable convention of Make and CMake (#993)

- HOST_OS   : Where we are compile (Linux)
- TARGET_OS : Where nnfw executable runs (Linux or Tizen or Android)

Fix #874

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoBringUpTests should not depends on Android NN Tests condition (#977)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 04:59:39 +0000 (13:59 +0900)]
BringUpTests should not depends on Android NN Tests condition (#977)

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoEnable to use ACL DepthwiseConv2D via NNAPI (#985)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 04:48:13 +0000 (13:48 +0900)]
Enable to use ACL DepthwiseConv2D via NNAPI (#985)

This sets nnfw_kernel_* table for NN runtime to use ACL DepthwiseConv2D.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoRemove android_nn from contrib. (#992)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 2 May 2018 04:37:47 +0000 (13:37 +0900)]
Remove android_nn from contrib. (#992)

This commit removes android_nn from contrib.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoUse multicore when building ACL (#983)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 04:36:56 +0000 (13:36 +0900)]
Use multicore when building ACL (#983)

This commit enables parallelizing build of ACL using scons -j.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoRename BringUpTest and NeuralNetworkTest in snake style (#989)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 04:34:14 +0000 (13:34 +0900)]
Rename BringUpTest and NeuralNetworkTest in snake style (#989)

Related Issue: #831

Most directory names are in snake style.
For consistency, I rename them.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoPrepend license to tools/* (#965)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 04:19:14 +0000 (13:19 +0900)]
Prepend license to tools/* (#965)

Related issue: #840

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years ago[BUGFIX] typo on translating the shape of weights (#984)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 04:03:49 +0000 (13:03 +0900)]
[BUGFIX] typo on translating the shape of weights (#984)

fixed typo. inputShapeACL -> weightsShapeACL

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoIntroduce xxx_driverbin in test_driver.sh (#976)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 2 May 2018 04:03:20 +0000 (13:03 +0900)]
Introduce xxx_driverbin in test_driver.sh (#976)

Now, we can pass proper driver binary depending on test
type(framework/verification/benchmark).

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd license to source in contrib/example (#975)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 2 May 2018 03:55:31 +0000 (12:55 +0900)]
Add license to source in contrib/example (#975)

Related issue: #840

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoArchiving nnfw rpms during gbs build (#964)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 08:33:48 +0000 (17:33 +0900)]
Archiving nnfw rpms during gbs build (#964)

* Archiving nnfw rpms during gbs build

This is a prerequisite to enable test on tizen

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* update as commented

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* remove last slash

6 years agoAdd build command for benchmark/acl (#974)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 30 Apr 2018 07:55:23 +0000 (16:55 +0900)]
Add build command for benchmark/acl (#974)

Now `BENCHMARK_ACL_BUILD=1 make build` runs building benchmark/acl.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoIntroduce NEON DepthwiseConv2D (#973)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 07:31:20 +0000 (16:31 +0900)]
Introduce NEON DepthwiseConv2D (#973)

This commit introduces DepthwiseConv2D implementation for NEON.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoIntroduce a test code of multi-channel DepthwiseConv2D (#972)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 07:30:19 +0000 (16:30 +0900)]
Introduce a test code of multi-channel DepthwiseConv2D (#972)

This commit introduces a test code of multi-channel DepthwiseConv2D.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd tools and tests dir into nnfw-test.rpm (#966)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 05:38:16 +0000 (14:38 +0900)]
Add tools and tests dir into nnfw-test.rpm (#966)

nnfw-test rpm contains tools and tests folder to support test on tizen target.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoIntroduce DepthwiseConv2D to support MobileNet (#967)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 05:32:00 +0000 (14:32 +0900)]
Introduce DepthwiseConv2D to support MobileNet (#967)

This commit introduces DepthwiseConv2D layer to support Mobilenet
with a simple test case.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoReflect dir changes to gen_coverage_report script (#962)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 03:58:51 +0000 (12:58 +0900)]
Reflect dir changes to gen_coverage_report script (#962)

Now, coverage report's target includes libs, include, runtimes, and
tools folder.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoCleanup ci and docker directory (#960)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 30 Apr 2018 00:52:44 +0000 (09:52 +0900)]
Cleanup ci and docker directory (#960)

- Cleanup ci and docker directory

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoFix typo in script (#961)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 11:39:09 +0000 (20:39 +0900)]
Fix typo in script (#961)

- Fix typo in script

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoFix typo in docker_gbs_build.sh (#959)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 10:20:53 +0000 (19:20 +0900)]
Fix typo in docker_gbs_build.sh (#959)

- Fix typo in docker_gbs_build.sh

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoUpdate Tizen build scripts with new directory structure (#958)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 10:16:19 +0000 (19:16 +0900)]
Update Tizen build scripts with new directory structure (#958)

- Update Tizen build scripts with new directory structure

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoUpdate scripts in new location (#957)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 09:48:16 +0000 (18:48 +0900)]
Update scripts in new location (#957)

- Update scripts in new location

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoRename src as runtimes (#956)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 09:42:03 +0000 (18:42 +0900)]
Rename src as runtimes (#956)

For issue #831 and #925

This patch renames `src` as `runtimes`.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoUpdate change_gitmodule.sh and using it (#954)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 09:31:10 +0000 (18:31 +0900)]
Update change_gitmodule.sh and using it (#954)

- Update change_gitmodule.sh with new directory structure
- Update follow scripts using change_gitmodule.sh
    docker_build_ubuntu_svace.sh
    docker_cross_test_coverage_build.sh
    docker_run_test.sh

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMove `src/nn/runtime/sample` to `src/tests/BringUpTest` (#955)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 27 Apr 2018 09:23:43 +0000 (18:23 +0900)]
Move `src/nn/runtime/sample` to `src/tests/BringUpTest` (#955)

* Move `src/nn/runtime/sample` to `src/tests/BringUpTest`

As discussed from #831, this commit changes directory structure.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Fix the way of adding subdirectory

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoRename src/runtime/test as src/tests/NeuralNetworksTest (#953)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 08:42:48 +0000 (17:42 +0900)]
Rename src/runtime/test as src/tests/NeuralNetworksTest (#953)

For issue #831 and #925

This commit renames src/runtime/test as src/tests/NeuralNetworksTest.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoUpdate scripts/command (#952)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 08:37:41 +0000 (17:37 +0900)]
Update scripts/command (#952)

Make following scrtips work well in new directory structure

- scripts/command/docker_build.sh
- scripts/command/docker_build_cross_arm_ubuntu.sh
- scripts/command/docker_build_cross_arm_ubuntu_without_aclbuild.sh

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoExtract CMakeLists.txt for sample directory (#951)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 27 Apr 2018 08:26:52 +0000 (17:26 +0900)]
Extract CMakeLists.txt for sample directory (#951)

This commit extracts test executable part from `src/nn/runtime/CMakeLists.txt`
into `src/nn/runtime/sample/CMakeLists.txt`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoRelocate NeuralNetworks.h to include (#950)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 08:21:22 +0000 (17:21 +0900)]
Relocate NeuralNetworks.h to include (#950)

For issue #831 and #925

This commit moves NeuralNetworks.h to the top-level include directory.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoRelocate NN runtime from src/runtime/ref to src (#949)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 07:57:49 +0000 (16:57 +0900)]
Relocate NN runtime from src/runtime/ref to src (#949)

* Relocate NN runtime from src/runtime/ref to src

- Relocate NN runtime from src/runtime/ref to src

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMake a copy of scripts and files in docker from scripts/command
Hyung-Kyu Choi [Fri, 27 Apr 2018 07:06:30 +0000 (16:06 +0900)]
Make a copy of scripts and files in docker from scripts/command

- Make a copy of scripts and files in ./docker from ./scripts/command
- This files will be used with currrent CI and
  will be removed when CI is updated

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMove scripts in docker to scripts/command
Hyung-Kyu Choi [Fri, 27 Apr 2018 07:04:09 +0000 (16:04 +0900)]
Move scripts in docker to scripts/command

- Move scripts in docker to scripts/command
- We have to leave copies in old location for CI which is not update yet

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMake a copy of scripts and files in ci from scripts/command
Hyung-Kyu Choi [Fri, 27 Apr 2018 06:55:01 +0000 (15:55 +0900)]
Make a copy of scripts and files in ci from scripts/command

- Make a copy of scripts and files in ci from scripts/command
- This files will be used with currrent CI and
  will be removed when CI is updated

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMove all files in ./ci to ./scripts/command
Hyung-Kyu Choi [Fri, 27 Apr 2018 06:51:52 +0000 (15:51 +0900)]
Move all files in ./ci to ./scripts/command

- Move all files in ./ci to ./scripts/command
- We need to make a copy for backward compatibility with CI

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMove all Dockerfile from docker to scripts/docker
Hyung-Kyu Choi [Fri, 27 Apr 2018 06:15:21 +0000 (15:15 +0900)]
Move all Dockerfile from docker to scripts/docker

- Move all Dockerfile from docker to scripts/docker

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMove tools/nnapi_bindings/* to src/ (#947)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 07:20:38 +0000 (16:20 +0900)]
Move tools/nnapi_bindings/* to src/ (#947)

For #831

This commit moves tools/nnapi_bindings/* to src/.  The header `nnapi.h`
in tools/nnapi_bindings/include is also moved to the top-level include
directory.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoMove src/support to libs (#945)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 07:03:05 +0000 (16:03 +0900)]
Move src/support to libs (#945)

Move src/support to libs/support

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoMove NNOP kernels into libs (#944)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 06:52:17 +0000 (15:52 +0900)]
Move NNOP kernels into libs (#944)

This commit moves NNOP kernel source code from `src/kernel` to
`libs/kernel`.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoMove labs/* to contrib (#943)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 06:51:23 +0000 (15:51 +0900)]
Move labs/* to contrib (#943)

For #831

This commit moves sub-directories in labs to contrib.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoAdd the first draft of SW high level design (#921)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 06:16:35 +0000 (15:16 +0900)]
Add the first draft of SW high level design (#921)

* Add the first draft of SW high level design

This commit adds the first draft of SW high level design.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoFix wrong pair of ifdef comment in TestValidation.cpp (#934)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 27 Apr 2018 06:10:21 +0000 (15:10 +0900)]
Fix wrong pair of ifdef comment in TestValidation.cpp (#934)

* Make ifdef comment correct in TestValidation.cpp

This commit makes ifdef comment correct int TestValidation.cpp

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Change todo comment

* Fix typo se->we

6 years agoRelocate badState helper to the top of ModelBuilder (#935)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 27 Apr 2018 06:09:14 +0000 (15:09 +0900)]
Relocate badState helper to the top of ModelBuilder (#935)

As we've discussed in https://github.sec.samsung.net/STAR/nnfw/pull/809#discussion_r48662, once this helper was merged for easy to review, and then we've planed rearrange the order to easy to read in another PR.
This is why I make this PR.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd the first draft of SW requirement specification (#920)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 06:07:08 +0000 (15:07 +0900)]
Add the first draft of SW requirement specification (#920)

This commit adds the first draft of SW requirement specification.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoChange externals/acl as a submodule (#827)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 27 Apr 2018 04:28:11 +0000 (13:28 +0900)]
Change externals/acl as a submodule (#827)

This patch removes externals/acl and adds ACL again as a submodule.

For issue #554

Signed-off-by: Sangmin Seo sangmin7.seo@samsung.com
6 years agoResolve NN runtime unit test Assertion (#903)
PRAVEEN DORESWAMY NAIDU/SRI-Bangalore-System SW/./삼성전자 [Fri, 27 Apr 2018 02:58:20 +0000 (02:58 +0000)]
Resolve NN runtime unit test Assertion (#903)

Assertion generated in NN runtime unit test, need to check the need for assertion, disabling it as ToDo-NNRT