김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 07:49:16 +0000 (16:49 +0900)]
Apply .FORMATCHECKED to libs (#1215)
This commit applies format checker to directory `libs`.
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 07:47:57 +0000 (16:47 +0900)]
Remove download_dependencies.tar.gz (#1148)
The old version of this patch has already been applied to the
`release/tizen-5.0-m1` branch by PR #1116.
This patch removes packaging/download_dependencies.tar.gz and uses
packages in externals/tensorflow.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 07:10:14 +0000 (16:10 +0900)]
Enable RESIZE_BILENEAR for CPU fallback (#1216)
- Enable RESIZE_BILENEAR for CPU fallback
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 15 May 2018 07:08:39 +0000 (16:08 +0900)]
[tflite_run] Dump input and output tensor separately (#1214)
After `interpreter.Invoke()` input is no longer valid in tflite interpreter
so this commit revises to dump inputs before it and dump outputs after it.
Also the dumper has changed to have a copy of each tensor.
Resolve #1138
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 07:08:30 +0000 (16:08 +0900)]
Quote pattern on lcov (#1213)
To fix daily-arm-coverage, quote patterns during lcov
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 06:51:59 +0000 (15:51 +0900)]
Add more framework tests (#1211)
Add framework tests
- Casting: 4D tensor integer type to float type
- Resize bilinear: 4D input tensor, 4D output tensor (x2 width, x2 height)
- Custom: TensorFlowMax, 2D input tensor with scalar reduction indice, 1D output
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 06:49:29 +0000 (15:49 +0900)]
Locate script library correctly (#1210)
- Locate script library correctly
This bug was intrdocued from PR 1183
- Locate script library correctly
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 15 May 2018 04:54:28 +0000 (13:54 +0900)]
Enable floor and tanh from NN generated tests (#1203)
Enable floor and tanh by avoiding name conflict with underscore.
In addition, generator script path in log and generated file is
corrected since the path is changed.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 04:34:08 +0000 (13:34 +0900)]
Framework test: arithmetic operations (#1207)
Add framework tests for arithmetic operations: ADD, SUB, MUL, DIV
Set disabled as default
ADD 1D: operand 1 and 2 are 1D tensor
ADD 4D: operand 1 and 2 are 4D tensor
SUB Broadcast: operand 1 is 4D tensor and operand 2 is scalar
MUL Broadcast: operand 1 is 4D tensor and operand 2 is 1D tensor
DIV Broadcast: operand 1 is 4D tensor and operand 2 is scalar
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Saurav Babu/Advanced SW Team/./삼성전자 [Tue, 15 May 2018 03:49:12 +0000 (09:19 +0530)]
TFLiteSharp: Added spec file to build using gbs (#1162)
This patch adds skeleton code for native c++ binding between c# api and
tflite. This patch also adds packaging to build native cpp binding and
c# api using gbs. It will first build the TFLiteNative package
containing native c++ bindings and then it will build TFLiteSharp(c# api package)
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 03:48:06 +0000 (12:48 +0900)]
Introduce a helper for scripts (#1183)
- Introduce docker_helper for scripts
- Apply docker_helper to docker_run_test.sh as a first use case
- Will apply docker_helper to other scripts later
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 15 May 2018 01:07:41 +0000 (10:07 +0900)]
Introduce doxygen for source code documentation. (#1204)
- add `/docs/doxygen` folder and `Doxyfile` for this project
- update `.gitignore` and `.ctags` file
- update Docker file to install `doxygen` and `graphviz` component
```
$ cd $NNFW_HOME/docs/doxygen
$ doxygen
$ <OPEN `html/index.html` with WEB BROWSER>
```
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 15 May 2018 00:20:03 +0000 (09:20 +0900)]
Replace CLUniqueTensor and NEUniqueTensor with UniqueTensor (#1205)
This commit introduces below declarations:
```
using NEUniqueTensor = UniqueTensor<::arm_compute::Tensor>;
using CLUniqueTensor = UniqueTensor<::arm_compute::CLTensor>;
```
instead of implementing NEUniqueTensor and CLUniqueTensor separately.
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 15 May 2018 00:18:02 +0000 (09:18 +0900)]
[tflite_run] Load IFM from dumped file (#1202)
* [tflite_run] Load IFM from dumped file
So far we only used default input(all zeros) but now we can use inputs from t
he dumped file. This is reasonable since input and output must be a pair.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* [tflite_run] Add conflicting options check
Add conflicting options check - `input` and `compare`
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 23:46:48 +0000 (08:46 +0900)]
Fix typo on DOCKER_ENV_VARS (#1200)
Fix typo on DOCKER_ENV_VARS
1. DOCKER_EVN_VARS -> DOCKER_ENV_VARS
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 08:07:11 +0000 (17:07 +0900)]
Update the link to NeuralNetworks.h in the HLD doc (#1196)
After updating the source tree structure, the link to NeuralNetworks.h
in the HLD doc was broken. This patch fixes the broken link.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 07:25:14 +0000 (16:25 +0900)]
Enable MobileNet in the integration test (#1195)
For #871
This patch enables MobileNet in the integration test.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
Enabling TANH activation in CpuExecutor (#1191)
This commit enables tanh activation operation.
Signed-off-by: Siva Sai Vaddipati <siva.sai@samsung.com>
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 04:43:21 +0000 (13:43 +0900)]
Enable MobileNet in the benchmark test (#1194)
For EPIC 2 (#238)
This patch adds MobileNet to the list of benchmark tests.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 03:52:13 +0000 (12:52 +0900)]
Introduce git-push hook (#1184)
This commit introduces git-push hook and its installer.
Originally created by @wateret.
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 03:16:22 +0000 (12:16 +0900)]
Add gitignore: test report (#1192)
Update gitignore to ignore test report generated by tests/framework/run_test.sh
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 14 May 2018 00:03:53 +0000 (09:03 +0900)]
Update variable name in scripts to keep consistency (#1181)
- Update variable name in scripts to keep consistency
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 14 May 2018 00:03:01 +0000 (09:03 +0900)]
Enable tests using ASharedMemory_create in TestValidation.cpp (#1164)
* Enable tests using ASharedMemory_create in TestValidation.cpp for NN Runtime tests
We've commented out the tests using `ASharedMemory_create` in `TestValidation.cpp` for NN Runtime tests. But I figured out it's ok to use `ashmem_create_region` instead of `ASharedMemory_create` likes [Memory.cpp](https://github.sec.samsung.net/STAR/nnfw/blob/master/runtimes/nn/runtime/Memory.cpp#L34)
So it seems it will be able to enable the tests using `ASharedMemory_create` in `TestValidation.cpp`.
- Add target includes in nn runtime
- Check bad states
- Enable tests
Close : #1163
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 11 May 2018 07:00:17 +0000 (16:00 +0900)]
Introduce UniqueTensor (#1158)
Since NEUniqueTensor and CLUniqueTensor is very similar,
this commit introduce UniqueTensor to merge them into one.
After this commit, the current implementation of NEUniqueTensor
and CLUniqueTensor will be removed and replaced like below:
```
using NEUniqueTensor = UniqueTensor<::arm_compute::Tensor>;
using CLUniqueTensor = UniqueTensor<::arm_compute::CLTensor>;
```
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 11 May 2018 06:20:19 +0000 (15:20 +0900)]
Provide DOCKER_HOME to gen_coverage_report.sh (#1174)
1. remove `source docker_nnfw` from docker_coverage_report.sh
2. pass DOCKER_HOME to gen_coverage_report.sh
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 11 May 2018 06:14:10 +0000 (15:14 +0900)]
Bring android nn test generator scripts and specs (#1135)
Related issue: #937
run for generating tests
$ runtimes/tests/neural_networks_test/specs/generate_test.sh
Modification to original android NN test:
- Android NN test generator script
: adjusted to our directory structure
- Specs, the inputs to test generator
: V1_1 directory that contains NNAPI 1.1 is removed since it's not used now.
- Directory name
: tools/test_generator -> externals/nnapi_test_generator
since there are many tests in our project
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 11 May 2018 06:12:40 +0000 (15:12 +0900)]
[tflite_run] Relocate image loading step (#1180)
Relocate image loading step to be more natural code flow.
- AssignTensor should be after generating BinImagge
- BinImage is not used after reading
- BinImage is unused in the lambda function (from `measure`)
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 11 May 2018 06:12:28 +0000 (15:12 +0900)]
[tflite_run] Dump input tensors (#1175)
Dump input tensors with output tensors since the output tensors are depend on
input tensors. The loader's behavior is still valid without changes.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 11 May 2018 05:45:04 +0000 (14:45 +0900)]
[tflite_run] Change variable names (#1179)
Now that the tensor file contains both inputs and outputs output_loader/dumper
is not a proper name for that.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 11 May 2018 05:29:07 +0000 (14:29 +0900)]
Use NeuralNetworks.h instead of nnapi.h (#1176)
For issue #980
This patch replaces use of nnapi.h with NeuralNetworks.h.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 11 May 2018 00:42:13 +0000 (09:42 +0900)]
Introduce nnfw_docker_tizen and use it (#1161)
- Introduce nnfw_docker_tizen by extracting code related to nnfw_docker_tizen
- Use it in docker_gbs_build.sh
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 11 May 2018 00:40:52 +0000 (09:40 +0900)]
Add env variable option when generating coverage report (#1160)
1. add env variable to control coverage gen
- SRC_PREFIX : prefix used on generating lcov info file
- GENHTML_FLAG : flag to pass to genhtml command(e.g. --no-source)
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 11 May 2018 00:37:41 +0000 (09:37 +0900)]
Add gcov data pulling (#1155)
1. tizen_xu4_test.sh supports gcov data pulling from xu4 tizen.
2. clean up test dir before testing
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 10 May 2018 08:27:49 +0000 (17:27 +0900)]
Use common file for scrtips related to nnfw_docker (#1153)
- Use common file nnfw_docker for scrtips related to nnfw_docker
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 10 May 2018 08:04:44 +0000 (17:04 +0900)]
Use common file for scrtips in CI related to nnfw_docker (#1154)
- Use common file for scrtips in CI related to nnfw_docker
- These scripts are not used for PR-based CI job.
Therefore we have to check it running well in CI manually.
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 10 May 2018 07:53:17 +0000 (16:53 +0900)]
[tflite_run] Dumped file contains tensor indices (#1144)
Store tensor indice numbers in the binary file
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 10 May 2018 07:42:23 +0000 (16:42 +0900)]
Separate test_driver.sh to small scripts (#1128)
* Separate test_driver.sh to small scripts
test_driver.sh is script file but too big. Separate big script to small
scripts and prepare for converting these to ones in python.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Add license text and remove `uniq` in print_to_json
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 10 May 2018 07:10:09 +0000 (16:10 +0900)]
Extract common code of docker image (#1150)
- Introduce nnfw_docker by extracting common code related to docker image nnfw_docker
- Use nnfw_docker in docker_run_test.sh to see it's working
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 10 May 2018 05:47:16 +0000 (14:47 +0900)]
[tflite_run] Remove OutputTensorDumper/Loader (#1145)
Remove old version and use TensorDumper/Loader instead.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 10 May 2018 01:24:52 +0000 (10:24 +0900)]
Change unsuitable varable name (#1143)
* Change variable names start from `NPU_COMPILER_` to `NNFW_`
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 9 May 2018 23:58:02 +0000 (08:58 +0900)]
[tflite_run] Introduce TensorDumper/Loader (#1139)
Just copy of OutputTensorDumper/Loader and changed only class name.
These classes will dump/load input tensors as well as output tensors which
will eventually replace OutputTensorDumper/Loader.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 9 May 2018 05:58:16 +0000 (14:58 +0900)]
[tflite_run] Reorder print message (#1136)
Elapsed time message comes earlier than dump message.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 9 May 2018 02:25:24 +0000 (11:25 +0900)]
Add object allocation info to log message (#1134)
* Add object allocation info to log message
- display `--> (type: address)` information at the end of the log line for each allocation call.
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 9 May 2018 01:25:12 +0000 (10:25 +0900)]
Use docker image name from common.sh (#1126)
- Use docker image name from common.sh
and use same convention with other scripts.
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 9 May 2018 01:24:29 +0000 (10:24 +0900)]
Update scripts for cross build (#1122)
* Update scripts for cross build
- Update docker_build_cross_arm_ubuntu.sh with changes in
docker_build_cross_arm_ubuntu_without_aclbuild.sh
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 9 May 2018 01:06:55 +0000 (10:06 +0900)]
Update howto document of docker (#1121)
- Update howto document of docker to reflect recent changes
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 8 May 2018 23:32:01 +0000 (08:32 +0900)]
Update LD_LIBRARY_PATH in `howto.md` document (#1132)
* Update LD_LIBRARY_PATH in `howto.md` document
- reflect the path according to directory structure change.
Signed-off-by: Sung-Jae Lee <sjlee@mail.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 8 May 2018 14:36:55 +0000 (23:36 +0900)]
Install sdb on nnfw_docker_tizen (#1131)
1. install sdb on nnfw_docker_tizen
2. install wget and unzip
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 8 May 2018 11:35:07 +0000 (20:35 +0900)]
Pass env variable LD_LIBRARY_PATH while invoking test driver (#1130)
- introduce `-ldlibrary=` option
- set `$NNFW_HOME/Produce/out/lib` as default value fo LD_LIBRARY_PATH
- pass env variable `LD_LIBRARY_PATH` while invoking test driver
Signed-off-by: Sung-Jae Lee <sjlee@mail.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 8 May 2018 10:33:23 +0000 (19:33 +0900)]
Support Android build for tflite_run (#1127)
Some include path were added manually since not all tools are supported on
Android yet.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 8 May 2018 06:48:58 +0000 (15:48 +0900)]
Add dependent libs for ACL libs (#1118)
This will add ACL dependent system libs to ACL for compiler versions don't add these for implicitly
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이성재/동작제어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>
윤현식/동작제어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)
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>
이한종/동작제어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>
이한종/동작제어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>
박세희/동작제어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>
서상민/동작제어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>
이한종/동작제어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>
오형석/동작제어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>
서상민/동작제어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>
이한종/동작제어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>
이춘석/동작제어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>
서상민/동작제어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>
이한종/동작제어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>
김정현/동작제어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>
김정현/동작제어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>
서상민/동작제어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>
김정현/동작제어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>
오형석/동작제어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>
서상민/동작제어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>
김정현/동작제어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>
김정현/동작제어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>
이춘석/동작제어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>
이상규/동작제어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>
이상규/동작제어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>
이춘석/동작제어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>
김정현/동작제어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>
이춘석/동작제어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>
최형규/동작제어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>
박세희/동작제어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>
이한종/동작제어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>
김정현/동작제어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>
이상규/동작제어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>
이한종/동작제어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>
김용섭/동작제어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>
윤현식/동작제어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>
김용섭/동작제어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.
박세희/동작제어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>
오형석/동작제어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>
김수진/동작제어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>
이한종/동작제어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>
김용섭/동작제어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>
이한종/동작제어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>
오형석/동작제어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>
이춘석/동작제어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>
서상민/동작제어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>
김정현/동작제어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>
이상규/동작제어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>
이상규/동작제어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>