platform/core/ml/nnfw.git
4 years agoDist/Tizen: revert reverted fix 67/219767/1 accepted/tizen/unified/20191210.051304 submit/tizen/20191210.012644 submit/tizen/20191210.033651
MyungJoo Ham [Tue, 10 Dec 2019 02:03:02 +0000 (11:03 +0900)]
Dist/Tizen: revert reverted fix

Do not hardcode shared library depedencies

Change-Id: I66ad175038a2ed7df8759f9150ecc5080f19f14a
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
4 years agoProtobuf module mode import for Windows build (#9447) accepted/tizen/unified/20191209.144032 submit/coverity/20191209.074934 submit/coverity/20191209.074953 submit/tizen/20191209.075212 submit/tizen/20191209.091506
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 9 Dec 2019 07:38:12 +0000 (16:38 +0900)]
Protobuf module mode import for Windows build (#9447)

* Protobuf module mode import for Windows build

Windows native build only can import with legacy 'module' mode import.
This commit is to give a Windows build a way to import Protobuf. Note
that this will not affect existing default behavior.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Move option to top

* USE_PROTOBUF_LEGACY_IMPORT

Change-Id: I8963f857a9b5be23fa7e958e25d1003a81444e28
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
4 years ago[moco-import] Register FakeQuantWithMinMaxVars (#9460)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 9 Dec 2019 07:12:03 +0000 (16:12 +0900)]
[moco-import] Register FakeQuantWithMinMaxVars (#9460)

This commit register FakeQuantWithMinMaxVars node to Nodes.h

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[neurun] Introduce EventCollectorGlobal (source) (#9457)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 9 Dec 2019 06:05:25 +0000 (15:05 +0900)]
[neurun] Introduce EventCollectorGlobal (source) (#9457)

Add source file `EventCollectorGlobal.cc` which should have been
included in #9443.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Move some files from model into ir directory (#9448)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 9 Dec 2019 03:44:11 +0000 (06:44 +0300)]
[neurun] Move some files from model into ir directory (#9448)

* Move some files from `model` into `ir` directory.
* Move contained symbols into `neurun::ir` namespace, fixing uses where possible.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Introduce EventCollectorGlobal (#9443)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 9 Dec 2019 03:43:27 +0000 (12:43 +0900)]
[neurun] Introduce EventCollectorGlobal (#9443)

Introduce EventCollectorGlobal for event collection from anywhere

Part of #9241

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Check backend initialization success (#9454)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Dec 2019 03:35:03 +0000 (12:35 +0900)]
[neurun] Check backend initialization success (#9454)

Backend initialize() function return boolean to check initialization success/fail

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun/gbs] Fix gbs aarch64 build (#9435)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Dec 2019 02:24:24 +0000 (11:24 +0900)]
[neurun/gbs] Fix gbs aarch64 build (#9435)

Fix gbs build error when there is no skiplist for target architecture

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[build] Use aarch64 for arm64 (#9417)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Dec 2019 01:43:59 +0000 (10:43 +0900)]
[build] Use aarch64 for arm64 (#9417)

Change naming arm64 to aarch64
Naming arm64 is used for external tools and libraries
Update build rootfs script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[libbenchmark] Apply Phase into runners and MemoryPoller (#9421)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 9 Dec 2019 01:41:06 +0000 (10:41 +0900)]
[libbenchmark] Apply Phase into runners and MemoryPoller (#9421)

Apply enum class Phase into nnpackage_run, tflite_run and MemoryPoller

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
4 years ago[neurun] Move TypeInfo.h and Shape.h into ir directory (#9427)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 6 Dec 2019 11:39:36 +0000 (14:39 +0300)]
[neurun] Move TypeInfo.h and Shape.h into ir directory (#9427)

* Move `TypeInfo.h` and `Shape.h` in `ir` directory.
* Move `TypeInfo`, `Shape`, `FeatureShape` to `neurun::ir` namespace, fixing uses where possible.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Move InternalType.h into ir directory (#9390)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 6 Dec 2019 11:05:05 +0000 (14:05 +0300)]
[neurun] Move InternalType.h into ir directory (#9390)

* Move `InternalType.h` in `ir` directory.
* Move `Activation`, `PaddingType`, `ExplicitPadding`, `Padding`, `Stride` to `neurun::ir` namespace.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[min_onnx] Support models stored as text (#9426)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 6 Dec 2019 10:29:59 +0000 (13:29 +0300)]
[min_onnx] Support models stored as text (#9426)

Add support for models stored as text.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoAdjust out of range values generated by RandomGenerator (#9418)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 6 Dec 2019 09:48:04 +0000 (18:48 +0900)]
Adjust out of range values generated by RandomGenerator (#9418)

This commit adjusts out of range values generated by RandomGenerator to be mapped to end points of the range.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Move DataType.h into ir directory (#9389)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 6 Dec 2019 09:21:35 +0000 (12:21 +0300)]
[neurun] Move DataType.h into ir directory (#9389)

* Move `DataType.h` in `ir` directory.
* Move `DataType` to `neurun::ir` namespace.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoPropagate user's cmake generator setting (#9442)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 6 Dec 2019 08:16:47 +0000 (17:16 +0900)]
Propagate user's cmake generator setting (#9442)

This commit propagates user's (or default) cmake generator setting to
external build setting.

External build project identifiers also changed for CI maintenance.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[docker] Fix docker image blocking (#9433)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 6 Dec 2019 04:28:05 +0000 (13:28 +0900)]
[docker] Fix docker image blocking (#9433)

Fix ubuntu 18.04 docker image blocking by waiting interactive input for tzdata configuration

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[rt/misc] Change implementation of EventRecorder (#9424)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 6 Dec 2019 04:26:59 +0000 (13:26 +0900)]
[rt/misc] Change implementation of EventRecorder (#9424)

As `EventRecorder` does not have to write to file on-the-fly,
this commit has the following changes.

- Remove ostream object from the member list
- Introduce `writeToFile` method and remove `init and `fini`

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[infra] Added comment for GTest (#9430)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 6 Dec 2019 03:56:02 +0000 (12:56 +0900)]
[infra] Added comment for GTest (#9430)

Added comment for GTest. Handling GTest is different from other package so this comment explains about that.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[nnkit] Build only when prepared (#9428)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 6 Dec 2019 02:17:42 +0000 (11:17 +0900)]
[nnkit] Build only when prepared (#9428)

This commit builds target `nnkit-benchmark` and `nnkit-run` only when
their pre-requisites prepared.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[infra/docker] Update install package (#9405)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 11:54:39 +0000 (20:54 +0900)]
[infra/docker] Update install package (#9405)

* [infra/docker] Update install package

- pylint: check python format
- aarch64 build tool

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

4 years ago[neurun] Move Layout.h into ir directory (#9391)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 5 Dec 2019 11:32:06 +0000 (14:32 +0300)]
[neurun] Move Layout.h into ir directory (#9391)

* Move `Layout.h` in `ir` directory.
* Move `Layout` to `neurun::ir` namespace, fixing uses where possible.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[encodump] Build only when prepared (#9406)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 5 Dec 2019 09:57:47 +0000 (18:57 +0900)]
[encodump] Build only when prepared (#9406)

This commit amends encodump build policy: encodump will not be built
when its dependency not built.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoIntroduce run_profile_neurun.sh for profiling (#9381)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 5 Dec 2019 09:19:47 +0000 (18:19 +0900)]
Introduce run_profile_neurun.sh for profiling (#9381)

* Introduce run_benchmark_model.sh for benchmark

This script runs to benchmark models which listed in
benchmark_model_list.txt.
tflite_cpu, acl_cl, acl_neon and cpu backends are benchmarked with
models.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Change file names

* Apply changed file name and recent changes from PRs

* Move quant models down

* Move profile_model_list.txt into list/

* Fix wrong dir of list and wrong result name

4 years ago[libbenchmark] Introduce enum class Phase (#9361)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 5 Dec 2019 09:08:03 +0000 (18:08 +0900)]
[libbenchmark] Introduce enum class Phase (#9361)

* [libbenchmark] Introduce enum class Phase

MODEL_LOAD, PREPARE and EXECUTE will be sections to be benchmarked

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* add inline keyword to GetPhaseString

* Add handling default of switch

4 years ago[neurun] Remove IObject.h (#9407)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 5 Dec 2019 08:23:20 +0000 (17:23 +0900)]
[neurun] Remove IObject.h (#9407)

All the use of IObjects were removed but `IObject.h`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[tf2tflite] make proto sources shared (#9409)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 5 Dec 2019 08:22:17 +0000 (17:22 +0900)]
[tf2tflite] make proto sources shared (#9409)

* [tf2tflite] make proto sources shared

This commit changes proto sources from STATIC to SHARED.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* add install command

4 years ago[infra/cmd] Pass workspace into docker container (#9404)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 08:20:42 +0000 (17:20 +0900)]
[infra/cmd] Pass workspace into docker container (#9404)

Pass workspace NNAS_WORKSPACE, NNCC_WORKSPACE, NNFW_WORKSPACE into docker container

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/test] Remove all op and profile argument (#9410)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 07:14:37 +0000 (16:14 +0900)]
[runtime/test] Remove all op and profile argument (#9410)

- Remove unused all operation test
- Remove oprofile test argument

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/test] Move test list files (#9397)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 06:02:16 +0000 (15:02 +0900)]
[runtime/test] Move test list files (#9397)

Move test list files into tests/scripts/list

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/test] Remove unused part in test driver (#9395)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 05:50:24 +0000 (14:50 +0900)]
[runtime/test] Remove unused part in test driver (#9395)

- Remove USE_NNAPI related argument; use environment variable directly
- Remove ACL_ENV_ON related argument and implementation: not used

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[exo] Using ofstream with binary mode (#9393)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 5 Dec 2019 02:21:56 +0000 (11:21 +0900)]
[exo] Using ofstream with binary mode (#9393)

Previously, there is no mode setting with dumpToFile, so it worked with text mode by default. This PR fixed the bug.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years agoAdd NNAS SDK 2019/12/15 preset (#9376)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 00:58:03 +0000 (09:58 +0900)]
Add NNAS SDK 2019/12/15 preset (#9376)

This commit add a SDK preset for NNAS 2019/12/15 release. Please note
that this commit does not change the default preset.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[gen_golden] Fix passing wrong parameter for random_sample. (#9387)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 5 Dec 2019 00:57:48 +0000 (09:57 +0900)]
[gen_golden] Fix passing wrong parameter for random_sample. (#9387)

random_sample, used in generating fp32 radom numbers, accepts only 1 parameter.
It fixes the python runtime error for this case.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[runtime/test] Remove unused benchmark script (#9382)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 5 Dec 2019 00:53:22 +0000 (09:53 +0900)]
[runtime/test] Remove unused benchmark script (#9382)

Remove unused benchmark script
- pacl benchmark
- tflite model benchmark

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[min_onnx] Update ONNX schema (#9392)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 4 Dec 2019 18:38:11 +0000 (21:38 +0300)]
[min_onnx] Update ONNX schema (#9392)

Update ONNX schema to version 1.6.0.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Remove `IObject` and derived classes (#9388)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 4 Dec 2019 13:50:54 +0000 (16:50 +0300)]
[neurun] Remove `IObject` and derived classes (#9388)

Remove `IObject` and derived classes.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Remove no longer used template parameter (#9384)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 4 Dec 2019 09:53:41 +0000 (12:53 +0300)]
[neurun] Remove no longer used template parameter (#9384)

Remove template parameter `T_Object` of TensorBuilder, TensorManager, MemoryManager classes.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[CI/script] Remove scripts for pacl (#9380)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Dec 2019 09:08:20 +0000 (18:08 +0900)]
[CI/script] Remove scripts for pacl (#9380)

Remove pacl build and test scripts

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/test] Remove unused python scripts (#9379)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Dec 2019 09:07:47 +0000 (18:07 +0900)]
[runtime/test] Remove unused python scripts (#9379)

Remove unused python test scripts

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[tflite_run] Turn options memory polling and writing report off as default (#9377)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Dec 2019 08:57:02 +0000 (17:57 +0900)]
[tflite_run] Turn options memory polling and writing report off as default (#9377)

Turn options memory polling and writing report off as default

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
4 years ago[libbenchmark] Introduce Result class (#9364)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Dec 2019 08:53:24 +0000 (17:53 +0900)]
[libbenchmark] Introduce Result class (#9364)

Data class between runners(nnpackage_run and tflite_run) and libbenchmark

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
4 years agoPrevent to deallocate constant tensor of acl (#9370)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Dec 2019 08:26:29 +0000 (17:26 +0900)]
Prevent to deallocate constant tensor of acl (#9370)

This commit prevents to deallocate acl's constant tensor used in several nodes.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Rename `graph` to `ir` (#9362)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 4 Dec 2019 08:21:15 +0000 (11:21 +0300)]
[neurun] Rename `graph` to `ir` (#9362)

Rename `src/graph/` and `include/graph/` to `src/ir/` and `include/ir/`, respectively

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[nnpkg_run] support qint8 in h5 load and save (#9373)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Dec 2019 08:05:25 +0000 (17:05 +0900)]
[nnpkg_run] support qint8 in h5 load and save (#9373)

nnpackage_run can load and save qint8.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[gen_golden] Use u1 dtype for loading/dumping uint8 type (#9374)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Dec 2019 07:49:23 +0000 (16:49 +0900)]
[gen_golden] Use u1 dtype for loading/dumping uint8 type (#9374)

Previously it used float type for uint8 case. It fixes the bug.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[neurun] Remove wrapTensor methods (#9358)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 4 Dec 2019 06:37:39 +0000 (09:37 +0300)]
[neurun] Remove wrapTensor methods (#9358)

Remove `wrapTensor` methods of TensorBuilder and TensorManager.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[nnpkg_run] rename namespace NNPackageRun to nnpkg_run (#9369)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Dec 2019 06:20:08 +0000 (15:20 +0900)]
[nnpkg_run] rename namespace NNPackageRun to nnpkg_run (#9369)

It renames namespace name for nnpackage_run.
It was snake style. However, I would like to use same naming style of `neurun`.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[runtime/api] Fix doxygen format (#9368)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Dec 2019 05:48:29 +0000 (14:48 +0900)]
[runtime/api] Fix doxygen format (#9368)

- Add file description
- Move or remove note tag
- Disable autolink: autolink makes invalid link to class because of same class name (ex. Tensor)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoAdd preset support to create-package (#9366)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Dec 2019 05:41:09 +0000 (14:41 +0900)]
Add preset support to create-package (#9366)

This commit allows users to change the SDK configuration (a.k.a preset)
using --preset option.

Please note that this does not change the default behavior.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[infra/cmd] Introduce nnas docker command (#9348)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Dec 2019 05:16:45 +0000 (14:16 +0900)]
[infra/cmd] Introduce nnas docker command (#9348)

Introduce nnas docker-run command

Ex) format check
./nnas docker-run ./nnas format

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[compiler] Remove newline character in CMakeLists.txt (#9367)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Dec 2019 04:13:06 +0000 (13:13 +0900)]
[compiler] Remove newline character in CMakeLists.txt (#9367)

This commit will substitute `\n` character to ` `,
since the blank works not only for linux but also for windows.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
4 years ago[nnpkg_run] Bring out h5 load/dump, allocation to separate files (#9342)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Dec 2019 03:27:53 +0000 (12:27 +0900)]
[nnpkg_run] Bring out h5 load/dump, allocation to separate files (#9342)

nnpackge_run grows bigger and bigger.
This patch factor out the feature implementation into separate files.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[tf2circle-value-pbtxt-remote-test] Introduce README of circle value verification...
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Dec 2019 03:02:29 +0000 (12:02 +0900)]
[tf2circle-value-pbtxt-remote-test] Introduce README of circle value verification (#9175)

* [tf2circle-value-pbtxt-remote-test] Introduce README of circle value verification

This commit will introduce README of `tf2circle-value-pbtxt-remote-test`,
which is for verifying circle value

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* do not write at sudo

4 years agoFirst commit for release documents of compiler (#9354)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Dec 2019 01:28:19 +0000 (10:28 +0900)]
First commit for release documents of compiler (#9354)

This commit includes `tutorial.md` and `getting_started.md`.
`tutorial.md` contains the simple actions for compiling inception_v3
`getting_started.md` contains more detailed sections about compiler

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
4 years agoRemove default check from verify-package (#9350)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Dec 2019 01:28:10 +0000 (10:28 +0900)]
Remove default check from verify-package (#9350)

TF2TFLITE may not exist in NNAS SDK package.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoAdd ONNX-1.6.0 sources (#9363)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 23:07:58 +0000 (02:07 +0300)]
Add ONNX-1.6.0 sources (#9363)

Add cmake scripts to download ONNX-1.6.0 sources.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[mir-onnx-importer] Import comparison operations from ONNX format (#9339)
Gusev Dmitry/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 16:21:48 +0000 (19:21 +0300)]
[mir-onnx-importer] Import comparison operations from ONNX format (#9339)

Operation Greater, Less, Equal were added.

Signed-off-by: Dmitry Gusev <d.gusev@partner.samsung.com>
4 years ago[CI/scripts] Enable tizen tflite loader test tool build (#9344)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 10:19:59 +0000 (19:19 +0900)]
[CI/scripts] Enable tizen tflite loader test tool build (#9344)

Enable tizen tflite loader test tool build for loader test

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[infra/cmake] Clean external dir and overlay (#9356)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 10:19:25 +0000 (19:19 +0900)]
[infra/cmake] Clean external dir and overlay (#9356)

- Remove NNCC_EXTERNAL_DIR
- Remove NNAS_OVERLAY_DIR
  - Use NNFW_OVERLAY_DIR for runtime (cross build)
  - Use NNCC_OVERLAY_DIR for compiler
  - Set EXT_OVERLAY_DIR on each cmake script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Fix uninitialized member in ctor (#9355)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Dec 2019 10:11:20 +0000 (19:11 +0900)]
[neurun] Fix uninitialized member in ctor (#9355)

This fixes uninitialized member in ctor detected by SVACE.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoIntroduce LAYOUT_191215 check (#9326)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 06:28:05 +0000 (15:28 +0900)]
Introduce LAYOUT_191215 check (#9326)

This commit introduces LAYOUT_191215 check rule.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[CI/script] Fix error by old bash version (#9343)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 05:30:24 +0000 (14:30 +0900)]
[CI/script] Fix error by old bash version (#9343)

Fix for loop bug on tizen by old bash version (3.x)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Merge Model into Graph (#9328)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 04:23:55 +0000 (07:23 +0300)]
[neurun] Merge Model into Graph (#9328)

Move `Model` fields into `Graph` and remove `Model`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoMake acl_neon to support InstanceNorm op (#9333)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Dec 2019 04:23:30 +0000 (13:23 +0900)]
Make acl_neon to support InstanceNorm op (#9333)

This commit makes acl_neon to support InstanceNorm op.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[CI/script] Fix mixed backend test list bug (#9345)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 04:20:05 +0000 (13:20 +0900)]
[CI/script] Fix mixed backend test list bug (#9345)

- Don't find acl_cl test list file: not defined, use default setting
- Fix for loop for tizen bash version (3.x)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Replace IObject with ITensor in ConstantInitializer (#9336)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 04:17:21 +0000 (07:17 +0300)]
[neurun] Replace IObject with ITensor in ConstantInitializer (#9336)

Replace uses of `IObject` with `ITensor` in `ConstantInitializer`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Replace IObject with ITensor in OperandContext (#9335)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 03:52:50 +0000 (06:52 +0300)]
[neurun] Replace IObject with ITensor in OperandContext (#9335)

Replace uses of `IObject` with `ITensor` in `OperandContext`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[runtime/api] Update input/output info cuntion comment (#9299)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 01:53:31 +0000 (10:53 +0900)]
[runtime/api] Update input/output info cuntion comment (#9299)

- Fix doxygen format
- Add more comment for nnfw_output_size, nnfw_output_tensorinfo

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/api] Update load and run comment (#9298)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 01:52:58 +0000 (10:52 +0900)]
[runtime/api] Update load and run comment (#9298)

- Fix doxygen format
- Add more comment for nnfw_run

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[CI/script] Use linux test script on tizen (#9329)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 01:40:57 +0000 (10:40 +0900)]
[CI/script] Use linux test script on tizen (#9329)

Instead of using tizen own test script, share linux test script and remove tizen test script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Replace IObject with ITensor in ACL CL backend (#9338)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 01:10:47 +0000 (04:10 +0300)]
[neurun] Replace IObject with ITensor in ACL CL backend (#9338)

Replace uses of `IObject` with `ITensor` in ACL CL backend

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Replace IObject with ITensor in CPU backend (#9337)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 3 Dec 2019 01:10:06 +0000 (04:10 +0300)]
[neurun] Replace IObject with ITensor in CPU backend (#9337)

Replace uses of `IObject` with `ITensor` in CPU backend

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[CI/script] Revise test scripts (#9327)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Dec 2019 00:56:56 +0000 (09:56 +0900)]
[CI/script] Revise test scripts (#9327)

Source common script and use variable

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Add `access` method to tensors (#9334)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 2 Dec 2019 13:17:13 +0000 (16:17 +0300)]
[neurun] Add `access` method to tensors (#9334)

Add virtual method `access` to `ITensor` and derived classes.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[mir] Add comparison operations (#9308)
Gusev Dmitry/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 2 Dec 2019 13:14:37 +0000 (16:14 +0300)]
[mir] Add comparison operations (#9308)

Operations Greater, Less, Equal (elementwise) were added to MIR.

Signed-off-by: Dmitry Gusev <d.gusev@partner.samsung.com>
4 years agoIntroduce ConstantInsertionPass into neurun (#9312)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 09:11:05 +0000 (18:11 +0900)]
Introduce ConstantInsertionPass into neurun (#9312)

This commit introduces ConstantInsertionPass into neurun.
  - Creates new operands as a constant operand to be used on other backend
  - Makes to enable using a constant operand on other backend

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[cmake] Use more cores in building nncc-package (#9324)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Dec 2019 07:50:33 +0000 (16:50 +0900)]
[cmake] Use more cores in building nncc-package (#9324)

Currently it does not use parallel build in build nncc-package. It is so slow.
It will use half of cores that is available in build machine.
It uses half of core since we don't want to allocate all cores in CI machine.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[runtime/api] Update I/O buffer set function comment (#9322)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 07:24:27 +0000 (16:24 +0900)]
[runtime/api] Update I/O buffer set function comment (#9322)

- Fix doxygen format
- Add more comment for nnfw_set_input and nnfw_set_output

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Replace Execution::model with Execution::graph (#9289)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 2 Dec 2019 06:27:00 +0000 (09:27 +0300)]
[neurun] Replace Execution::model with Execution::graph (#9289)

Replace `model()` method of `Execution` class with `graph()` method.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[CI/script] Revise armv7l test script (#9319)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 06:05:56 +0000 (15:05 +0900)]
[CI/script] Revise armv7l test script (#9319)

- Use common script function
- Update argument comment in common script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[CI/script] Use overlay setting (#9316)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 05:29:07 +0000 (14:29 +0900)]
[CI/script] Use overlay setting (#9316)

Use docker volume mount overlay

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/api] Add tensorinfo field comment (#9314)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 05:12:19 +0000 (14:12 +0900)]
[runtime/api] Add tensorinfo field comment (#9314)

Add doxygen comment at nnfw_tensorinfo field

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoAdd to initialize a member of Reader and View (#9318)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 05:11:57 +0000 (14:11 +0900)]
Add to initialize a member of Reader and View (#9318)

This commit adds to initialize a member of Reader and View

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoAdd to initialize a member of ConvolutionLayer of srcn (#9317)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 04:20:15 +0000 (13:20 +0900)]
Add to initialize a member of ConvolutionLayer of srcn (#9317)

This commit adds to initialize a member of ConvolutionLayer of srcn

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoChange GatherLayer's constructor of cpu to initialize members (#9315)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 03:58:09 +0000 (12:58 +0900)]
Change GatherLayer's constructor of cpu to initialize members (#9315)

This commit changes GatherLayer's constructor of cpu to initialize members

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[runtime/api] Update enum value comment (#9247)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 03:13:15 +0000 (12:13 +0900)]
[runtime/api] Update enum value comment (#9247)

Add more comment for each enum value

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Make ChromeTrace trace the entire graph (#9300)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 02:06:46 +0000 (11:06 +0900)]
[neurun] Make ChromeTrace trace the entire graph (#9300)

Make ChromeTrace trace the entire graph

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[CI/script] Introduce common function script (#9296)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 02:00:11 +0000 (11:00 +0900)]
[CI/script] Introduce common function script (#9296)

Introduce common function script infra/scripts/common.sh
Update x64 test script to use common function

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoPrevent overflow by cast in KernelGenerator of acl_cl (#9303)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 01:59:41 +0000 (10:59 +0900)]
Prevent overflow by cast in KernelGenerator of acl_cl (#9303)

This commit prevents overflow by cast in KernelGenerator of acl_cl.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Extract ThreadPool into a separate file (#9302)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 01:57:15 +0000 (10:57 +0900)]
[neurun] Extract ThreadPool into a separate file (#9302)

Extract ThreadPool into a separate file.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoMake backend acl_cl to support InstanceNorm op (#9301)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 01:56:03 +0000 (10:56 +0900)]
Make backend acl_cl to support InstanceNorm op (#9301)

This commit makes ackend acl_cl to support InstanceNorm op.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Replace Model with Graph in ExecEnv (#9287)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 2 Dec 2019 01:10:06 +0000 (04:10 +0300)]
[neurun] Replace Model with Graph in ExecEnv (#9287)

* Change `ExecEnv` to accept `Graph` instead of `Model`.
* Replace `ExecEnv::model` with `ExecEnv::graph`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Organise Chrome Trace data by backend (#9277)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 07:06:51 +0000 (16:06 +0900)]
[neurun] Organise Chrome Trace data by backend (#9277)

Organise Chrome Trace data by backend

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Use Graph instead of Model in tests (#9288)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 07:00:53 +0000 (10:00 +0300)]
[neurun] Use Graph instead of Model in tests (#9288)

Replace uses of `Model` class with equivalent uses of `Graph` class.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Replace IExecutor::model with IExecutor::graph (#9286)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 06:59:45 +0000 (09:59 +0300)]
[neurun] Replace IExecutor::model with IExecutor::graph (#9286)

Replace IExecutor::model (returning Model) with IExecutor::graph, which returns graph. Do the same in derived classes also.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoEnable model::Operand to copy (#9295)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 06:03:10 +0000 (15:03 +0900)]
Enable model::Operand to copy (#9295)

This commit enables model::Operand to copy.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Avoid using Model in nnapi frontend (#9231)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 04:41:33 +0000 (07:41 +0300)]
[neurun] Avoid using Model in nnapi frontend (#9231)

Create `Graph` early and use its methods instead of accessing `Model` fields.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[nnpackage_run] Make csv, memory poller options off (#9273)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 03:59:26 +0000 (12:59 +0900)]
[nnpackage_run] Make csv, memory poller options off (#9273)

* [nnpackage_run] Make csv, memory poller options off

Make nnpackage_run's options 'csv & memory poller' off. It makes ci
slow.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Fix svace error

* Fix argument to write_report

4 years ago[nnpkg-run] generate random input for qint8 type (#9033)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 29 Nov 2019 03:57:21 +0000 (12:57 +0900)]
[nnpkg-run] generate random input for qint8 type (#9033)

nnpackage_run can generate random input for qint8 type input tensor.
Note that load and dump needs more work.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>