platform/core/ml/nnfw.git
6 years ago[neurun] Change install directory (#2070)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 24 Jul 2018 09:33:03 +0000 (18:33 +0900)]
[neurun] Change install directory (#2070)

Change install directory name: lib/new_runtime -> lib/neurun

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoRevise computing instructions of operator on model parser (#2060)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 24 Jul 2018 06:15:16 +0000 (15:15 +0900)]
Revise computing instructions of operator on model parser (#2060)

Revise computing instructions of operator on model parser.
To do it, intrudece Operation class which has each instruction members
and _OperationComputeMethod, internal class, which compute for each
operator type.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years agoDefine build option for nnapi_quickcheck (#2067)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 24 Jul 2018 06:11:21 +0000 (15:11 +0900)]
Define build option for nnapi_quickcheck (#2067)

Define build option for nnapi_quickcheck
Set default value as off (not build nnapi_quickcheck)
To build nnapi_quickcheck, set OPTIONS="-DBUILD_NNAPI_QUICKCHECK=on"

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUpdate CrossBuildForArm.md (#2063)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 24 Jul 2018 05:43:18 +0000 (14:43 +0900)]
Update CrossBuildForArm.md (#2063)

- `ROOTFS_ARM`(or `ROOTFS_ARM`) is not necessary to set if you installed
rootfs in default path.

- Explanation for installing cross toolchain is modified

Related Issue: #2035, #2048

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoRename nnapi_unittest (#2046)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 24 Jul 2018 04:28:48 +0000 (13:28 +0900)]
Rename nnapi_unittest (#2046)

Rename nnapi_unittest to nnapi_quickcheck to avoid confusing

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoMigration to tensorflow v1.9.0 (#2054)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 24 Jul 2018 00:38:41 +0000 (09:38 +0900)]
Migration to tensorflow v1.9.0 (#2054)

Fix test using tensorflow function
Update nnapi_delegate.cpp/h
Update supporting custom operation
Add submodules for dependency

To use this, need to update tensorflow submodule

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[model_parser] Print activation function type (#2052)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 23 Jul 2018 10:03:27 +0000 (19:03 +0900)]
[model_parser] Print activation function type (#2052)

* [model_parser] Print activation function type

Parse activation function type of the operator and print. This also
make it possible to print other options in BuiltinOptions for all
BuiltinOperators.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Extract GetBuiltinOptions to be global function

6 years ago[neurun] Extract acl_cl backend as a separate lib (#2055)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 23 Jul 2018 08:51:18 +0000 (17:51 +0900)]
[neurun] Extract acl_cl backend as a separate lib (#2055)

Extract acl_cl backend as a separate lib.
Note that kernel implementation still is included in neruun lib.
Same for cpu backend is done with #2042.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoFix arm rootfs for user installed compilers (#2047)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 23 Jul 2018 05:48:34 +0000 (14:48 +0900)]
Fix arm rootfs for user installed compilers (#2047)

This will fix sysroot option in cmake configure time try_compile to work correctly

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[neurun] Extract cpu backend as a separate lib (#2042)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 23 Jul 2018 02:11:09 +0000 (11:11 +0900)]
[neurun] Extract cpu backend as a separate lib (#2042)

Extract cpu backend as a separate lib but still kernel implementation is
included in this lib.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[Doc] Docker image version 1.4 -> 1.5 (#2041)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 23 Jul 2018 02:10:20 +0000 (11:10 +0900)]
[Doc] Docker image version 1.4 -> 1.5 (#2041)

Modify the document to have the latest version of docker image.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years ago[neurun] Remove unnecessary log (#2044)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 23 Jul 2018 01:22:26 +0000 (10:22 +0900)]
[neurun] Remove unnecessary log (#2044)

Remove unnecessary log from acl_cl Concat StageGenerator which were
accidentally added.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoEnable more pacl framework test (#2037)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 20 Jul 2018 08:07:54 +0000 (17:07 +0900)]
Enable more pacl framework test (#2037)

Enable more pacl framework test: add/1D, concat2, tensorflowmax
Fix list as alphabet order

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[neuron] Fix enabling reshape test (#2028)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 20 Jul 2018 06:30:52 +0000 (15:30 +0900)]
[neuron] Fix enabling reshape test (#2028)

This fixes #2026 which did not affect for our tests.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoTidy cmake, add help for external given defines (#2029)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 20 Jul 2018 06:22:15 +0000 (15:22 +0900)]
Tidy cmake, add help for external given defines (#2029)

This will add help comment of defines that can be given outside of cmake

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix and Modify typos (#2036)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 20 Jul 2018 06:21:07 +0000 (15:21 +0900)]
Fix and Modify typos (#2036)

This commit fixes and modifies typoes.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoAdd explanation how to enable nn generated test (#2034)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 20 Jul 2018 06:14:38 +0000 (15:14 +0900)]
Add explanation how to enable nn generated test (#2034)

Add explanation for installing g++ >= 6.
Some subtitles are also changed.

Related Issue: #2031

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agoAdd functions for Tanh in pure acl runtime (#1993)
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 20 Jul 2018 05:36:08 +0000 (14:36 +0900)]
Add functions for Tanh in pure acl runtime (#1993)

Add appendTanh function in ActivationBuilder
Add visit function
Add tanh case in addOperation function

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
6 years agoRemove legacy runtime dependency (#2025)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 19 Jul 2018 11:04:13 +0000 (20:04 +0900)]
Remove legacy runtime dependency (#2025)

This commit removes all the legacy runtime dependency from repo

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years ago[neurun] Run Reshape test (#2026)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 11:01:53 +0000 (20:01 +0900)]
[neurun] Run Reshape test (#2026)

Enable Reshape test for neurun

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoRemove kernal(/acl) from repo (#2023)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 19 Jul 2018 10:27:07 +0000 (19:27 +0900)]
Remove kernal(/acl) from repo (#2023)

This commit remove kernel directory from repo since runtime/nn has removed.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoRemove runtimes/nn dir from repo (#2020)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 19 Jul 2018 09:53:03 +0000 (18:53 +0900)]
Remove runtimes/nn dir from repo (#2020)

This commit removes runtimes/nn drom repo.
Dependant configs and codes will be removed on the next PR.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoFix cmake option for COVERAGE_BUILD (#2015)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Jul 2018 09:52:43 +0000 (18:52 +0900)]
Fix cmake option for COVERAGE_BUILD (#2015)

This will fix typo of CMAKE_CXX_FLAGS for COVERAGE_BUILD
As C and CXX flags are the same, this change will use FLAGS_COMMON

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix checkpoint to pb file converter bug (#2022)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 19 Jul 2018 09:44:10 +0000 (18:44 +0900)]
Fix checkpoint to pb file converter bug (#2022)

Fix checkpoint to pb file converter bug: string, colon
Fix format

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoTidy cmake, separate apply compilation flags (#2014)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Jul 2018 09:42:40 +0000 (18:42 +0900)]
Tidy cmake, separate apply compilation flags (#2014)

This will extract compilation flag setting code to separate file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[neurun] Change dir structure of acl_cl backend (#2021)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 09:31:13 +0000 (18:31 +0900)]
[neurun] Change dir structure of acl_cl backend (#2021)

Move directory `internal/arm_compute` to `backend/acl_cl`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoFix benchmark failure (#2001)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 19 Jul 2018 08:40:18 +0000 (17:40 +0900)]
Fix benchmark failure (#2001)

Fix benchmark test failure: migrate to armcl v18.05

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoIntroduce FEATURE_REQUEST prodcess. (#2012)
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Jul 2018 07:21:08 +0000 (16:21 +0900)]
Introduce FEATURE_REQUEST prodcess. (#2012)

- Add guide for FEATURE_REQUEST.
- Add empty docs/HowToImplementOperatorKernel.md

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
6 years ago[neurun] Fix inception test name (#2017)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 07:16:40 +0000 (16:16 +0900)]
[neurun] Fix inception test name (#2017)

Fix wrong name `inception` to `inceptionv3`

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[neurun] Rename build variables (#1997)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 06:39:45 +0000 (15:39 +0900)]
[neurun] Rename build variables (#1997)

Rename build variables

- BUILD_NEW_RUNTIME to BUILD_NEURUN
- LIB_NEW_RUNTIME to LIB_NEURUN

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[newrt] Support Concat from acl_cl backend (#2010)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 06:38:57 +0000 (15:38 +0900)]
[newrt] Support Concat from acl_cl backend (#2010)

Enable Concat from acl_cl backend. So now we can run inception v3
with acl_cl backend only.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoTidy cmake, separate configuration flags (#2008)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Jul 2018 03:02:17 +0000 (12:02 +0900)]
Tidy cmake, separate configuration flags (#2008)

This will extract configuration flags to separate file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoTidy cmake, separate gtest support (#2007)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 19 Jul 2018 02:04:41 +0000 (11:04 +0900)]
Tidy cmake, separate gtest support (#2007)

This will extract gtest support codes to separate file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[neurun] Change dir structure of cpu backend (#2006)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 00:57:20 +0000 (09:57 +0900)]
[neurun] Change dir structure of cpu backend (#2006)

Move directory `internal/cpu` to `backend/cpu`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[neuron] Implement Concat acl_cl kernel (#1986)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 19 Jul 2018 00:52:45 +0000 (09:52 +0900)]
[neuron] Implement Concat acl_cl kernel (#1986)

* [neurun] Implement Concat acl_cl kernel

Implement Concat acl_cl kernel which is not exists in arm_compute lib.

Part of #1861

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Reflect comments

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Reflect comment 2

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoTidy cmake, relocate variables and options (#1992)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Jul 2018 08:15:55 +0000 (17:15 +0900)]
Tidy cmake, relocate variables and options (#1992)

This will move common options and variables to option_linux file
And remove unused ACL folder variables

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[tool] Converts TF checkpoint file to PB file (#1965)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Jul 2018 07:54:20 +0000 (16:54 +0900)]
[tool] Converts TF checkpoint file to PB file (#1965)

This tool converts TF checkpoint file to PB file and
freeze the PB file.

(Written for #1927, https://github.sec.samsung.net/STAR/nnfw/issues/1927#issuecomment-122799)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years ago[tool] TFLITE file generator for Squeeze operations (#1948)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Jul 2018 07:33:35 +0000 (16:33 +0900)]
[tool] TFLITE file generator for Squeeze operations (#1948)

This file creates the following tflites:
```
/home/eric/models/squeeze/squeeze_2d.tflite
/home/eric/models/squeeze/squeeze_4d_1.tflite
/home/eric/models/squeeze/squeeze_4d_2.tflite
/home/eric/models/squeeze/squeeze_4d_3.tflite
/home/eric/models/squeeze/squeeze_4d_4.tflite
```
which are
- squeeze_2d.tflite: `squeeze (Tensor(shape=[1, 3]))`
- squeeze_4d_1.tflite: `squeeze (Tensor(shape=[1, 3, 2, 1]))`
- squeeze_4d_2.tflite: `squeeze (Tensor(shape=[1, 3, 2, 1]), axis=[0]) # squeeze [1, 3, 2, 1] to [3, 2, 1]`
- squeeze_4d_3.tflite: `squeeze (shape=Tensor([1, 3, 2, 1]), axis=[3])  # squeeze [1, 3, 2, 1] to [1, 3, 2]`
- squeeze_4d_4.tflite: `squeeze (shape=Tensor([1, 3, 2, 1]), axis=[0, 3])  # squeeze [1, 3, 2, 1] to [3, 2]`

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years ago[neurun] Rename `new_runtime` to `neurun` (#1994)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Jul 2018 06:20:16 +0000 (15:20 +0900)]
[neurun] Rename `new_runtime` to `neurun` (#1994)

As we discussed from #1954, changing the name to `neurun`.
Note that it is `neurun`, not `neuron`.

Resolves #1987

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoModify generate<uint8_t> of RandomGenerator to generate the appropriate random value...
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 18 Jul 2018 02:40:14 +0000 (11:40 +0900)]
Modify generate<uint8_t> of RandomGenerator to generate the appropriate random value. (#1912)

This commit modifies generate<uint8_t> of RandomGenerator to generate the appropriate random value.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoTidy cmake, separate identify_platform (#1991)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Jul 2018 01:07:57 +0000 (10:07 +0900)]
Tidy cmake, separate identify_platform (#1991)

This will separate platform identification codes to own file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoTidy cmake, apply indentation (#1989)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Jul 2018 01:00:27 +0000 (10:00 +0900)]
Tidy cmake, apply indentation (#1989)

This will add indentation to cmake file that was left some time ago

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years ago[tool] make pb_info.py prints name filtered by prefix (#1981)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Jul 2018 10:59:51 +0000 (19:59 +0900)]
[tool] make pb_info.py prints name filtered by prefix (#1981)

pb_info.py prints name filtered by prefix.
for example running `pb_info.py --name_prefix='Model/rnn' <more options>` prints operations with their names starting with 'Model/rnn'

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoAdd functions for python script of test_driver (#1978)
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Jul 2018 10:09:40 +0000 (19:09 +0900)]
Add functions for python script of test_driver (#1978)

Add `make_json_for_benchmark_result` function
Add `run_benchmarkop` function
Add related options, parameters

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
6 years ago[tool] Remove python 2.7 restriction (#1976)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Jul 2018 04:55:01 +0000 (13:55 +0900)]
[tool] Remove python 2.7 restriction (#1976)

This commit removes python 2.7 restriction of `tools/tensorflow_model_freezer` tool
after testing on Python 3.6.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoUpdates for python script of test_driver (#1971)
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Jul 2018 04:54:03 +0000 (13:54 +0900)]
Updates for python script of test_driver (#1971)

Add missing options(frameworktest_list_file, benchmark_op)
Fix test script paths

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
6 years agoUpdates shebang for python script of test_driver (#1975)
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Jul 2018 04:26:40 +0000 (13:26 +0900)]
Updates shebang for python script of test_driver (#1975)

Add `#!usr/bin/env python` to be executed by python, not bash

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
6 years ago[newrt] Rename namespace `kernels` to `kernel` (#1964)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Jul 2018 01:59:37 +0000 (10:59 +0900)]
[newrt] Rename namespace `kernels` to `kernel` (#1964)

Rename `kernels` to `kernel` since our general convention is to use
singular.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[newrt] Update backend name to `acl_cl` (#1972)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 17 Jul 2018 01:06:45 +0000 (10:06 +0900)]
[newrt] Update backend name to `acl_cl` (#1972)

Update backend name to `acl_cl` from `arm_compute` since this backend
only uses CL part.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[newrt] Implement SoftMax kenrel for CPU (#1968)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 16 Jul 2018 08:29:16 +0000 (17:29 +0900)]
[newrt] Implement SoftMax kenrel for CPU (#1968)

This commit implements SoftMax kernel for CPU in new runtime.

Add others
  - QuantizeMultiplierGreaterThanOne, CalculateInputRadius

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years ago[newrt] Do not mmap for CPU tensor allocation (#1951)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 16 Jul 2018 08:28:12 +0000 (17:28 +0900)]
[newrt] Do not mmap for CPU tensor allocation (#1951)

* [newrt] Do not mmap for CPU tensor allocation

For CPU tensor memory we do not have to mmap for tensors, just allocate
with plain heap memory with `new`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Add comment for cpu tensor allocation

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[newrt] Implement Reshape kernel for CPU (#1950)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 16 Jul 2018 05:04:31 +0000 (14:04 +0900)]
[newrt] Implement Reshape kernel for CPU (#1950)

* [newrt] Implement Reshape kernel for CPU

This commit implements Reshape kernel for CPU in new_runtime.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Add errer handling in sizeOfData

6 years agoUpdate nn_android_runtime_test to p-preview-4 (#1935)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 13 Jul 2018 07:49:45 +0000 (16:49 +0900)]
Update nn_android_runtime_test to p-preview-4 (#1935)

commit: c73accf066d4f05372
link : https://android.googlesource.com/platform/frameworks/ml/+/android-p-preview-4

cf) all *relaxed* tests are omitted

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years ago[newrt] Require ARMCompute for build (#1949)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 13 Jul 2018 07:10:57 +0000 (16:10 +0900)]
[newrt] Require ARMCompute for build (#1949)

Currently we depend on ARMCompute for abstract classes so we need it
always even we only want cpu kernels. However later we should remove
this requirement.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years ago[newrt] Implement FullyConnected kernel for CPU (#1943)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 13 Jul 2018 07:10:12 +0000 (16:10 +0900)]
[newrt] Implement FullyConnected kernel for CPU (#1943)

* [newrt] Implement FullyConnected kernel for CPU

This commit implements FullyConnected kernel for CPU in new runtime.

- Other jobs
  - Add getNumberOfElements
  - Add zeroPoint(offset)
  - Add QuantizeMultiplierSmallerThanOne, GetQuantizedConvolutionMultipler

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Add TODO, Add weight/bias for quant8_asymm

* Add comment for GetQuantizedConvolutionMultipler

6 years agoChange the rounding policy of MUL from TO_ZERO to TO_NEAREST_EVEN (#1940)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 13 Jul 2018 06:23:55 +0000 (15:23 +0900)]
Change the rounding policy of MUL from TO_ZERO to TO_NEAREST_EVEN (#1940)

This commit changes the rounding policy of MUL from TO_ZERO to TO_NEAREST_EVEN.

If the rounding policy is TO_NEAREST_EVEN, it is most similar to the result of the TFLITE interpreter.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoBuild ACL in svace build (#1947)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 11 Jul 2018 23:49:02 +0000 (08:49 +0900)]
Build ACL in svace build (#1947)

Build ACL instead of using external ACL in svace build

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[newrt] Let the user select backend per operation (#1929)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 11 Jul 2018 09:24:25 +0000 (18:24 +0900)]
[newrt] Let the user select backend per operation (#1929)

By default, arm_compute backend will be used for all operations.

Resolve #1878

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoChange from implicit namespace to Explicit (#1938)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 11 Jul 2018 08:33:13 +0000 (17:33 +0900)]
Change from implicit namespace to Explicit (#1938)

This commit alters namesapce name for consistency.
- change form implicit to Implicit to keep consistent with Explicit.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoIntroduce explicit padding in max pooling (#1923)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 11 Jul 2018 07:22:12 +0000 (16:22 +0900)]
Introduce explicit padding in max pooling (#1923)

* Introduce explicit max pooling

This commit introduces explicit max pooling.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Revise namespace as Explicit

This commit revises namespace as Explicit for consistency.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Delete unused and unnecessary blanks

This commit deletes unused and unnecessary blanks.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoPrints summary of pb file (#1946)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 11 Jul 2018 06:52:18 +0000 (15:52 +0900)]
Prints summary of pb file (#1946)

Added `--summary` option to prints the list of operations and their counts in pb file.
Written for #1927.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
6 years agoFix makefile for svace (#1945)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 11 Jul 2018 05:25:52 +0000 (14:25 +0900)]
Fix makefile for svace (#1945)

Fix build runtime only: build pure runtime
Fix testbuild: remove kernelacl_test
Fix tflite build: add googletest

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years ago[newrt] Remove unused code (#1944)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 11 Jul 2018 04:25:47 +0000 (13:25 +0900)]
[newrt] Remove unused code (#1944)

Remove unused code that is commented out

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoSkip GeneratedTests.concat_quant8_2 (#1942)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 11 Jul 2018 02:59:33 +0000 (11:59 +0900)]
Skip GeneratedTests.concat_quant8_2 (#1942)

1. Add GeneratedTests.concat_quant8_2 into skiplist

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoAdd explicit padding to dconv (#1937)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 11 Jul 2018 02:39:45 +0000 (11:39 +0900)]
Add explicit padding to dconv (#1937)

This commit adds explicit padding to dconv.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoAdd failed test(preview4) into skiplist (#1934)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 11 Jul 2018 01:52:12 +0000 (10:52 +0900)]
Add failed test(preview4) into skiplist (#1934)

For generated tests of android-p-preview4, add failed test into skiplist

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoUpdate ARM CL to v18.05 (#1925)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 11 Jul 2018 01:51:33 +0000 (10:51 +0900)]
Update ARM CL to v18.05 (#1925)

Patch to migrate ARM CL v18.05
- Use arm_compute/graph/frontend API to build graph data structure
- Update ACL submodule: v18.05

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd explicit padding to conv (#1936)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 11 Jul 2018 01:34:32 +0000 (10:34 +0900)]
Add explicit padding to conv (#1936)

* Add explicit padding to conv

This commit adds explicit padding to conv.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Revise namespace as Explicit

This commit revises namespace as Explicit for consistency.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago Add explicit padding to average pooling (#1928)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 11 Jul 2018 00:50:08 +0000 (09:50 +0900)]
 Add explicit padding to average pooling (#1928)

* Add explicit padding to average pooling

This commit adds explicit padding to average pooling.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Remove unused and unnecessary blank

This commit removes unused and unnecessary blank

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Revise namespace as Explicit

This commit revises namespace as Explicit for consistency.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago[newrt] Implement Concat kernel for CPU (#1924)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 23:46:57 +0000 (08:46 +0900)]
[newrt] Implement Concat kernel for CPU (#1924)

Related : #1860

This commit implements `Concat` kernel for CPU in new runtime.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoUpdate tflite file API (#1832)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 10 Jul 2018 09:53:55 +0000 (18:53 +0900)]
Update tflite file API (#1832)

Update tflite file API generated by flatc
Using updated schema in tensorflow 1.9

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoSet pureacl runtime to be the main runtime (#1908)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 10 Jul 2018 09:53:33 +0000 (18:53 +0900)]
Set pureacl runtime to be the main runtime (#1908)

0. do not build legacy(nn) runtime into out/lib
   - install legacy(nn) runtime into out/lib/legacy
1. Trigger puracl runtime build on default
2. install pureacl runtime into out/lib

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years ago[newrt] Implement MaxPool kernel for CPU (#1919)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 08:56:50 +0000 (17:56 +0900)]
[newrt] Implement MaxPool kernel for CPU (#1919)

Related : #1860

This commit implements MaxPool kernel for CPU in new runtime.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd QuantizationInfo to TensorInfo in operands that supports QASYMM8_TENSOR (#1893)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 08:35:25 +0000 (17:35 +0900)]
Add QuantizationInfo to TensorInfo in operands that supports QASYMM8_TENSOR (#1893)

This commit adds QuantizationInfo to TensorInfo in operands that supports QASYMM8_TENSOR.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoFix wrong inclusion and scale value in nnapi_unittests. (#1926)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 07:10:52 +0000 (16:10 +0900)]
Fix wrong inclusion and scale value in nnapi_unittests. (#1926)

This commit fixes wrong inclusion and scale value in nnapi_unittests.
List of fixed scale value
  - add
  - conv
  - dconv
  - mul

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoAdd strided_slice_ex_float_10 to skip list (#1910)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 10 Jul 2018 06:56:58 +0000 (15:56 +0900)]
Add strided_slice_ex_float_10 to skip list (#1910)

Add GeneratedTests.strided_slice_ex_float_10 to skip list for linux/tizen

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoIntroduce new UnsupportedOperationCount class (#1876)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 05:30:56 +0000 (14:30 +0900)]
Introduce new UnsupportedOperationCount class (#1876)

- This UnsupportedOperationCount class will be used for distinguishing
whether an operator can be counted on operation counts.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
6 years ago[Refactor] Remove if/else(switch case) of rank for addShapeConstr (#1839)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 05:22:21 +0000 (14:22 +0900)]
[Refactor] Remove if/else(switch case) of rank for addShapeConstr (#1839)

* Remove if/else(switch case) of rank for addShapeConstr

Related : #1828

This commit removes if/else(switch cases) of rank for `addShapeConstr`.
That's because `asTensorShape` which used in `addShapeConstr` parameter includes if/else for processing shapes by each ranks.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Apply #1741 cases

* Update rank check for Cast

6 years agoEnable other type of operands in FC operation (#1895)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 05:19:25 +0000 (14:19 +0900)]
Enable other type of operands in FC operation (#1895)

This commit enables other type of operands in FC operation.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agotools/nnapi_unittest runs as GTest (#1810)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 10 Jul 2018 01:49:32 +0000 (10:49 +0900)]
tools/nnapi_unittest runs as GTest (#1810)

Some unittest have not been modified yet, so these cases are changed to GTest.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
6 years agoTurn off warning on g++ 6.+ (#1916)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 10 Jul 2018 01:38:47 +0000 (10:38 +0900)]
Turn off warning on g++ 6.+ (#1916)

* Turn off warning on g++ 6.+

Turn off warning by arm cl when we use cross compiler version 6.+

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Check gcc version

Check gcc version to set warning flag

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd testcase for left rank < right rank (#1787)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 10 Jul 2018 01:25:10 +0000 (10:25 +0900)]
Add testcase for left rank < right rank (#1787)

* Add testcase for left rank < right rank

This commit adds a testcase for different rank
-left rank < right rank

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Change to a gtest format

This commit changes main format to a gtest.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years agoRemove incorrect link_library to neuralnetworks (#1918)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Jul 2018 09:23:20 +0000 (18:23 +0900)]
Remove incorrect link_library to neuralnetworks (#1918)

In neural_networks_test, libneuralnetworks incorrectly is linked.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoEnables other type of operands in CONV2D operation. (#1889)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 9 Jul 2018 07:19:46 +0000 (16:19 +0900)]
Enables other type of operands in CONV2D operation. (#1889)

* Change the type of CONV2D's Bias from QASYMM8 to INT32

This commit changes CONV2D's bias type from QASYMM8 to INT32.

According to the nnapi description, for input tensor of {@link ANEURALNETWORKS_TENSOR_QUANT8_ASYMM} type, the bias should be of {@link ANEURALNETWORKS_TENSOR_INT32}.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Add QuantizationInfo to TensorInfo in CONV2D operation.

This commit adds QuantizationInfo to TensorInfo in CONV2D operation.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years ago[New runtime] Skeleton for addOperationEx (#1913)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Jul 2018 06:45:18 +0000 (15:45 +0900)]
[New runtime] Skeleton for addOperationEx (#1913)

Prepare addOperationEx
Fix link error

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUpdate ACL (Cast float to qasymm8) (#1881)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 9 Jul 2018 06:39:04 +0000 (15:39 +0900)]
Update ACL (Cast float to qasymm8) (#1881)

This commit updates ACL (Cast float to qasymm8).

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoDisable pureacl/new runtine build which depends on arm compute library (#1909)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Jul 2018 05:45:11 +0000 (14:45 +0900)]
Disable pureacl/new runtine build which depends on arm compute library (#1909)

On x64, disable pureacl/new runtine build which depends on arm compute library

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoChange the scale value of unit test related to the convolution. (#1887)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 9 Jul 2018 05:43:23 +0000 (14:43 +0900)]
Change the scale value of unit test related to the convolution. (#1887)

This commit change the scale value of unit test related to the convolution.
- Change the scale value of output operand to 1.0f.
- Change the scale value of input and kernel operand to 0.02f.
- Change the scale value of bias to the value of multiplying input scale and kernel scale.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years ago[newrt] Remove CPU prefix of ConvolutionLayer class (#1891)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 9 Jul 2018 05:23:42 +0000 (14:23 +0900)]
[newrt] Remove CPU prefix of ConvolutionLayer class (#1891)

This commit removes CPU prefix of ConvolutionLayer class

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years ago--env-file option for docker cross arm build (#1879)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Jul 2018 04:54:00 +0000 (13:54 +0900)]
--env-file option for docker cross arm build (#1879)

* --env-file option for docker cross arm build

1. support --env-file option via $ENV_FILE
2. add env_file for pureacl, new_runtime build

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Rename env files

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

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoModify wrong values in testcases (#1865)
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 9 Jul 2018 02:08:29 +0000 (11:08 +0900)]
Modify wrong values in testcases (#1865)

This commit modifies wrong values in testcases.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
6 years ago[newrt] Fix build failure in > gcc 5.6 (#1898)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 9 Jul 2018 01:45:15 +0000 (10:45 +0900)]
[newrt] Fix build failure in > gcc 5.6 (#1898)

This commit fixes build failure in > gcc 5.6.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoRemove test build from newruntime build (#1903)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Jul 2018 01:44:59 +0000 (10:44 +0900)]
Remove test build from newruntime build (#1903)

There is link error when building runtime_run_android_nn_test with new runtime.
Before fixing all buld error by newruntime, disable runtime_run_android_nn_test.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoUpdate NeuralNetworks.h from android-p-prevew-4 (#1905)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 9 Jul 2018 01:37:09 +0000 (10:37 +0900)]
Update NeuralNetworks.h from android-p-prevew-4 (#1905)

Related Issue: #1904

Android-p-preview-3 announced that it will have fixed NNAPI v1.1.
However I would like to update NeuralNetworks.h from android-p-preview-4's.

Because

- it updated comments (style, description, ...).
- it fixed a mistake included in android-p-preview-3.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
6 years agolink runtime_run_android_nn_test to nnapi_puer_arm_compute (#1901)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 9 Jul 2018 01:35:38 +0000 (10:35 +0900)]
link runtime_run_android_nn_test to nnapi_puer_arm_compute (#1901)

this commit adds link runtime_run_android_nn_test to nnapi_puer_arm_compute,
which is missing now.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoFix link error when linking runtime_run_android_nn_test with pureacl (#1900)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 6 Jul 2018 08:14:00 +0000 (17:14 +0900)]
Fix link error when linking runtime_run_android_nn_test with pureacl (#1900)

Fix : #1899
1. add dummy APIs to fix link error

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agoEnable the kTfLiteUInt8 of the input operands in RandomTestRunner to be random value...
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 6 Jul 2018 06:45:02 +0000 (15:45 +0900)]
Enable the kTfLiteUInt8 of the input operands in RandomTestRunner to be random value. (#1882)

This commit enables the kTfLiteUInt8 of the input operands in RandomTestRunner to be random value.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years ago[newrt] Implement AvgPool kernel for CPU (#1880)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 6 Jul 2018 02:31:51 +0000 (11:31 +0900)]
[newrt] Implement AvgPool kernel for CPU (#1880)

* [newrt] Implement AvgPool kernel for CPU

This commit implements AvgPool kernel for CPU in new runtime.

Signed-off-by:sjsujinkim sjsujin.kim@samsung.com

* Relocate to_string to support/nnapi

6 years agoIntroduce EnvVar class (#1884)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 6 Jul 2018 02:09:14 +0000 (11:09 +0900)]
Introduce EnvVar class (#1884)

* Introduce EnvVar class

EnvVar reads environment variables from system and can return the
value as string, bool or int.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Move EnvVar.h to nnfw/include/util

Move the file and add namespace

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
6 years agoDefine android nn test skiplist for pure arm compute runtime (#1854)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 6 Jul 2018 01:58:39 +0000 (10:58 +0900)]
Define android nn test skiplist for pure arm compute runtime (#1854)

* Define android nn test skiplist for pure arm compute runtime

1. backup the existing skiplist for legacy runtime
2. define new skiplist for pure arm compute runtime

related issue: #1851

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* rename backup file

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* add new line

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