platform/core/ml/nnfw.git
4 years ago[tfl-verify] enable tflite file verify (#8829)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 7 Nov 2019 07:33:33 +0000 (16:33 +0900)]
[tfl-verify] enable tflite file verify (#8829)

* [tfl-verify] enable tflite file verify

This will enable tflite file verify of tfl-verify tool

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix comment

4 years agoSet white list for NNAS Host Toolcahin Build (#8823)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 7 Nov 2019 07:24:42 +0000 (16:24 +0900)]
Set white list for NNAS Host Toolcahin Build (#8823)

The toolchain package that "nnas create-package" generates now includes
no redundant files.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[runtime] Use target overlay directory for acl (#8812)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 7 Nov 2019 07:21:18 +0000 (16:21 +0900)]
[runtime] Use target overlay directory for acl (#8812)

Use overlay directory to install acl on build process
For test, copy acl library to runtime library directory on runtime install process

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[moco] Enable FakeQuantWithMinMaxVars import (#8828)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 7 Nov 2019 06:58:41 +0000 (15:58 +0900)]
[moco] Enable FakeQuantWithMinMaxVars import (#8828)

This will enable to import FakeQuantWithMinMaxVars TensorFlow node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[tf2nnpkg] Introduce --use-tf2circle option (#8793)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 7 Nov 2019 06:48:23 +0000 (15:48 +0900)]
[tf2nnpkg] Introduce --use-tf2circle option (#8793)

This commit introduces --use-tf2circle option to tf2nnpkg. When a user
passes --user-tf2circle, tf2nnpkg internally invokes tf2circle instead
of tf2tflite and tflite2circle script.

Please note that this commit does not change the default behavior.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[tfl-verify] dummy driver (#8825)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 7 Nov 2019 06:26:37 +0000 (15:26 +0900)]
[tfl-verify] dummy driver (#8825)

This will introduce tfl-verify dummy driver from circle-verify

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoMake ncnn backend to support DepthwiseConv2D in row majar (#8826)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 7 Nov 2019 06:25:54 +0000 (15:25 +0900)]
Make ncnn backend to support DepthwiseConv2D in row majar (#8826)

This commit makes backend to support DepthwiseConv2D in row major.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[moco] Introduce TFFakeQuantWithMinMaxVars (#8814)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 7 Nov 2019 06:23:01 +0000 (15:23 +0900)]
[moco] Introduce TFFakeQuantWithMinMaxVars (#8814)

This will introduce TFFakeQuantWithMinMaxVars node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[exo] Extract out FixedArityNode (#8810)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 7 Nov 2019 06:22:49 +0000 (15:22 +0900)]
[exo] Extract out FixedArityNode (#8810)

This commit extracts out FixedArityNode defined in TFLNodes.h. This is
mainly to use it for Circle dialect.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] Fix typo (#8821)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 7 Nov 2019 04:50:28 +0000 (13:50 +0900)]
[exo] Fix typo (#8821)

This commit fixes typo for comment in TFLShapeInferenceRule.cpp

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] Remove unused headers for Passes (#8822)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 7 Nov 2019 04:42:10 +0000 (13:42 +0900)]
[exo] Remove unused headers for Passes (#8822)

This commit removes unused 'loco/IR/Nodes.h' header from exo Passes

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[tf2tflite-dredd-pbtxt-test] adding test.lst (#8813)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 23:42:51 +0000 (08:42 +0900)]
[tf2tflite-dredd-pbtxt-test] adding test.lst (#8813)

This adds test.lst, which checks NET_0025

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[tfl-verify] Readme (#8817)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 23:38:03 +0000 (08:38 +0900)]
[tfl-verify] Readme (#8817)

This will introduce tfl-verfiy project README file explaing what its purpose

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoMake ncnn backend to support Conv2D (#8811)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 11:40:11 +0000 (20:40 +0900)]
Make ncnn backend to support Conv2D (#8811)

This commit makes ncnn backend to support Conv2D in row major.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[exo] Introduce Circle dialect (#8802)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 10:15:56 +0000 (19:15 +0900)]
[exo] Introduce Circle dialect (#8802)

This commit introduces structure for Circle dialect for loco ecosystem

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[nncc] Support BUILD_WHITELIST option (#8718)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 09:20:04 +0000 (18:20 +0900)]
[nncc] Support BUILD_WHITELIST option (#8718)

* [nncc] Support BUILD_WHITELIST option

This commit allows users to restrict the modules to be built by setting
BUILD_WHITELIST option.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update error message and add a relevant comment

* Use directory name

4 years ago[tf2tflite-dredd-pb-test] Introducing tf2tflite-dredd-pb-test (#8779)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 09:18:43 +0000 (18:18 +0900)]
[tf2tflite-dredd-pb-test] Introducing tf2tflite-dredd-pb-test (#8779)

* [tf2tflite-dredd-pb-test] Introducing tf2tflite-dredd-pb-test

This adds tf2tflite-dredd-pb-test, which tests tflite file to check if optimization is done right, etc.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* remove tfkit

* remove downloading feature

* file existence checking macro

* remove tfkit again

* revising check_file_exist

4 years ago[exo] Register TensorReduce conversion (#8809)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 07:55:05 +0000 (16:55 +0900)]
[exo] Register TensorReduce conversion (#8809)

This commit registers conversion for TensorReduce to exo conversion
stage.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[res/TensorFlowTests] renaming rules (#8805)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 07:33:42 +0000 (16:33 +0900)]
[res/TensorFlowTests] renaming rules (#8805)

This renames rules to [circle/tflite]_SDKver_type_req.rule.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[exo] Extract out FusedActFunc (#8798)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 07:13:36 +0000 (16:13 +0900)]
[exo] Extract out FusedActFunc (#8798)

This commit extracts out enum class FusedActFunc. This is mainly to use
them in Circle dialect as well.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[nnpkg-test] Change nncc unzip path for test (#8804)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 07:11:31 +0000 (16:11 +0900)]
[nnpkg-test] Change nncc unzip path for test (#8804)

Change nncc install path into workspace

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoMake ncnn backend to support TransposeConv in row major (#8806)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 07:03:23 +0000 (16:03 +0900)]
Make ncnn backend to support TransposeConv in row major (#8806)

This commit makes ncnn(srcn) backend to support TransposeConv in row major.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[runtime] Set installed libraries and binaries rpath (#8800)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 06:06:36 +0000 (15:06 +0900)]
[runtime] Set installed libraries and binaries rpath (#8800)

Set rpath: same implementation with nncc

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun,ncnn-backend] Implement instance norm kernel for NHWC layout (#8795)
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 06:00:42 +0000 (15:00 +0900)]
[neurun,ncnn-backend] Implement instance norm kernel for NHWC layout (#8795)

This commit implements instance norm kernel for NHWC layout
- Applying loop parallelism with OpenMP

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
4 years agoIntroduce HWIO and IOHW (#8785)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 05:51:07 +0000 (14:51 +0900)]
Introduce HWIO and IOHW (#8785)

* Introduce a kernel layout as HWIO into srcn backend

This commit instroduces a kernel layout as HWIO into srcn backend.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Introduce a kernel layout as IOHW into srcn backend

This commit introduces a kernel layout as HWIO into srcn backend.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Introduce getFilterPermutation into ncnn

This commit introduces getFilterPermutation into ncnn.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[tf2circle-dredd-pbtxt-test] adding rule files for NET_0025 and NET_0030 (#8786)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 05:30:10 +0000 (14:30 +0900)]
[tf2circle-dredd-pbtxt-test] adding rule files for NET_0025 and NET_0030 (#8786)

* [tf2circle-dredd-pbtxt-test] adding rule files for NET_0025 and NET_0030

This adds two rule files in for NET_0025 and NET_0030. This will be used to test circle files.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* fix rule name

* remove commnent

* Update res/TensorFlowTests/NET_0025/test.circle_rule

OMG. Thanks. :-)

Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
4 years agoEnable nnpackage_run on gbs build (#8801)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 05:18:40 +0000 (14:18 +0900)]
Enable nnpackage_run on gbs build (#8801)

- Add build deps into nnfw.spec file

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
4 years ago[exo] Convert TensorReduce (#8741)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 04:30:08 +0000 (13:30 +0900)]
[exo] Convert TensorReduce (#8741)

* [exo] Convert TensorReduce

This commit introduces convert stage for canonical TensorReduce node

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Strict check

4 years ago[nnpkg_tools] gen_golden.py can run on tensorflow 2.0 (#8778)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 04:26:10 +0000 (13:26 +0900)]
[nnpkg_tools] gen_golden.py can run on tensorflow 2.0 (#8778)

`tf.contrib.framework.get_placeholders` is replaced with own implementation.
`gen_golden.py` can run on tensorflow 2.0.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[CI/script] Rename nnpackage testsuite generation script (#8773)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 03:43:13 +0000 (12:43 +0900)]
[CI/script] Rename nnpackage testsuite generation script (#8773)

Rename nnpackage testsuite generation script build_nnpkg.sh to test_make_nnpkg.sh

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Shared neurun core library (#8777)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 03:42:39 +0000 (12:42 +0900)]
[neurun] Shared neurun core library (#8777)

Change neurun_core to shared library - libneurun_core.so
When neurun_core is static, core is included to libneuralnetworks.so and libnnfw-dev.so and it make duplication

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[exo] passing param of InputHandler as reference type (#8768)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 6 Nov 2019 03:14:57 +0000 (12:14 +0900)]
[exo] passing param of InputHandler as reference type (#8768)

vector is now passed as a reference type.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[android] Remove the old RootFS builder script (#8782)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 02:12:18 +0000 (11:12 +0900)]
[android] Remove the old RootFS builder script (#8782)

This commit removes `build_android_rootfs.sh` which has been replaced by
`build_android_ndk.sh`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoModify convertCoordinates of ncnn to support various filter layouts. (#8784)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 01:02:59 +0000 (10:02 +0900)]
Modify convertCoordinates of ncnn to support various filter layouts. (#8784)

This commit modifies convertCoordinates of ncnn to support various filter layouts.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[verify-package] Add LAYOUT_191105 check (#8781)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 6 Nov 2019 00:59:10 +0000 (09:59 +0900)]
[verify-package] Add LAYOUT_191105 check (#8781)

Let's check whether the package has a specific layout.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoApply backend layout for getTensorDesc() of ncnn (#8755)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 00:58:14 +0000 (09:58 +0900)]
Apply backend layout for getTensorDesc() of ncnn (#8755)

This commit applies backend layout for getTensorDesc() of ncnn.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[exo] Add missing argument of static_assert (#8760)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 6 Nov 2019 00:34:24 +0000 (09:34 +0900)]
[exo] Add missing argument of static_assert (#8760)

This commit will add missing argument of `static_assert` in `exo/src/GraphBlock.h`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
4 years agoMove registering tensor info of ncnn into ShapeFixer (#8783)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 11:43:23 +0000 (20:43 +0900)]
Move registering tensor info of ncnn into ShapeFixer (#8783)

This commit moves registering tensor info of ncnn into ShapeFixer to resolve special case.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Fix warning from Android build (#8787)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 11:43:11 +0000 (20:43 +0900)]
[neurun] Fix warning from Android build (#8787)

This commit fixes narrowing conversion warning from Android compiler.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoIntroduce to set layout of io tensors into nnfw api (#8715)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 10:29:59 +0000 (19:29 +0900)]
Introduce to set layout of io tensors into nnfw api (#8715)

This commit introduces to set layout of io tensors into nnfw api.
  - Introduce NNFW_LAYOUT into nnfw_api
  - Introduce nnfw_set_input_layout and nnfw_set_output_layout into nnfw api

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoRemove LowerInfoMap from IKernelGenerator (#8780)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 10:23:27 +0000 (19:23 +0900)]
Remove LowerInfoMap from IKernelGenerator (#8780)

This commit removes LowerInfoMap from IKernelGenerator.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[moco] Fix comment for input type (#8770)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 10:22:19 +0000 (19:22 +0900)]
[moco] Fix comment for input type (#8770)

This will fix comment of file name for supporting types of graph input

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[doc] Update xu4 tizen setting document (#8757)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 09:18:41 +0000 (18:18 +0900)]
[doc] Update xu4 tizen setting document (#8757)

Update xu4 tizen setting document for latest environment (tested on tizen 5.5)
- Merge flashing boot and image
- Remove expand rfs: already expanded on /opt/usr

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoAdd LowerInfoMap and frontend_layout into ShapeFixer of srcn (#8776)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 09:18:16 +0000 (18:18 +0900)]
Add LowerInfoMap and frontend_layout into ShapeFixer of srcn (#8776)

This commit adds LowerInfoMap and frontend_layout as members into ShapeFixer of srcn.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoIntroduce asKernelShape into Convert of ncnn (#8772)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 09:17:45 +0000 (18:17 +0900)]
Introduce asKernelShape into Convert of ncnn (#8772)

This commit introduces asKernelShape into Convert of ncnn for converting operand of weights.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoAdd copyright for add operation (#8771)
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 08:28:50 +0000 (17:28 +0900)]
Add copyright for add operation (#8771)

Added copyright since binaryop.{h,cpp} are modified.

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
4 years ago[compute,ncnn] Add copyright and licence for instance_norm (#8765)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 08:28:33 +0000 (17:28 +0900)]
[compute,ncnn] Add copyright and licence for instance_norm (#8765)

I added copyright and license since instance_norm.{h,cpp} are modified.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years agoLoader support PReLU operation (#8769)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 08:27:19 +0000 (17:27 +0900)]
Loader support PReLU operation (#8769)

- Add PReLU into base_loader.h

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
4 years ago[nnpackge_tools] introduce gen_golden.py (#8719)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 08:12:30 +0000 (17:12 +0900)]
[nnpackge_tools] introduce gen_golden.py (#8719)

It introduces `gen_golden.py` tool.
You can generate golden data with

```
$ gen_golden.py -o out_dir /your/path/to/pb
```

Then, you will get out_dir/{input,expected}.h5.

No need to specify inputs and outputs.
No need to build nncc.

Prerequisite: tensorflow running environment.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[tf2tflite-dredd-pbtxt-test] introducing rule-lib.sh (#8761)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 08:01:56 +0000 (17:01 +0900)]
[tf2tflite-dredd-pbtxt-test] introducing rule-lib.sh (#8761)

* [tf2tflite-dredd-pbtxt-test] introducing rule-lib.sh

rule-lib.sh is a library of shell script functions that are used by dredd rule.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/tf2tflite-dredd-pbtxt-test/rule-lib.sh

Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
4 years ago[res/TensorFlowTests] Adding dredd rule for NET_0025 (#8763)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 07:51:57 +0000 (16:51 +0900)]
[res/TensorFlowTests] Adding dredd rule for NET_0025 (#8763)

This adds dredd rule into NET_0025.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[exo] Adding assert (#8762)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 07:49:47 +0000 (16:49 +0900)]
[exo] Adding assert (#8762)

This adds `assert` to check parameter.
for https://github.sec.samsung.net/STAR/nnfw/pull/8752#discussion_r295727

Signed-off-by: Hyun Sik Yoon hyunsik.yoon@samsung.com
4 years ago[moco] Remove temporary graph output shape settings (#8767)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 07:44:45 +0000 (16:44 +0900)]
[moco] Remove temporary graph output shape settings (#8767)

This will remove temporary graph output shape settings in Importer as it is now set in moco-tf frontend

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoAdd TF2CIRCLE_EXIST and TF2CIRCLE_RUNNABLE check (#8754)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 06:57:07 +0000 (15:57 +0900)]
Add TF2CIRCLE_EXIST and TF2CIRCLE_RUNNABLE check (#8754)

From now on, "nnas verify-package" command is able to verify whether
there is tf2circle (TF2CIRCLE_EXIST), and it has no missing dependencies
(TF2CIRCLE_RUNNABLE).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[neurun] Support SpaceToBatch from BaseLoader (#8727)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 06:57:03 +0000 (15:57 +0900)]
[neurun] Support SpaceToBatch from BaseLoader (#8727)

Support SpaceToBatch operation from frontend BaseLoader.

Draft PR: #8404

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoAdd LowerInfoMap as member into class IKernelGenerator (#8742)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 06:51:41 +0000 (15:51 +0900)]
Add LowerInfoMap as member into class IKernelGenerator (#8742)

This commit LowerInfoMap as member into class IKernelGenerator.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago [ncnn-backend] Support instance norm operation for NCHW layout (#8721)
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 06:49:48 +0000 (15:49 +0900)]
 [ncnn-backend] Support instance norm operation for NCHW layout  (#8721)

NCNN instance norm kernel porting
- Write updated values to output tensor instead of input tensor
- This commit supports NCHW layout only
  - Later PR will support instance norm for NHWC layout

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
4 years ago[nnpkg-test] Update tf2tflite test name (#8759)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 06:43:40 +0000 (15:43 +0900)]
[nnpkg-test] Update tf2tflite test name (#8759)

Test is renamed: tf2tflite_value_pbtxt_test
Test path: compiler/tf2tflite-value-pbtxt-test

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[exo] Type & shape inference for TFLMean (#8739)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 06:35:46 +0000 (15:35 +0900)]
[exo] Type & shape inference for TFLMean (#8739)

This commit introduces type and shape inference for TFLMean

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[tf2tflite-dredd-pbtxt-test] Adding CMakeLists.txt and runner.sh (#8744)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 06:17:38 +0000 (15:17 +0900)]
[tf2tflite-dredd-pbtxt-test] Adding CMakeLists.txt and runner.sh (#8744)

* [tf2tflite-dredd-pbtxt-test] Adding CMakeLists.txt and runner.sh

CMakeLists.txt and runner.sh files were added.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* modify comment

* rules -> rule

* TARGET_FILENAME -> TARGET_TESTNAME

4 years ago[exo] Refactoring EltwiseBinaryConverter using DomainConverter (#8752)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 06:09:18 +0000 (15:09 +0900)]
[exo] Refactoring EltwiseBinaryConverter using DomainConverter (#8752)

This refactors EltwiseBinaryConverter using DomainConverter (and input handler).

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[neurun/cker] Add Elementwise sub support in cpu (#8554)
Dilshodzhon Poshshoev/Engineer/AI Tools Lab /SRR/Samsung Electronics [Tue, 5 Nov 2019 05:45:45 +0000 (08:45 +0300)]
[neurun/cker] Add Elementwise sub support in cpu (#8554)

* [neurun/cker] Add Elementwise sub support in cpu

Added Sub operation to neurun cpu backend and kernel to cker.
It is copied from Add and renamed -i add to sub and changed
+ to -
Related issue: 7814

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
* Remove sub from framework test since just broadcast is tests

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
* Templatize Sub and Add for float

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
* Fix rebase issue because of renaming runtimes to runtime

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years ago[neurun/cker] Add Logistic operation support in cpu (#8572)
Dilshodzhon Poshshoev/Engineer/AI Tools Lab /SRR/Samsung Electronics [Tue, 5 Nov 2019 05:45:25 +0000 (08:45 +0300)]
[neurun/cker] Add Logistic operation support in cpu (#8572)

* [neurun/cker]Add Logistic operation support in cpu

Added support of logistic operation (which is sigmoid)

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
* Address feedback: use std::exp instead of exp

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years ago[neurun] Print error when a test was not found (#8728)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 05:38:25 +0000 (14:38 +0900)]
[neurun] Print error when a test was not found (#8728)

Print error when a framework test was not found. It is printed in file
`framework_test.log`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[moco] Set graph input shape in Importer (#8746)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 05:35:35 +0000 (14:35 +0900)]
[moco] Set graph input shape in Importer (#8746)

This will enable graph input shape setting after loading in Importer

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoRemove oneco-integration-test (#8747)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 03:22:09 +0000 (12:22 +0900)]
Remove oneco-integration-test (#8747)

This commit removes oneco-integration-test, which is replaced by
oneco-value-pbtxt-test

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoRemove tf2tflite-integration-test (#8748)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 03:21:56 +0000 (12:21 +0900)]
Remove tf2tflite-integration-test (#8748)

This commit removes tf2tflite-integration-test, which is replaced by
tf2tflite-value-pbtxt-test.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoRemove tf2tflite-model-test (#8749)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 02:30:38 +0000 (11:30 +0900)]
Remove tf2tflite-model-test (#8749)

This commit removes tf2tflite-model-test, which is replaced by
tf2tflite-value-pb-test

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoRemove moco-integration-test (#8750)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 02:30:25 +0000 (11:30 +0900)]
Remove moco-integration-test (#8750)

This commit removes moco-integration-test, which replaced by
moco-value-pbtxt-test

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] Register Fuse Rsqrt and SquaredDifference (#8705)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 01:53:22 +0000 (10:53 +0900)]
[exo] Register Fuse Rsqrt and SquaredDifference (#8705)

This commit registers FuseRsqrtPass and FuseSquaredDifferencePass to exo
TFL optimize stage. Note that FuseSquaredDifferencePass is turn off by
default.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[nncc] Install tf2circle (#8725)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 01:49:10 +0000 (10:49 +0900)]
[nncc] Install tf2circle (#8725)

Let's include tf2circle in nncc package. Please note that tf2nnpkg
still uses tf2ftlite and tflite2circle instead of this tf2circle.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[exo] Export TFLMean (#8740)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 01:40:43 +0000 (10:40 +0900)]
[exo] Export TFLMean (#8740)

This commit implements export stage of TFLMean for both tflite and
circle output

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[nncc] Show configure progress (#8679)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Nov 2019 00:57:52 +0000 (09:57 +0900)]
[nncc] Show configure progress (#8679)

* [nncc] Show configure progress

From now on, running nncc configure shows configuration progress for
each individual components.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix a typo

4 years agoIntroduce oneco-value-pbtxt-test (#8737)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 00:25:01 +0000 (09:25 +0900)]
Introduce oneco-value-pbtxt-test (#8737)

This commit introduces oneco value test for pbtxt input model. It copies
existing oneco-integration-test only with renaming.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoIntroduce moco-value-pbtxt-test (#8738)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 00:20:25 +0000 (09:20 +0900)]
Introduce moco-value-pbtxt-test (#8738)

This commit introduces moco value test for pbtxt input model. It copies
existing moco-integration-test only with renaming.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoIntroduce tf2tflite-value-pb-test (#8735)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 00:18:41 +0000 (09:18 +0900)]
Introduce tf2tflite-value-pb-test (#8735)

This commit introduces tf2tflite value test for pb input model. It copies
existing tf2tflite-model-test only with renaming.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoIntroduce tf2tflite-value-pbtxt-test (#8736)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 5 Nov 2019 00:18:28 +0000 (09:18 +0900)]
Introduce tf2tflite-value-pbtxt-test (#8736)

This commit introduces tf2tflite value test for pbtxt input model. It copies
existing tf2tflite-integration-test only with renaming.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] introducing DomainConverter (#8745)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Nov 2019 00:14:19 +0000 (09:14 +0900)]
[exo] introducing DomainConverter (#8745)

This adds DomainConverter and InputHandler, which are helpers used while converting a canonical node in Feature domain into a TFL node (Tensor domain).

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[moco] GraphOutputIndexQueryService in TF dialect (#8726)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Nov 2019 23:22:54 +0000 (08:22 +0900)]
[moco] GraphOutputIndexQueryService in TF dialect (#8726)

This will add GraphOutputIndexQueryService in TF dialect

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoEnable ncnn(srcn) tensor to support NCHW (#8723)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 4 Nov 2019 09:50:36 +0000 (18:50 +0900)]
Enable ncnn(srcn) tensor to support NCHW (#8723)

This commit enables ncnn(srcn) tensor to support NCHW(row major).

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[tf2tflite-dredd-pbtxt-test] renaming tf2tflite-quality-test to tf2tflite-dredd-pbtxt...
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Nov 2019 08:54:56 +0000 (17:54 +0900)]
[tf2tflite-dredd-pbtxt-test] renaming tf2tflite-quality-test to tf2tflite-dredd-pbtxt-test (#8717)

* [tf2tflite-dredd-pbtxt-test] renaming tf2tflite-quality-test

As discussed offlie, tf2tflite-qualit-test is renamed to tf2tflite-dredd-pbtxt-test.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* removed compiler/tf2tflite-quality-test/.gitignore

4 years ago[loader] Fix infinite recursive call (#8724)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Nov 2019 08:06:59 +0000 (17:06 +0900)]
[loader] Fix infinite recursive call (#8724)

Explicit call parent class's method

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[moco] TFPlaceholder helpers for index query (#8720)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Nov 2019 07:45:10 +0000 (16:45 +0900)]
[moco] TFPlaceholder helpers for index query (#8720)

This will add two helper methods for GraphInputIndex query service

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[neurun] Replace OperandIndex in DepthToSpace and SpaceToDepth Params (#8707)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 4 Nov 2019 07:16:28 +0000 (10:16 +0300)]
[neurun] Replace OperandIndex in DepthToSpace and SpaceToDepth Params (#8707)

Replace `OperandIndex` in `DepthToSpace::Param` and `SpaceToDepth::Param` with `int32_t`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoIntroduce a configuration for layout of ncnn (#8621)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 4 Nov 2019 07:12:46 +0000 (16:12 +0900)]
Introduce a configuration for layout of ncnn (#8621)

This commit introduces a configuration for layout of ncnn.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[loco] GraphInputIndexQueryService and input_nodes() (#8713)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Nov 2019 06:48:17 +0000 (15:48 +0900)]
[loco] GraphInputIndexQueryService and input_nodes() (#8713)

This will introduce GraphInputIndexQueryService interface and input_nodes() method to gather Graph Input nodes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoMake ExecutorBase supports NCHW frontend layout (#8692)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 4 Nov 2019 04:23:58 +0000 (13:23 +0900)]
Make ExecutorBase supports NCHW frontend layout (#8692)

This commit makes ExecutorBase supports NCHW frontend layout.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Replace OperandIndex in LocalResponseNormalization::Param (#8708)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 4 Nov 2019 02:27:59 +0000 (05:27 +0300)]
[neurun] Replace OperandIndex in LocalResponseNormalization::Param (#8708)

Replace `OperandIndex` in `LocalResponseNormalization::Param` with `int32_t` / `float`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[lib/ncnn] Fix depthwise conv NCHW kernel bug (#8711)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Nov 2019 02:27:36 +0000 (11:27 +0900)]
[lib/ncnn] Fix depthwise conv NCHW kernel bug (#8711)

Fix depthwise convolution NCHW 3x3 weight same padding kernel bug

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[base_loader] Throw when file open failed (#8706)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 4 Nov 2019 01:09:26 +0000 (10:09 +0900)]
[base_loader] Throw when file open failed (#8706)

Throw with a brief message when file open failed

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[exo] TFLMean IR (#8698)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Sun, 3 Nov 2019 22:09:46 +0000 (07:09 +0900)]
[exo] TFLMean IR (#8698)

This commit introduces TFLMean IR

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[moco] Fix typo on TFMean shape inference (#8699)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 1 Nov 2019 08:24:27 +0000 (17:24 +0900)]
[moco] Fix typo on TFMean shape inference (#8699)

This commit fixes typo on TFMean shape inference

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[nnpackage_run] Use HDF5 C++ interface (#8671)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 1 Nov 2019 08:19:32 +0000 (11:19 +0300)]
[nnpackage_run] Use HDF5 C++ interface (#8671)

Use HDF5 C++ interface instead of C.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoDo NOT install locomotiv (#8690)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Nov 2019 07:46:24 +0000 (16:46 +0900)]
Do NOT install locomotiv (#8690)

locomotiv is now built as a static library, and thus it is no longer
necessary to install this library.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco] Use moco Importer.h (#8702)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 1 Nov 2019 07:35:39 +0000 (16:35 +0900)]
[moco] Use moco Importer.h (#8702)

This will update to use moco/Importer.h in moco and remove old file in sub folder

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[test] Fix misleading path (#8693)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 1 Nov 2019 07:29:52 +0000 (16:29 +0900)]
[test] Fix misleading path (#8693)

Nit: fix path in `test_arm_neurun_acl_cl.sh`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Introduce InstanceNorm op (#8526)
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Nov 2019 07:23:55 +0000 (16:23 +0900)]
[neurun] Introduce InstanceNorm op (#8526)

This commit introduces InstanceNorm op into runtime frontend.
  - Introduce InstanceNormNode into neurun
  - Introduce InstanceNorm op into frontend
  - Use default value if value of epsilon is zero

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
4 years ago[exo] Knob for fuse SquaredDifference (#8696)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 1 Nov 2019 07:15:05 +0000 (16:15 +0900)]
[exo] Knob for fuse SquaredDifference (#8696)

This commit introduces UseFuseSquaredDifferencePass knob

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] Register EltwiseSqrt Converter (#8697)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 1 Nov 2019 07:14:51 +0000 (16:14 +0900)]
[exo] Register EltwiseSqrt Converter (#8697)

This commit registers EltwiseSqrt Converter to exo conversion stage

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] Remove redundant steps of type and shape inference (#8695)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 1 Nov 2019 07:14:01 +0000 (16:14 +0900)]
[exo] Remove redundant steps of type and shape inference (#8695)

This removes redundant steps of type and shape inference.

Note that convert() and optimize() has already performed type and shape inference.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>