platform/core/ml/nnfw.git
4 years ago[nnpkg_tools] remove debug print and unnecessary line (#8937)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 06:36:43 +0000 (15:36 +0900)]
[nnpkg_tools] remove debug print and unnecessary line (#8937)

- fuse_instance_norm.js
  : remove all console.debug statement to suppress output
- gen_golden.py
  : remove dead code

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[neurun] Eliminate OperandIndex in StridedSlice::Param (#8916)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 14 Nov 2019 06:26:03 +0000 (09:26 +0300)]
[neurun] Eliminate OperandIndex in StridedSlice::Param (#8916)

* Make `starts`, `ends` and `strides` inputs to the operation.
* Make `begin_axis_mask`, `end_axis_mask`, `shrink_axis_mask` static attributes of the operation.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Eliminate OperandIndex in TopKV2::Param (#8930)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 14 Nov 2019 05:33:41 +0000 (08:33 +0300)]
[neurun] Eliminate OperandIndex in TopKV2::Param (#8930)

Make `k` static attribute of the operation.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[pb2nnpkg] introduce pb_select_graph (#8936)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 05:27:59 +0000 (14:27 +0900)]
[pb2nnpkg] introduce pb_select_graph (#8936)

pb2nnpkg uses python script to select subgraph.
It does not require you to build tensorflow any longer.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[moco] Set name for TFNode when importing (#8933)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 03:22:02 +0000 (12:22 +0900)]
[moco] Set name for TFNode when importing (#8933)

This will set name for TFNode when importing from TensorFlow NodeDef

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[nnpkg-tools] introduce pb2nnpkg (#8920)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 02:07:24 +0000 (11:07 +0900)]
[nnpkg-tools] introduce pb2nnpkg (#8920)

It introduces pb2nnpkg, which gets pb file, input name, output name.
Then, generates pb of selected subgraph, and nnpackage with golden data.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[neurun] Inline one-liner of ProfileObserver (#8914)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 14 Nov 2019 00:59:28 +0000 (09:59 +0900)]
[neurun] Inline one-liner of ProfileObserver (#8914)

This commit inlines one-liner function which is only used once for
simplicity.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[moco] Add TFNode name attribute (#8927)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 13 Nov 2019 22:03:21 +0000 (07:03 +0900)]
[moco] Add TFNode name attribute (#8927)

This will introduce name attribute for TFNode so that we can store and fetch string name of each nodes from TensorFlow NodeDef

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[mir] FullyConnected ctor with fused bias (#8668)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 13 Nov 2019 17:32:18 +0000 (20:32 +0300)]
[mir] FullyConnected ctor with fused bias (#8668)

* Added FC ctor with fused bias
* Fixed FC copying

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[moco] Test for TFNode name attribute (#8922)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 13 Nov 2019 06:20:26 +0000 (15:20 +0900)]
[moco] Test for TFNode name attribute (#8922)

This will introduce a test for disabled TFNode name attribute and query TFNode by name
- disabled part should work after related codes land

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[tf2tflite_dredd_pbtxt_test] error handling using trap (#8910)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 13 Nov 2019 05:02:00 +0000 (14:02 +0900)]
[tf2tflite_dredd_pbtxt_test] error handling using trap (#8910)

* [tf2tflite_dredd_pbtxt_test] error handling using trap

This adds error handling using trap command.

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

4 years ago[runtime/gbs] Revise nnfw.spec for tizen runtime rpm build (#8908)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 13 Nov 2019 04:30:22 +0000 (13:30 +0900)]
[runtime/gbs] Revise nnfw.spec for tizen runtime rpm build (#8908)

- Build twice
  - Build for runtime (disable environment variable setting)
  - Build for test (enable environment variable setting)
- Enable extra option
- Use command instead of makefile
- Change file copy to install for library install
- Set required packages for package install
- Set own directory

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[mir2loco] Introduce Transpose op transformer (#8871)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 12 Nov 2019 14:53:17 +0000 (17:53 +0300)]
[mir2loco] Introduce Transpose op transformer (#8871)

* Implemented TransposeOp transformer and test for it

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[neurun] Verbose exception message for Backends (#8901)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 12 Nov 2019 09:55:01 +0000 (18:55 +0900)]
[neurun] Verbose exception message for Backends (#8901)

ShapeFixer exception message shows that it is from which module and its
operation name.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[runtime/pkg] Create runtime package in Makefile (#8856)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 12 Nov 2019 05:29:18 +0000 (14:29 +0900)]
[runtime/pkg] Create runtime package in Makefile (#8856)

Using makefile, create runtime package
Ex. For ubuntu, armv7l
"CROSS_BUILD=1 TARGET_ARCH=armv7l BUILD_TYPE=release make create_tar"

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoFix warnings generated for Index class (#8626)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 12 Nov 2019 05:26:23 +0000 (08:26 +0300)]
Fix warnings generated for Index class (#8626)

* Fix the type of the parameter of the copy constructor of the `Index` class. This silences -Wdeprecated-copy GCC 8.1+ warnings.
* Make the copy constructor and copy assignment operator defaulted. This silences clang-tidy warnings suggesting to pass objects of `Index` class by const reference.
* Fix description of inequality operators.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[nnfwapi] Verbose error message on model load (#8890)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 12 Nov 2019 05:06:25 +0000 (14:06 +0900)]
[nnfwapi] Verbose error message on model load (#8890)

Print message of thrown `std::exception` objects.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[tf2tflite-dredd-pbtxt-test] Error handling for runner.sh (#8888)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 12 Nov 2019 03:49:31 +0000 (12:49 +0900)]
[tf2tflite-dredd-pbtxt-test] Error handling for runner.sh (#8888)

This adds error handling for runner.sh.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[exo] Revising convert(..) method using DomainConverter (#8895)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 12 Nov 2019 03:47:26 +0000 (12:47 +0900)]
[exo] Revising convert(..) method using DomainConverter (#8895)

This revised convert(..) methond using DomainConverter.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[neurun] Remove depedency on nnapi-header (#8889)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 12 Nov 2019 01:35:29 +0000 (10:35 +0900)]
[neurun] Remove depedency on nnapi-header (#8889)

Remove core lib's depedency on nnapi-header which is no longer needed.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[onnx2circle] Initial version of onnx2circle (#8872)
Alexander Efimov/AI Tools Lab/./Samsung Electronics [Mon, 11 Nov 2019 13:14:36 +0000 (16:14 +0300)]
[onnx2circle] Initial version of onnx2circle (#8872)

Add utility to convert onnx networks to circle

Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
5 years ago[logo] Fix SimplifyDomainConversionPass (#8874)
Alexander Efimov/AI Tools Lab/./Samsung Electronics [Mon, 11 Nov 2019 12:29:03 +0000 (15:29 +0300)]
[logo] Fix SimplifyDomainConversionPass (#8874)

- Add test for filter elimination optimization
- Fix assert in filter elimination optimization

Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
5 years ago[tf2circle-dredd-pb-test] Introducing tf2circle-dredd-pb-test (#8883)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 07:15:18 +0000 (16:15 +0900)]
[tf2circle-dredd-pb-test] Introducing tf2circle-dredd-pb-test (#8883)

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

tf2circle-dredd-pb-test is introduced, which is a test for circle files generated from pb files in ./contrib dir.

Note that files in the PR is copied files from tf2tflite-dredd-pb-test, after replacing string "tflite" and "tfl" to "circle".

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* remove nncc_find_resource(TensorFlowTests)

5 years ago[tf2tflite-dredd-pb-test] remove nncc_find_resource(TensorFlowTests) (#8884)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 06:21:27 +0000 (15:21 +0900)]
[tf2tflite-dredd-pb-test] remove nncc_find_resource(TensorFlowTests) (#8884)

nncc_find_resource(TensorFlowTests) was removed from CMakeLists.txt.
(This resource is not required by tf2tflite-dredd-pb-test)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[circle-inspect] Adding "--conv2d_weight" support (#8879)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 06:20:29 +0000 (15:20 +0900)]
[circle-inspect] Adding "--conv2d_weight" support (#8879)

* [circle-inspect] Adding "--conv2d_weight" support

This adds "--conv2d_weight" support for circle-inspect. Modified code was from _tfl_inspect_.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/circle-inspect/driver/Driver.cpp

Thanks!

Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
5 years ago[tf2circle-dredd-pbtxt-test] Introducing tf2circle-dredd-pbtxt-test (#8882)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 06:11:00 +0000 (15:11 +0900)]
[tf2circle-dredd-pbtxt-test] Introducing tf2circle-dredd-pbtxt-test (#8882)

* [tf2circle-dredd-pbtxt-test] Introducing tf2circle-dredd-pbtxt-test

tf2circle-dredd-pbtxt-test is introduced, which is rule base test for circle files generated from pbtxt files under `res/TensorFlowTests/`.

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

thanks, bot.

Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
5 years agoAdd TODO comment into IConstantInitializer. (#8880)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 11 Nov 2019 06:05:25 +0000 (15:05 +0900)]
Add TODO comment into IConstantInitializer. (#8880)

This commit adds TODO comment checking if tensor has been allocated into IConstasntInitializer.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[runtime] Remove default LD_LIBRARY_PATH (#8876)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 11 Nov 2019 05:45:05 +0000 (14:45 +0900)]
[runtime] Remove default LD_LIBRARY_PATH (#8876)

Remove LD_LIBRARY_PATH setting except pacl test because rpath is set on install

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[exo] FusedActFunc as Circle NodeMixin (#8877)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 11 Nov 2019 04:29:07 +0000 (13:29 +0900)]
[exo] FusedActFunc as Circle NodeMixin (#8877)

This commit introduces Circle NodeMixin, and as its first use case,
FusedActFunc

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnfw/cmd] Revise workspace setting in command (#8844)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 11 Nov 2019 03:58:38 +0000 (12:58 +0900)]
[nnfw/cmd] Revise workspace setting in command (#8844)

- Use absolute path as defulat: workspace, build path, install path
- Move common build path configuration into build.configuration
- Use build and install command in makefile
- Simplify to use absolute path in Makefile

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[exo] Delete removable headers for NodeImpl (#8818)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 11 Nov 2019 03:55:15 +0000 (12:55 +0900)]
[exo] Delete removable headers for NodeImpl (#8818)

This commit deletes removable headers for TFL dialect and Circle dialect
NodeImpl

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[dredd-lib-rule] Adding rule function for 'verify' (#8868)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 03:47:19 +0000 (12:47 +0900)]
[dredd-lib-rule] Adding rule function for 'verify' (#8868)

This adds rule function for 'verify'.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tf2tflite-dredd-pb-test] Modified just like tf2tflite-dredd-pb-test (#8869)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 10 Nov 2019 23:27:36 +0000 (08:27 +0900)]
[tf2tflite-dredd-pb-test] Modified just like tf2tflite-dredd-pb-test (#8869)

* [tf2tflite-dredd-pb-test] Modified just like tf2tflite-dredd-pb-test

tf2tflite-dredd-pb-test was modified just like tf2tflite-dredd-pb-test.

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

Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
5 years ago[mir] Introduce new HardSwish operation (#8790)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 8 Nov 2019 12:57:07 +0000 (15:57 +0300)]
[mir] Introduce new HardSwish operation (#8790)

* Added hard swish new operation to mir

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[docs] Clarify test cases in STD documentation (#8848)
Alexander Efimov/AI Tools Lab/./Samsung Electronics [Fri, 8 Nov 2019 09:59:40 +0000 (12:59 +0300)]
[docs] Clarify test cases in STD documentation (#8848)

Reworded several test cases items and test cases to make clear how to implement them

Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
5 years ago[dredd-rule-lib] Using env var name independent of tfl or circle (#8867)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 08:43:20 +0000 (17:43 +0900)]
[dredd-rule-lib] Using env var name independent of tfl or circle (#8867)

Env var names were changed to be independent of tfl or circle.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tf2tflite-dredd-pbtxt] adding env vars independent of tfl or circle (#8864)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 07:31:07 +0000 (16:31 +0900)]
[tf2tflite-dredd-pbtxt] adding env vars independent of tfl or circle (#8864)

* [tf2tflite-dredd-pbtxt] adding env vars that will be used by rule-lib.sh

This adds env vars taht will be used by rule-lib.sh.
Currently var naming in rule-lib.sh in dredd-rule-lib has tfl dependency, so it cannot be used with circle.
This new name is to remove the dependency.

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

Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
5 years ago[neurun] Rename operation name getter (#8857)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 06:42:52 +0000 (15:42 +0900)]
[neurun] Rename operation name getter (#8857)

Rename operation name getter to `name` from `getName`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Support ReduceSum from BaseLoader (#8852)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 06:25:03 +0000 (15:25 +0900)]
[neurun] Support ReduceSum from BaseLoader (#8852)

Support ReduceSum operation from frontend BaseLoader. SUM operation in
TF Lite equals to ReduceSum in neurun.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[dredd-rule-lib] Cleaning the output of rule-lib.sh (#8862)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 06:16:07 +0000 (15:16 +0900)]
[dredd-rule-lib] Cleaning the output of rule-lib.sh (#8862)

This cleans the output of rule-lib.sh.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tf2tflite-dredd-pbtxt-test] Adding tfl-verify (#8861)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 06:07:54 +0000 (15:07 +0900)]
[tf2tflite-dredd-pbtxt-test] Adding tfl-verify (#8861)

This adds tfl-verify support into files related to cmake.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tf2tflite-dredd-pbtxt-test] Using rule-lib.sh in dredd-rule-lib (#8860)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 05:32:33 +0000 (14:32 +0900)]
[tf2tflite-dredd-pbtxt-test] Using rule-lib.sh in dredd-rule-lib (#8860)

tf2tflite-dredd-pbtxt-test now uses rule-lib.sh in dredd-rule-lib.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnfw] Rename singleton object getter (#8853)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 04:29:33 +0000 (13:29 +0900)]
[nnfw] Rename singleton object getter (#8853)

Rename singleton objects' getter metohd `instance` to `get`.
(Since it is shorter)

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[circle-inspect] Add verify model file (#8849)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 04:28:22 +0000 (13:28 +0900)]
[circle-inspect] Add verify model file (#8849)

This will add model verify step before inspection to prevent segmentation fault with invalid files

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-circle] Add missing fusedActivationFunction (#8845)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 04:14:07 +0000 (13:14 +0900)]
[exo-circle] Add missing fusedActivationFunction (#8845)

This commit will add missing fusedActivationFunction in circle exporter

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[dredd-rule-lib] Introducing dredd-rule-lib (#8833)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 04:12:31 +0000 (13:12 +0900)]
[dredd-rule-lib] Introducing dredd-rule-lib (#8833)

* [dredd-rule-lib] Introducing dredd-rule-lib

This introduces dredd-rule-lib, which defines rule-lib.sh used by tf2tflite/circle-dredd-pb/pbtxt-test.

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

5 years ago[exo] Adding InputHandler for converters that perform loco Domain conversion (#8842)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 03:13:08 +0000 (12:13 +0900)]
[exo] Adding InputHandler for converters that perform loco Domain conversion (#8842)

This adds InputHandler for Relu/Relu6/EltwiseSqrtConverter, which requires loco Domain conversion when input is Feature domain.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years agoRemove `Node` from tests and doc (#8854)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 03:11:24 +0000 (12:11 +0900)]
Remove `Node` from tests and doc (#8854)

This commit removes ``Node` from tests and doc.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[ncnn] Set default backend layout to NCHW (#8851)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 8 Nov 2019 03:07:20 +0000 (12:07 +0900)]
[ncnn] Set default backend layout to NCHW (#8851)

Current ncnn backend allow NCHW backend only on many operations, so set default backend layout to NCHW

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoUpdate document (#8803)
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 01:54:34 +0000 (10:54 +0900)]
Update document (#8803)

- Use copy instead of symbolic link for convenience in modifying the
Makefile
- Fix Build command. Existing last `make install` causes a new x86_64
build.

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
5 years ago[neurun] Remove IsNnapi field from Operations.lst (#8835)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 01:36:36 +0000 (10:36 +0900)]
[neurun] Remove IsNnapi field from Operations.lst (#8835)

Remove IsNnapi field from `Operations.lst` since it is not helpful.

Related Issue: #8751

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Support BatchToSpaceND from BaseLoader (#8837)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 01:17:23 +0000 (10:17 +0900)]
[neurun] Support BatchToSpaceND from BaseLoader (#8837)

Support BatchToSpaceND operation from frontend BaseLoader.
Currently we do not support CROP input. So it throws an exception when
the value of crop is other than {{0, 0}, {0, 0}}.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[tflite2circle] Introduce fuse_instance_norm (#8452)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 01:16:19 +0000 (10:16 +0900)]
[tflite2circle] Introduce fuse_instance_norm (#8452)

implemented in javascript (nodejs)

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoFix an error that occurs in a tensor with rank 0 (#8847)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 01:11:03 +0000 (10:11 +0900)]
Fix an error that occurs in a tensor with rank 0 (#8847)

This commit fixes an error that occurs in a tensor with rank 0.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[CI/script] Update ncnn backend test (#8830)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 8 Nov 2019 01:07:02 +0000 (10:07 +0900)]
[CI/script] Update ncnn backend test (#8830)

Move ncnn backend test from cpu to acl_neon
Update framework test list and use NCHW layout

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[CI/script] Update coverage test script (#8840)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 8 Nov 2019 01:06:26 +0000 (10:06 +0900)]
[CI/script] Update coverage test script (#8840)

- Use unified archive path: build/archive
- Update rename runtime path: runtimes -> runtime
- Add compute directory

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[exo] remove unused code from ShapeInference and TypeInference (#8843)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 00:34:01 +0000 (09:34 +0900)]
[exo] remove unused code from ShapeInference and TypeInference (#8843)

Unused code was removed from ShapeInference and TypeInference.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[mir-tflite-importer] TFLite frontend schema upgrade (#8789)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 7 Nov 2019 13:13:17 +0000 (16:13 +0300)]
[mir-tflite-importer] TFLite frontend schema upgrade (#8789)

* Upgraded tflite importer schema

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[tfl-inspect] Fix for invalid file segfault (#8836)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 7 Nov 2019 10:08:29 +0000 (19:08 +0900)]
[tfl-inspect] Fix for invalid file segfault (#8836)

This will fix not to die with Segmentation fault for invalid tflite file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>