platform/core/ml/nnfw.git
6 years agoRemove unnecessary return statement (#846)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 24 Apr 2018 04:30:00 +0000 (13:30 +0900)]
Remove unnecessary return statement (#846)

- Remove unnecessary return statement which make below code unreachable.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoRemove tools and depend directory from coverage (#856)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 24 Apr 2018 04:29:25 +0000 (13:29 +0900)]
Remove tools and depend directory from coverage (#856)

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoFix c++ and python coding format in tools (#843)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 24 Apr 2018 04:06:49 +0000 (13:06 +0900)]
Fix c++ and python coding format in tools (#843)

Fix c++ and python format based on decided coding rule

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoupload concatenation files to the mooo server (#836)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 24 Apr 2018 01:02:10 +0000 (10:02 +0900)]
upload concatenation files to the mooo server (#836)

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoDocker build for svace analyzer (#844)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 23 Apr 2018 13:34:18 +0000 (22:34 +0900)]
Docker build for svace analyzer (#844)

Add script for docker build with svace analyzer

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoFix test error on tizen (#847)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 23 Apr 2018 10:41:37 +0000 (19:41 +0900)]
Fix test error on tizen (#847)

dirname does not accept multiple arguments.
To run test on tizen, dirname is executed as a part of find command.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoFramework tests for RELU and RELU6 operations (#830)
Siva Sai Vaddipati/SRI-Bangalore-System SW/./삼성전자 [Mon, 23 Apr 2018 08:29:33 +0000 (13:59 +0530)]
Framework tests for RELU and RELU6 operations (#830)

* Framework tests for RELU and RELU6 operations

This commit enables the framework tests for RELU and RELU6 activation functions

* Update config.sh

6 years agoAdd reshape op to NNFWKernel to test performance (#835)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 23 Apr 2018 05:24:42 +0000 (14:24 +0900)]
Add reshape op to NNFWKernel to test performance (#835)

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoRemove external/protobuf and tools/tf_model_tools (#826)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Sun, 22 Apr 2018 23:35:44 +0000 (08:35 +0900)]
Remove external/protobuf and tools/tf_model_tools (#826)

For #553

This patch removes external/protobuf and tools/tf_model_tools.

tools/tf_model_tools has been copied to
https://github.sec.samsung.net/RS7-RuntimeNTools/nnas_tools

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoTFLite model tool: PEP8 Format (#821)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 20 Apr 2018 09:28:08 +0000 (18:28 +0900)]
TFLite model tool: PEP8 Format (#821)

Fix python code format based on PEP8

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoRemove local repo from gbs build (#817)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 20 Apr 2018 07:40:13 +0000 (16:40 +0900)]
Remove local repo from gbs build (#817)

1. remove local repo
2. add --include-all option to gbs build command for local test

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoCheck C++ files: .cc extension (#822)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 20 Apr 2018 07:39:15 +0000 (16:39 +0900)]
Check C++ files: .cc extension (#822)

Add .cc extension to check C++ coding rule

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoIntroduce 'libs' directory (#820)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 20 Apr 2018 07:38:53 +0000 (16:38 +0900)]
Introduce 'libs' directory (#820)

This commit introduces 'libs' directory which will hold various
libraries used for runtime implementation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoFix build break for benchmark on ci (#819)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 20 Apr 2018 06:16:45 +0000 (15:16 +0900)]
Fix build break for benchmark on ci (#819)

Print json with quot. Exactly its spec is not well descriptive. This
solution is workaround.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoUpdate document of docker image (#790)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 20 Apr 2018 04:06:30 +0000 (13:06 +0900)]
Update document of docker image (#790)

- Update document of docker image
- The latest version of docker image is nnfw_docker:1.4

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years ago[Build] Fix hardcoded value from Makefile (#786)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 20 Apr 2018 04:00:25 +0000 (13:00 +0900)]
[Build] Fix hardcoded value from Makefile (#786)

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoPrint benchmark's result to json (#811)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 20 Apr 2018 01:43:10 +0000 (10:43 +0900)]
Print benchmark's result to json (#811)

* Print benchmark's result to json

Print benchmark's result to json for visualizing on jenkins. The json
file's content fit to specification of benchmark(one of jenkins plugin).

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoUnify NEON and OpenCL versions of Reshape unit test (#813)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 20 Apr 2018 01:19:11 +0000 (10:19 +0900)]
Unify NEON and OpenCL versions of Reshape unit test (#813)

- extract common features to `src/Reshape.test.h`
- implement different parts into `neon/Reshape.test.cpp` and
  `cl/Reshape.test.cpp`

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd coverage report script for CI (#801)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 19 Apr 2018 23:46:56 +0000 (08:46 +0900)]
Add coverage report script for CI (#801)

This script is used on CI to generate lcov coverage info.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoCheck nullptr of the buffer in setInput (#807)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Apr 2018 09:04:07 +0000 (18:04 +0900)]
Check nullptr of the buffer in setInput (#807)

* Check nullptr of the buffer in setInput

This commit checks nullptr of the buffer in setInput to fix #806.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Separate nullptr checks in setInput

6 years agoEnabling RELU and RELU6 (#787)
Siva Sai Vaddipati/SRI-Bangalore-System SW/./삼성전자 [Thu, 19 Apr 2018 09:02:33 +0000 (14:32 +0530)]
Enabling RELU and RELU6 (#787)

Enable relu and relu6 operations in cpuexecutor

6 years agoEnable depthconv and reshape tests in config (#788)
PRAVEEN DORESWAMY NAIDU/SRI-Bangalore-System SW/./삼성전자 [Thu, 19 Apr 2018 08:59:35 +0000 (08:59 +0000)]
Enable depthconv and reshape tests in config (#788)

Enable the depthwiseconv and reshape in test config files for the operations to be tested in test_run

6 years agoSeparate ACL build type output folder (#803)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Apr 2018 08:33:51 +0000 (17:33 +0900)]
Separate ACL build type output folder (#803)

This will use ACL build option `build_dir` to separate build type (debug,release) to have its own folder

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoClean up Utils in common (#799)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Apr 2018 05:57:14 +0000 (14:57 +0900)]
Clean up Utils in common (#799)

This commit cleans up Utils in common.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoBuild tests only when googletest is built (#802)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Apr 2018 05:55:47 +0000 (14:55 +0900)]
Build tests only when googletest is built (#802)

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoUnify NEON and OpenCL implementation of reshape layer (#800)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 19 Apr 2018 03:57:33 +0000 (12:57 +0900)]
Unify NEON and OpenCL implementation of reshape layer (#800)

NEON and OpenCL implementations of reshape layer are very similar.
This commit
- extracts common features to `src/Reshape.h`
- implement different parts into `neon/Reshape.cpp` and `cl/Reshape.cpp`.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years ago[NNOP] Unify NEON and OpenCL implementaion and tests (#798)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 19 Apr 2018 00:39:08 +0000 (09:39 +0900)]
[NNOP] Unify NEON and OpenCL implementaion and tests (#798)

This commit unifies NEON and OpenCL implementation and tests.
- common statements are extracted to `acl/src/FullyConnected.h` and
  `acl/src/FullyConnected.test.h`
- Different parts are described in `cl` and `neon` directories.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoSeparate acl build and install step (#785)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Apr 2018 00:11:38 +0000 (09:11 +0900)]
Separate acl build and install step (#785)

This will separate acl library build and install step in Makefile
- this is needed for only want to copy libraries after make clean
- there is no change for 'make acl'

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoChange realpath to readlink -f on test driver (#784)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 12:20:11 +0000 (21:20 +0900)]
Change realpath to readlink -f on test driver (#784)

Instead of realpath, use readlink -f because there
is no realpath on taos.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoIntroduce NEUniqueTensor (#779)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 09:36:49 +0000 (18:36 +0900)]
Introduce NEUniqueTensor (#779)

NEUniqueTensor is a tensor wrapper for arm_compute::Tensor.
This is similar to CLUniqueTensor.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoRemove wget verbose in tizen cross build (#782)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 08:46:17 +0000 (17:46 +0900)]
Remove wget verbose in tizen cross build (#782)

Remove wget verbose in tizen cross build script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoEnable Depthwiseconv2D of CpuExecutor (#617)
PRAVEEN DORESWAMY NAIDU/SRI-Bangalore-System SW/./삼성전자 [Wed, 18 Apr 2018 08:36:14 +0000 (08:36 +0000)]
Enable Depthwiseconv2D of CpuExecutor (#617)

Add the DEPTHWISECONV2D operation file and enable the operation with float support.

6 years agoFix test driver not to print message on benchmark (#770)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 08:12:47 +0000 (17:12 +0900)]
Fix test driver not to print message on benchmark (#770)

Fix test driver not to print message such as ones from wget on benchmark
mode.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years ago[Build] Add arch `arm64` in Makefile (#775)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 08:06:05 +0000 (17:06 +0900)]
[Build] Add arch `arm64` in Makefile (#775)

Add archicture `arm64`.
For arm64, android is the only OS supported for now.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoEnable acl/neon backend (#776)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Apr 2018 06:51:21 +0000 (15:51 +0900)]
Enable acl/neon backend (#776)

This will add acl/neon kernel implementations to kernel lookup tables

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoTFLite Model tool: Use argparse library (#772)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 06:51:13 +0000 (15:51 +0900)]
TFLite Model tool: Use argparse library (#772)

Use argparse library to define and parse argument

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoTFLIte model parser: More tensor information (#732)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 06:50:17 +0000 (15:50 +0900)]
TFLIte model parser: More tensor information (#732)

* TFLIte model parser: More tensor information

Print tensor debugging name
Print shape as scalar if data rank is 0

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update README.md

Update README.md to print tensor name

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoTFLite run: Define more custom operator (#777)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 06:46:41 +0000 (15:46 +0900)]
TFLite run: Define more custom operator (#777)

Define more custom operator using updated model
Print only.

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoClean include section of ExecutionBuilder (#778)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 06:28:39 +0000 (15:28 +0900)]
Clean include section of ExecutionBuilder (#778)

This commit cleans include section of ExecutionBuilder.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoUpdate TestValidation.cpp to android master branch for runtime (#742)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 06:28:15 +0000 (15:28 +0900)]
Update TestValidation.cpp to android master branch for runtime (#742)

* Update TestValidation.cpp to android master branch for runtime

This commit updates TestValidation.cpp to anroid master branch(5596ca500) for runtime.
Related : #611

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Change master test to TestValidation2.cpp

6 years agoUse const for readonly shape (#773)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Apr 2018 05:47:15 +0000 (14:47 +0900)]
Use const for readonly shape (#773)

This will add const reference to method that return value is used read only
- this will prevent memory copy

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoIntroduce 'make_alloc' helper (#769)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 05:46:41 +0000 (14:46 +0900)]
Introduce 'make_alloc' helper (#769)

This commit introduces 'make_alloc' helper which makes it easy to use
malloc on a specific type, and revises random test implementations using
this new helper.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years ago[CMake] Do not force TARGET_OS to be HOST_OS (#771)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 04:43:39 +0000 (13:43 +0900)]
[CMake] Do not force TARGET_OS to be HOST_OS (#771)

Currently TARGET_OS was always forced to be HOST_OS.
It have not been an issue since all OS we handle was linux, so far.
For the future, we should TARGET_OS is set to HOST_OS only if it is not given.

6 years agoRegister concat to nnfw kernel table (#767)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Apr 2018 03:52:28 +0000 (12:52 +0900)]
Register concat to nnfw kernel table (#767)

This will add concatenationFloat32 on ACL to kernel lookup table

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix wrong report dir on test_driver.sh (#754)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 00:42:46 +0000 (09:42 +0900)]
Fix wrong report dir on test_driver.sh (#754)

When test_driver.sh run unittest, the report dir was changed by the
path where test_driver.sh run. This commit fixes the report dir.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoAdd format check package to docker image (#764)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 00:42:30 +0000 (09:42 +0900)]
Add format check package to docker image (#764)

Add clang-format-3.9, pip, and yapf for format checker

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd svace to gitignore (#766)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Apr 2018 00:38:24 +0000 (09:38 +0900)]
Add svace to gitignore (#766)

This will add SVACE data folder .svace-dir to .gitignore

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[CMake] Extract pthread as a variable (#760)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Apr 2018 00:09:15 +0000 (09:09 +0900)]
[CMake] Extract pthread as a variable (#760)

Instead of just writing `pthread`, use `${LIB_PTHREAD}`.
This is for the future, so Android config will override it to an empty value.
Since BIONIC libc library contains pthread library so it will emit an error if
`-lpthread` is passed to linker.

6 years agoUpdate tflite file API (#711)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 00:08:49 +0000 (09:08 +0900)]
Update tflite file API (#711)

Update tflite file API generated by flatc
Using update schema file in tensorflow 1.7

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoresolve #757 (#765)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Apr 2018 00:05:59 +0000 (09:05 +0900)]
resolve #757 (#765)

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoAdd lcov-to-cobertura conversion tool (#755)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 18 Apr 2018 00:04:29 +0000 (09:04 +0900)]
Add lcov-to-cobertura conversion tool (#755)

* Add lcov-to-cobertura conversion tool

This script converts lcov result to covertura format.
This script will be used on CI side for publishing line coverage result.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Add original source link

6 years agoShow max absolute/relative diff (#761)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 22:16:26 +0000 (07:16 +0900)]
Show max absolute/relative diff (#761)

This commit revises NNAPI test framework to show max absolute/relative
diff information at the end.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoStringfy COVERAGE_BUILD (#762)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 10:23:58 +0000 (19:23 +0900)]
Stringfy COVERAGE_BUILD (#762)

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd a unit test of FC-FC (#759)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 09:23:47 +0000 (18:23 +0900)]
Add a unit test of FC-FC (#759)

This commit adds a unit test of an FC layer followed by another FC
layer.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd test coverage build (#744)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 08:51:22 +0000 (17:51 +0900)]
Add test coverage build (#744)

* Add test coverage build

1. add flags for test coverage build
2. add script to enable on CI

* Add OPTION init

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd lcov to docker image (#752)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 08:51:12 +0000 (17:51 +0900)]
Add lcov to docker image (#752)

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoFix wrong running benchmark test (#753)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 08:50:14 +0000 (17:50 +0900)]
Fix wrong running benchmark test (#753)

Fixes wrong benchmark test. According to introducing run_test.sh's
options, it needs to add options properly.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoChange input/weights/bias/output shape of FC according to NNAPI spec (#750)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 08:28:03 +0000 (17:28 +0900)]
Change input/weights/bias/output shape of FC according to NNAPI spec (#750)

This commit changes input/weights/bias/output shape
to follow the NNAPI specification.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoRevise code of printing summary of framework test on test_driver.sh (#748)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 07:27:39 +0000 (16:27 +0900)]
Revise code of printing summary of framework test on test_driver.sh (#748)

Revises code of printing summary of framework test on test_driver.sh by
applying options from run_test.sh.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoAdd summary of verification on test driver (#749)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 07:25:45 +0000 (16:25 +0900)]
Add summary of verification on test driver (#749)

Enables test driver to print summary(tap) of the result on verification

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoInitial code of Concatenation on ACL (#746)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Apr 2018 06:48:52 +0000 (15:48 +0900)]
Initial code of Concatenation on ACL (#746)

This will add initial implementation of Concatenation on ACL CL and NEON

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoPrint summary of benchmark on test_driver.sh (#739)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 05:33:30 +0000 (14:33 +0900)]
Print summary of benchmark on test_driver.sh (#739)

Enables test_driver.sh to print summary of benchmark. The printed
summary has only 'mean' result of benchmark.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoChange assertion of MatrixWeightAccessor to accept 1D and 2D (#747)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 04:34:31 +0000 (13:34 +0900)]
Change assertion of MatrixWeightAccessor to accept 1D and 2D (#747)

This commit change assertion condition to accept both 1D and 2D tensors
for MatrixWeightAccessor similar to MatrixOutputAccessor.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoCoding rule check script (#730)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 04:25:43 +0000 (13:25 +0900)]
Coding rule check script (#730)

Check coding rule for c++ code and python code
Use clang-format to check c++ coding rule, and use yapf to use python coding  rule based on PEP8

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoClang format file for cpp coding rule (#712)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 04:25:25 +0000 (13:25 +0900)]
Clang format file for cpp coding rule (#712)

Define C++ coding rule

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[NNOP] Introduce MatrixOutputAccessor (#741)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 04:05:38 +0000 (13:05 +0900)]
[NNOP] Introduce MatrixOutputAccessor (#741)

This commit introduces MatrixOutputAccessor to process 2D output tensors.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoRegister ACL operators to NN runtime (#721)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Apr 2018 03:20:31 +0000 (12:20 +0900)]
Register ACL operators to NN runtime (#721)

This will add ACL operators to NN runtime "acl" items so that we can use them
- Operation itself is not verified yet, we need to test and fix if problems exist

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoRename and relocate logging for runtime (#713)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 02:11:24 +0000 (11:11 +0900)]
Rename and relocate logging for runtime (#713)

This commit renames and relocates logging for runtime (remove android dep.)

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoFix unusual assertion in CONV2D Op. (#707)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 02:11:03 +0000 (11:11 +0900)]
Fix unusual assertion in CONV2D Op. (#707)

This commit fixes unusual assertion in CONV2D Op likes #430.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImplement Usage of test_driver.sh (#727)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 01:29:14 +0000 (10:29 +0900)]
Implement Usage of test_driver.sh (#727)

Fills Usage function which prints help messages for options.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoFix softmax with ACL (#733)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Apr 2018 01:26:51 +0000 (10:26 +0900)]
Fix softmax with ACL (#733)

* Fix softmax with ACL

This will fix softmaxFloat32 implementation to use rank 2 input
- this change is to run Inception V3 model
- as ACL shrinks rank as high order size is 1, input/output actually be a vector

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* add test for rank 4

* apply for non-support ranks

* return false for release build

6 years agoRemove original ExecutionCallback inheritance (#728)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 01:26:07 +0000 (10:26 +0900)]
Remove original ExecutionCallback inheritance (#728)

This commit removes original ExecutionCallback inheritance.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoRemove remaining ExecutionPlan codes in ExecutionBuilder (#723)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 01:25:49 +0000 (10:25 +0900)]
Remove remaining ExecutionPlan codes in ExecutionBuilder (#723)

This commit removes remaining ExecutionPlan codes in ExecutionBuilder.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd NYI message instead of assertion in CpuExecutor (#706)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 01:25:29 +0000 (10:25 +0900)]
Add NYI message instead of assertion in CpuExecutor (#706)

This commit adds NYI message instead of assertion which causes CI failure in CpuExecutor.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd options for run_test.sh (#715)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Apr 2018 00:58:34 +0000 (09:58 +0900)]
Add options for run_test.sh (#715)

* Add options for run_test.sh

Adds handling options for run_test.sh

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Implement Usage of run_tests.sh

* Fix wrong description of --driverbin

6 years agoShow total number of unittest set (#710)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 00:57:31 +0000 (09:57 +0900)]
Show total number of unittest set (#710)

- Show total number of unittest set

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoAdd how-to-contribute document (#718)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 00:56:56 +0000 (09:56 +0900)]
Add how-to-contribute document (#718)

* Add how-to-contribute document

For issue #694

This commit adds the how-to-contribute document.

The document is based on
https://github.sec.samsung.net/STAR/nncc/blob/master/doc/contribution_guide.md.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
* Add a link to roadmap

* Add a note to mention the origin of this document

6 years agoadd pooling test cases which are similar to inception v3 slim (#735)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Apr 2018 00:21:31 +0000 (09:21 +0900)]
add pooling test cases which are similar to inception v3 slim (#735)

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago[Pure ACL Runtime] Support Fully Connected (#731)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 00:17:13 +0000 (09:17 +0900)]
[Pure ACL Runtime] Support Fully Connected (#731)

This commit partially implements ANEURALNETWORKS_FULLY_CONNECTED operation
in pure ACL Runtime to allow pure ACL runtime to execute inceptoin v3
non-slim model.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoBuild fix on nnfw_support_nnapi by adding -fPIC (#714)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 17 Apr 2018 00:14:52 +0000 (09:14 +0900)]
Build fix on nnfw_support_nnapi by adding -fPIC (#714)

This is required to enable test coverage build.
During building with `-fprofile-arcs -ftest-coverage`, build fails as
follows:
libnnfw_support_nnapi.a(Utils.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years ago[NNAPI Random Test] Add 'fully_connected_1' test (#720)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 07:47:03 +0000 (16:47 +0900)]
[NNAPI Random Test] Add 'fully_connected_1' test (#720)

This commit introduces 'fully_connected_1' test which allows us to test
the implementation of ANEURALNETWORKS_FULLY_CONNECTED operation with
random data.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years ago[Pure ACL Runtime] Support Softmax (#726)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 07:45:07 +0000 (16:45 +0900)]
[Pure ACL Runtime] Support Softmax (#726)

This commit implements 'softmax' operation support in Pure ACL Runtime.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agocontrib: add the top-level CMakeLists and example (#722)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 07:23:44 +0000 (16:23 +0900)]
contrib: add the top-level CMakeLists and example (#722)

For issue #680

This commit adds an example for the contrib directory as well as the
top-level CMakeLists.txt.

The files were copied from STAR/nncc/contrib and modified.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoPrint result of framework test on test_driver.sh (#708)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 16 Apr 2018 07:15:25 +0000 (16:15 +0900)]
Print result of framework test on test_driver.sh (#708)

Prints framework_test.tap which is the result of framework test by
run_tests.sh.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years ago[NNOP] Introduce VectorInputAccessor (#717)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 07:14:39 +0000 (16:14 +0900)]
[NNOP] Introduce VectorInputAccessor (#717)

this commit introduces VectorInputAccessor to get input for FC-FC.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd benchmark test to test_driver.sh (#648)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 16 Apr 2018 07:05:40 +0000 (16:05 +0900)]
Add benchmark test to test_driver.sh (#648)

* Add benchmark test to test_driver.sh

Enables running tflite_benchmark in test_driver.sh. To do
tflite_benchmark, test_driver.sh needs --benchmark option.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Fix export statement and echo messages

6 years agoAdd a testcase of pooling with Activation RELU (#696)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Apr 2018 06:39:56 +0000 (15:39 +0900)]
Add a testcase of pooling with Activation RELU (#696)

* Add pooling testcases with RELU

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* changed location because of "Insufficient Padding!" error
-Actually, I don't know why this error happens.
-After I changed the position, it works without error.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Insert negative integers to input data in RELU cases.
Initialize input data with TensorWrapper

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago[Pure ACL] Partially Support Reshape Operation (#709)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 06:16:00 +0000 (15:16 +0900)]
[Pure ACL] Partially Support Reshape Operation (#709)

This commit implements partial support over reshape operation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoApply build type to ACL scons build (#701)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Apr 2018 06:15:22 +0000 (15:15 +0900)]
Apply build type to ACL scons build (#701)

This will apply debug or release type to ACL scons build

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoCreate a contrib directory and add README (#702)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 06:13:23 +0000 (15:13 +0900)]
Create a contrib directory and add README (#702)

For issue #680

This patch creates a contrib directory and adds README.md that describes
the purpose of the contrib directory.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years ago[NNOP] Introduce NEON Reshape layer (#705)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 05:35:35 +0000 (14:35 +0900)]
[NNOP] Introduce NEON Reshape layer (#705)

This commit introduces a reshape layer using NEON and its unittest.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years ago[NNOP] Add more unit tests for FC (#703)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 05:35:23 +0000 (14:35 +0900)]
[NNOP] Add more unit tests for FC (#703)

This commit inserts two additional unittests for FC
- conv_fc
- inceptionv3

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years ago[Pure ACL Runtime] Set Stride before setting padding (#700)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 05:35:07 +0000 (14:35 +0900)]
[Pure ACL Runtime] Set Stride before setting padding (#700)

ANEURALNETWORKS_PADDING_SAME algorithm uses stride values when computing
padding values, but Conv2D implementation has a bug that compute padding
size using uninitialized stride values.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoTizen gbs build TestGenerated from Android NN test (#678)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Apr 2018 04:29:44 +0000 (13:29 +0900)]
Tizen gbs build TestGenerated from Android NN test (#678)

Tizen gbs uses g++-6.2, which had been applied with most g++-6.3.
In case of tizen gbs build, g++-6.2 would be ok.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agog++-6.3 can build TestGenerated from Android NN test (#676)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Apr 2018 04:29:11 +0000 (13:29 +0900)]
g++-6.3 can build TestGenerated from Android NN test (#676)

Currently g++ 6.3 is not permitted to compile TestGenerated.
The condition is fixed so that g++ 6.3 can try to build.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years ago[NNOP] Process various dimensions of weights and ouput for FC (#687)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 04:27:35 +0000 (13:27 +0900)]
[NNOP] Process various dimensions of weights and ouput for FC (#687)

This commit improves processing various dimensions of weights and output for
FC. The fully connected layer's weight and output can have various
dimensions. There can be more dimensions to be supported, but for now,
we support as below:
- 4D or 2D for weights
- 4D or 1D for outputs

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd Softmax in NEON (#691)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Apr 2018 04:15:43 +0000 (13:15 +0900)]
Add Softmax in NEON (#691)

This will add Softmax operator with ACL/NEON backend

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoSubstitue run_tests.sh to test_driver.sh for make check (#669)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 16 Apr 2018 03:51:12 +0000 (12:51 +0900)]
Substitue run_tests.sh to test_driver.sh for make check (#669)

Substitue run_tests.sh to test_driver.sh for make check.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years ago[Pure ACL Runtime] Support 'Concat' operation (#693)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 03:35:59 +0000 (12:35 +0900)]
[Pure ACL Runtime] Support 'Concat' operation (#693)

This commit introduces partial support on ANEURALNETWORKS_CONCATENATION
operation.

Only feature map concat over depth axis is supported currently.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoModel parser: new operators by toco (#684)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 16 Apr 2018 02:27:29 +0000 (11:27 +0900)]
Model parser: new operators by toco (#684)

Parse new operators generated by toco in tensroflow 1.7

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>