platform/core/ml/nnfw.git
5 years ago[moco-tf] Update to use moco TFDialect (#8522)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 07:13:40 +0000 (16:13 +0900)]
[moco-tf] Update to use moco TFDialect (#8522)

This will update to use moco TFDialect in src folder

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo] rewriting FuseBiasAddPass to use Mixin<Bias> (#8507)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 06:50:30 +0000 (15:50 +0900)]
[exo] rewriting FuseBiasAddPass to use Mixin<Bias>  (#8507)

* [exo] FuseBiasAddPass

This code is modified to use Mixin<Bias> instead of TFLConv2D. (This commit is a part of modification.)

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

* Fix get_former()

5 years ago[moco-tf] Update to use moco TFDialect (#8514)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 06:36:07 +0000 (15:36 +0900)]
[moco-tf] Update to use moco TFDialect (#8514)

This will update to use TFDialect from moco project

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[circle_inspect] Initial circle-inspect project (#8513)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 06:35:47 +0000 (15:35 +0900)]
[circle_inspect] Initial circle-inspect project (#8513)

This will introduce circle-inspect project to inspect Circle model file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] Update Transform header with moco (#8512)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 06:35:30 +0000 (15:35 +0900)]
[moco-tf] Update Transform header with moco (#8512)

This will update Transforms header to include individual Passes from moco and delete not used anymore redirect header files

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[tf2nnpk] check existence and provide help (#8499)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 06:23:18 +0000 (15:23 +0900)]
[tf2nnpk] check existence and provide help (#8499)

It will show help with `--help`.
It will check existence of flatc, graphdef and info file.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoMake to support Pack op for acl neon (#8506)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 28 Oct 2019 04:59:22 +0000 (13:59 +0900)]
Make to support Pack op for acl neon (#8506)

This commit makes to support Pack op for acl neon.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[ncnn-backend] Enable NCNN backend test (#8482)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 28 Oct 2019 04:52:02 +0000 (13:52 +0900)]
[ncnn-backend] Enable NCNN backend test (#8482)

Test ncnn backend - transpose conv only
(run with cpu backend test job)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[moco-tf] Use moco Importer (#8504)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 04:09:47 +0000 (13:09 +0900)]
[moco-tf] Use moco Importer (#8504)

This will update to use moco Importer header

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[neurun] Change Gather axis param to int (#8460)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 28 Oct 2019 03:58:23 +0000 (06:58 +0300)]
[neurun] Change Gather axis param to int (#8460)

* Changed Gather axis param from OperandIndex to int

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[moco_tf] Remove ResolveFusedBatchNorm test (#8502)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 03:57:48 +0000 (12:57 +0900)]
[moco_tf] Remove ResolveFusedBatchNorm test (#8502)

This will remove ResolveFusedBatchNorm test as the Pass itself has migrated to moco-pass

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] Use mono namespace of Passes (#8500)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 03:46:54 +0000 (12:46 +0900)]
[moco-tf] Use mono namespace of Passes (#8500)

This will update to use moco namespace of Passes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[tfl-inspect] Introduce dump operators (#8493)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 03:19:12 +0000 (12:19 +0900)]
[tfl-inspect] Introduce dump operators (#8493)

* [tfl-inspect] Introduce dump operators

This will introduce DumpOperators and use this for dumping operators in the model file

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

5 years ago[tf2nnpkg] Exit immediately on fail (#8468)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 28 Oct 2019 01:53:51 +0000 (10:53 +0900)]
[tf2nnpkg] Exit immediately on fail (#8468)

Exit immediately if one of called script or binary  (tf2tflite, tflite2circle, model2nnpkg) failed

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[moco-tf] Redirect to use moco Pass (#8492)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 01:51:30 +0000 (10:51 +0900)]
[moco-tf] Redirect to use moco Pass (#8492)

This will redirect to use moco Pass and delete migrated Pass implementions

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years agoMake to support Pack op for acl_cl (#8490)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 28 Oct 2019 01:11:14 +0000 (10:11 +0900)]
Make to support Pack op for acl_cl (#8490)

This commit makes to support Pack op for acl_cl.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoChange calculating offset of Readers and Views (#8409)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 28 Oct 2019 01:09:35 +0000 (10:09 +0900)]
Change calculating offset of Readers and Views (#8409)

This commit changes calculating offset of Readers and Views to use strides.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[nnpkg_test] nnpkg_test list accepts wildcard (#8486)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 28 Oct 2019 00:55:12 +0000 (09:55 +0900)]
[nnpkg_test] nnpkg_test list accepts wildcard (#8486)

- You can use * in list.
- nnpkg_test list is updated.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[exo] revising comment for the target nodes of FusedBiasAddPass (#8477)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 27 Oct 2019 21:48:20 +0000 (06:48 +0900)]
[exo] revising comment for the target nodes of FusedBiasAddPass (#8477)

Comment for the target nodes of FusedBiasAddPass was revised.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[exo] mixin for nodes that have bias input and fused activation function (#8476)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 27 Oct 2019 21:45:42 +0000 (06:45 +0900)]
[exo] mixin for nodes that have bias input and fused activation function (#8476)

* [exo] mixin for nodes that have bias input and fused activation function

This adds a  mixin for nodes that have bias input and fused activation function.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* remove inheritance structure of mixin

5 years ago[exo] renaming template type and node name (#8483)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 27 Oct 2019 21:28:16 +0000 (06:28 +0900)]
[exo] renaming template type and node name (#8483)

Instead of trying to imply real type of template type,
general T is used and static_assert was added to explicitly show allowed type.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tfl-inspect] Introduce Reader (#8461)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 27 Oct 2019 21:26:44 +0000 (06:26 +0900)]
[tfl-inspect] Introduce Reader (#8461)

* [tfl-inspect] Introduce Reader

This will introduce tflite file Reader class and required methods

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use tflinspect namespace

* move Model inside src

5 years ago[moco] Introduce Pass (#8466)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 27 Oct 2019 21:25:58 +0000 (06:25 +0900)]
[moco] Introduce Pass (#8466)

* [moco] Introduce Pass

This will introduce Pass that provides TF dialect pass, transformation and optimization

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

5 years ago[nnc] Extract implementations of activation functions (#8487)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 25 Oct 2019 11:06:50 +0000 (14:06 +0300)]
[nnc] Extract implementations of activation functions (#8487)

Extract implementation of activation function to cpp files.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
5 years agoIntroduce Pack op (#8355)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 25 Oct 2019 10:29:56 +0000 (19:29 +0900)]
Introduce Pack op (#8355)

* Introduce Pack op

This commit introduces Pack op into frontend.
  - Introduce PackNode into neurun
  - Introduce Pack op into frontend

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Add NYI runtime_error for pack op of base_loader

This commit adds NYI runtime_error for pack op of base_loader.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoUpdate nnpkg_test list (#8481)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 25 Oct 2019 08:12:49 +0000 (17:12 +0900)]
Update nnpkg_test list (#8481)

This commit updates nnpkg_test's test coverage.

Note that unit test for 'Concat' and 'DepthwiseConv2D' have been changed
their names:
- UNIT_Concat_* -> UNIT_ConcatV2_*
- UNIT_DepthwiseConv2D_* -> UNIT_DepthwiseConv2dNative_*

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[android] Introduce android_benchmark_app (#8380)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 25 Oct 2019 08:00:25 +0000 (17:00 +0900)]
[android] Introduce android_benchmark_app (#8380)

* [android] Introduce android_benchmark_app

This commit introduces an Android benchmark app for easy testing with an
actual Android visual app rather than running on shell.

The app contains minimal UI which consist of 2 buttons and few text
views to show results.

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

5 years ago[CI] Infra scripts for nncc package and nnpkg test (#8471)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 25 Oct 2019 07:53:28 +0000 (16:53 +0900)]
[CI] Infra scripts for nncc package and nnpkg test (#8471)

CI infra scripts
- nncc build and resouce collection scripts
- Update build_nnpkg.sh to install nncc package
  - Update nncc-tc-to-nnpk-tc.sh to handle pb file and use tf2nnpkg

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[exo] renaming a method to a bit more detaild name (#8478)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 Oct 2019 07:51:25 +0000 (16:51 +0900)]
[exo] renaming a method to a bit more detaild name (#8478)

This renames `create_fused_bias()` to `create_fused_bias_const()`.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[exo] refactoring: rearranging if.. else.. in FuseBiasAddPass (#8479)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 Oct 2019 07:40:06 +0000 (16:40 +0900)]
[exo] refactoring: rearranging if.. else.. in FuseBiasAddPass (#8479)

This re-arranges `if (abnormal case) else if (normal case)` to `if (normal case) else if (abnormal case)` for better readability.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago'create-package' with relative install prefix (#8443)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 25 Oct 2019 06:24:23 +0000 (15:24 +0900)]
'create-package' with relative install prefix (#8443)

* 'create-package' with relative install prefix

This commit allows './nnas create-package' with relative install prefix

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Fix to be relative to user's directory

5 years ago[exo] setting FusedActFunc of TFLAdd and TFLSub with init() function (#8454)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 Oct 2019 06:22:38 +0000 (15:22 +0900)]
[exo] setting FusedActFunc of TFLAdd and TFLSub with init() function (#8454)

This adds init() method that sets FusedActFunc of TFLAdd and TFLSub

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tf2nnpkg] Model name (#8467)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 25 Oct 2019 03:45:30 +0000 (12:45 +0900)]
[tf2nnpkg] Model name (#8467)

Use model name for circle file and package directory output

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[nnas] Introduce verify-package command (#8435)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 25 Oct 2019 03:33:14 +0000 (12:33 +0900)]
[nnas] Introduce verify-package command (#8435)

This command allows users to verify NNAS Host Toolchain package. The
current implementation supports very basic checks.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnfw/cmd] Remove alias setting (#8359)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 25 Oct 2019 02:08:27 +0000 (11:08 +0900)]
[nnfw/cmd] Remove alias setting (#8359)

* [nnfw/cmd] Remove alias setting

Remove alias setting in command
Directory alias will be set on Makefile
Add and fix build path checking message

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix bug

5 years ago[moco] Remove service from lang (#8465)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 Oct 2019 01:30:02 +0000 (10:30 +0900)]
[moco] Remove service from lang (#8465)

This will remove service folder from Lang that exist as separate target

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[nnpackage_run] Fix time unit shown (#8398)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 25 Oct 2019 01:08:45 +0000 (10:08 +0900)]
[nnpackage_run] Fix time unit shown (#8398)

Fix printed time unit `sec` to `ms`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[exo] renaming test name (FuseConv2DBiasAddPassTest to FuseBiasAddPassTest) (#8455)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 Oct 2019 00:55:22 +0000 (09:55 +0900)]
[exo] renaming test name (FuseConv2DBiasAddPassTest to FuseBiasAddPassTest) (#8455)

Test name was renamed from FuseConv2DBiasAddPassTest to FuseBiasAddPassTest.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco] Let Support use Lang (#8462)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 25 Oct 2019 00:45:51 +0000 (09:45 +0900)]
[moco] Let Support use Lang (#8462)

This will update Support to use Lang target
- delete  migrated TFDataLayout and TFPadding
- use TFDataLayout and TFPadding from Lang
- update cmake build order

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[res/TensorFlowTests] test models for fusing DepthwiseConv with other ops (#8457)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 23:16:17 +0000 (08:16 +0900)]
[res/TensorFlowTests] test models for fusing DepthwiseConv with other ops (#8457)

This adds test models for fusing DepthwiseConv with other ops.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[mir-tflite-importer] Fix setting quantization only on uint8 tensors (#8458)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 24 Oct 2019 16:44:36 +0000 (19:44 +0300)]
[mir-tflite-importer] Fix setting quantization only on uint8 tensors (#8458)

* Added data type check for all creations of quantization

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[mir-tflite-importer] Fix checking quantized input type (#8456)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 24 Oct 2019 13:01:53 +0000 (16:01 +0300)]
[mir-tflite-importer] Fix checking quantized input type (#8456)

* Fixed setting quantization for InputOp then data type isn't UINT8

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[nnfw-api] Remove header install by copy (#8376)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 24 Oct 2019 11:32:04 +0000 (20:32 +0900)]
[nnfw-api] Remove header install by copy (#8376)

Divide nnfw api directory to src and include, and install public headers
Rename nnapi directory and install public header

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[exo] Convert DepthwiseConv2D applied (#8449)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 10:21:36 +0000 (19:21 +0900)]
[exo] Convert DepthwiseConv2D applied (#8449)

This commit turns on conversion for DepthwiseConv2D

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco] Add TFDataLayout and TFPadding to IR (#8453)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 10:18:46 +0000 (19:18 +0900)]
[moco] Add TFDataLayout and TFPadding to IR (#8453)

This will add  TFDataLayout and TFPadding type into IR

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years agoFix undefined symbol error on libbackend_srcn.so (#8447)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 10:10:08 +0000 (19:10 +0900)]
Fix undefined symbol error on libbackend_srcn.so (#8447)

This commit fixes undedefined symbol error of openmp's function on libbackend_srcn.so.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[circle-schema] use ubyte for BuiltinOperator (#8451)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 10:09:17 +0000 (19:09 +0900)]
[circle-schema] use ubyte for BuiltinOperator (#8451)

Previously, it was byte, which can't accommodate 254 (instance_norm).

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[cmd] Introduce skipconfigure and skipbuild (#8406)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 24 Oct 2019 10:08:45 +0000 (19:08 +0900)]
[cmd] Introduce skipconfigure and skipbuild (#8406)

* [cmd] Introduce skipconfigure and skipbuild

Introduce skipconfigure and skipbuild argument to use pre-configured setting or pre-build result

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Use string value and string compare

5 years ago[moco-tf] Link with moco-service (#8450)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 09:32:58 +0000 (18:32 +0900)]
[moco-tf] Link with moco-service (#8450)

This will let moco-tf link with moco-service

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo] moving ConcatMerge from convert() to optimize() (#8445)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 09:25:25 +0000 (18:25 +0900)]
[exo] moving ConcatMerge from convert() to optimize() (#8445)

ConcatMerge is a pass for TFL nodes. Therefore it would be better to run this pass after completion of canonical nodes to TFL nodes.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[exo] FoldReshapeOfConst applied (#8442)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 06:47:25 +0000 (15:47 +0900)]
[exo] FoldReshapeOfConst applied (#8442)

This commit turn on FoldReshapeOfConst pass for TFL optimization stage

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[tfl-inspect] Introduce empty tfl-inspect (#8428)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 06:46:43 +0000 (15:46 +0900)]
[tfl-inspect] Introduce empty tfl-inspect (#8428)

* [tfl-inspect] Introduce empty tfl-inspect

This will introduce empty tfl-inspect tool to show operators in TensorFlow lite model file

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

* use tfl-inspect

* split example

5 years ago[moco-service] Introduce moco-service (#8436)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 06:40:17 +0000 (15:40 +0900)]
[moco-service] Introduce moco-service (#8436)

This will introduce moco-service extracted from moco-lang

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo] Renaming FuseConv2DAddSubPass to FuseBiasAddPass (#8441)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 06:28:22 +0000 (15:28 +0900)]
[exo] Renaming FuseConv2DAddSubPass to FuseBiasAddPass (#8441)

Supporting BiasAdd is needed for more ops (other than Conv2D) so pass is renamed into more general term.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years agoAdd Exp op into base_loader (#8414)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 24 Oct 2019 06:03:16 +0000 (15:03 +0900)]
Add Exp op into base_loader (#8414)

Now, base_loader supports EXP operatoin.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years ago[exo] Convert DepthwiseConv2D (#8431)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 05:36:57 +0000 (14:36 +0900)]
[exo] Convert DepthwiseConv2D (#8431)

This commit introduces conversion for DepthwiseConv2D. It converts
canonical DepthwiseConv2D into TFLDepthwiseConv2D plus some auxiliary

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco-integraion-test] turn on placeholder test (#8434)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 04:56:19 +0000 (13:56 +0900)]
[moco-integraion-test] turn on placeholder test (#8434)

This commit turns on placeholder no shape related test.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[tf2tflite] turn on placeholder test (#8433)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 04:56:03 +0000 (13:56 +0900)]
[tf2tflite] turn on placeholder test (#8433)

This commit turns on placeholder no shape related test.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years agoAdd ReduceMax into base_loader (#8415)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 24 Oct 2019 04:39:51 +0000 (13:39 +0900)]
Add ReduceMax into base_loader (#8415)

Now, base_loader supports ReduceMax op

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years ago[exo] Fold Reshape of Const Pass (#8432)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 04:32:26 +0000 (13:32 +0900)]
[exo] Fold Reshape of Const Pass (#8432)

This commit introduces FoldReshapeOfConst Pass, which folds TFLReshape
followed by TFLConst

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years agoIntroduce mio-circle (#8426)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 24 Oct 2019 04:29:30 +0000 (13:29 +0900)]
Introduce mio-circle (#8426)

* Introduce mio-circle

This commit introduces "mio-circle" which provides FlatBuffer generated
circle file accessor.

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

5 years ago[exo] TFLReshape inference for shape & type (#8430)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 04:26:58 +0000 (13:26 +0900)]
[exo] TFLReshape inference for shape & type (#8430)

* [exo] TFLReshape inference for shape & type

This commit implements shape and type inference for TFLReshape

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

5 years ago[moco] as Node cast helper in support (#8420)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 03:05:12 +0000 (12:05 +0900)]
[moco] as Node cast helper in support (#8420)

This will introduce as helper that casts to required type in support

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] rewrite graphDef (#8397)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 24 Oct 2019 02:59:52 +0000 (11:59 +0900)]
[moco-tf] rewrite graphDef (#8397)

* [moco-tf] rewrite graphDef

This commit adds rewrite graphDef function to Frontend.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* split one function into two.

* change function name.

* add for supporting zero-dim-size.

5 years ago[mio-tflite] Introduce mio-tflite (#8425)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 24 Oct 2019 01:43:35 +0000 (10:43 +0900)]
[mio-tflite] Introduce mio-tflite (#8425)

* [mio-tflite] Introduce mio-tflite

This will introduce mio-tflite that produces TensorFlow lite schema header file

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* follow circle for test

* provide as example not test

* remove blank

5 years ago[res] add Placeholder with no shape value network (#8418)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 23:31:27 +0000 (08:31 +0900)]
[res] add Placeholder with no shape value network (#8418)

This commit adds Placeholder with no shape value simple network.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[mir-tflite-importer] Support quantization on tflite frontend (#8314)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 23 Oct 2019 17:09:38 +0000 (20:09 +0300)]
[mir-tflite-importer] Support quantization on tflite frontend (#8314)

* Added setting quantization to Output
* Added fused bias Covn and DWConv op creation

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[nnc/interpreter] Fix removed method getProducer (#8424)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 23 Oct 2019 14:49:07 +0000 (17:49 +0300)]
[nnc/interpreter] Fix removed method getProducer (#8424)

* Fixed getting the type from input

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[mir] Fix setting output type on ConstantOp ctor (#8421)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 23 Oct 2019 14:34:31 +0000 (17:34 +0300)]
[mir] Fix setting output type on ConstantOp ctor (#8421)

* Fixed setOutputType on ctor

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[ncc/interpreter] Fix reading/writing tensors from/to files (#8292)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 23 Oct 2019 14:16:58 +0000 (17:16 +0300)]
[ncc/interpreter] Fix reading/writing tensors from/to files (#8292)

* Supported writing UINT8 DataType
* Reading files based on Input DataType size

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[nnc] Fix switcher transformation for qunatization (#8240)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 23 Oct 2019 14:16:15 +0000 (17:16 +0300)]
[nnc] Fix switcher transformation for qunatization (#8240)

* Fixed transpose inserters
* Fixed Conv2D and DepthwiseConv2D switchers

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[nnc] Quantize, Dequantize implementations on interpreter (#8175)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Wed, 23 Oct 2019 14:15:15 +0000 (17:15 +0300)]
[nnc] Quantize, Dequantize implementations on interpreter (#8175)

* Support Quantize, Dequantize operations on interpreter backend

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[exo] Reshape TFL dialect IR (#8321)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 09:50:31 +0000 (18:50 +0900)]
[exo] Reshape TFL dialect IR (#8321)

* [exo] Reshape TFL dialect IR

This commit introduces TFLReshape, a TFL dialect IR for Reshape
operator. It also introduces its summary.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Add shape() as second input

5 years ago[moco] Install support library (#8417)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 Oct 2019 09:44:59 +0000 (18:44 +0900)]
[moco] Install support library (#8417)

This will add install support library

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Install import and lang (#8411)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 23 Oct 2019 09:01:50 +0000 (18:01 +0900)]
[moco] Install import and lang (#8411)

tf2tflite requires moco_tf_frontend,
moco_tf_frontend requires moco_import and moco_lang

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[res] add no shape placeholder network (#8412)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 09:00:43 +0000 (18:00 +0900)]
[res] add no shape placeholder network (#8412)

This commit adds no shape placeholder simple network.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[exo] Type & Shape inference for TFLDepthwiseConv2D (#8395)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 08:59:31 +0000 (17:59 +0900)]
[exo] Type & Shape inference for TFLDepthwiseConv2D (#8395)

This commit introduces type and shape inference for TFLDepthwiseConv2D

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nncc] Allow users to set INCLUDE_DIR with FlatBuffers_Target (#8391)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 23 Oct 2019 06:51:07 +0000 (15:51 +0900)]
[nncc] Allow users to set INCLUDE_DIR with FlatBuffers_Target (#8391)

This commit revises FlatBuffers_Target helper to allow users to set
INCLUDE_DIR via option.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco-tf] set shape in Frontend test (#8408)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 05:35:32 +0000 (14:35 +0900)]
[moco-tf] set shape in Frontend test (#8408)

* [moco-tf] set shape in Frontend test

This commit set shape to signature in Frontend test.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* apply comment.

5 years ago[moco] Introduce Support (#8407)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 Oct 2019 05:35:06 +0000 (14:35 +0900)]
[moco] Introduce Support (#8407)

This will introduce moco-support with TFShapeInferenceHelper and related

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[logo] SimplifyDomainConversionPass for DepthwiseFilter combo (#8351)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 05:17:58 +0000 (14:17 +0900)]
[logo] SimplifyDomainConversionPass for DepthwiseFilter combo (#8351)

This commit supports DepthwiseFilterEncode - DepthwiseFilterDecode combo
for SimplifyDomainConversionPass.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[exo] Set FusedActivation for sub and div (#8405)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 03:11:03 +0000 (12:11 +0900)]
[exo] Set FusedActivation for sub and div (#8405)

This commit will set fusedActivationFunction for `sub` and `div`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[moco-tf] Remove GraphBuilder tests (#8402)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 Oct 2019 01:45:15 +0000 (10:45 +0900)]
[moco-tf] Remove GraphBuilder tests (#8402)

This will remove GraphBuilder tests that is now migrated into moco

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] Redirect Importer to moco (#8401)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 Oct 2019 00:50:02 +0000 (09:50 +0900)]
[moco-tf] Redirect Importer to moco (#8401)

This will redirect Importer header to moco and remove implementation and test

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Add tests for node GraphBuilder (#8400)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 23 Oct 2019 00:49:46 +0000 (09:49 +0900)]
[moco] Add tests for node GraphBuilder (#8400)

This will add tests for node GraphBuilder

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo] Export TFLDepthwiseConv2D (#8396)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 23 Oct 2019 00:02:07 +0000 (09:02 +0900)]
[exo] Export TFLDepthwiseConv2D (#8396)

This commit introduces export stage for TFLDepthwiseConv2D

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[mir] Remove unused functions (#8366)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 22 Oct 2019 22:09:24 +0000 (01:09 +0300)]
[mir] Remove unused functions (#8366)

Remove functions which were needed for transition period.

Signed-off-by: Sergei Barannikov <barannikov88@gmail.com>
5 years ago[moco-tf] use GraphBuilder of moco (#8393)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 22 Oct 2019 22:00:48 +0000 (07:00 +0900)]
[moco-tf] use GraphBuilder of moco (#8393)

This will update to use GraphBuilder and related classes from moco
Also updates that need header changes from this change

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] Fix for TFFormattedGraph (#8392)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 22 Oct 2019 10:10:03 +0000 (19:10 +0900)]
[moco-tf] Fix for TFFormattedGraph (#8392)

This will add TFPlaceholder as a alias of moco::TFPlaceholder to make TFFormattedGraph work correctly

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo] Fix EXO_THROW spacing (#8388)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 22 Oct 2019 09:32:11 +0000 (18:32 +0900)]
[exo] Fix EXO_THROW spacing (#8388)

This commit adds space ' ' to EXO_THROW macro.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco] Importer and ModelSignature (#8383)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 22 Oct 2019 08:17:22 +0000 (17:17 +0900)]
[moco] Importer and ModelSignature (#8383)

This will introduce Importer and ModelSignature

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo] Remove exo_tflite target (#8378)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 22 Oct 2019 06:52:26 +0000 (15:52 +0900)]
[exo] Remove exo_tflite target (#8378)

This commit removes unused and deprecated exo_tflite target library.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco-integration-test] add Pad test (#8374)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 22 Oct 2019 03:57:39 +0000 (12:57 +0900)]
[moco-integration-test] add Pad test (#8374)

This commit adds Pad test to moco-integration-test.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[moco] Placeholder as TFPlaceholder (#8375)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 22 Oct 2019 03:35:36 +0000 (12:35 +0900)]
[moco] Placeholder as TFPlaceholder (#8375)

This will import TensorFlow Placeholder node as TFPlaceholder IR instead of loco::Pull

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[tf2tflite] add Pad test (#8372)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 22 Oct 2019 03:02:06 +0000 (12:02 +0900)]
[tf2tflite] add Pad test (#8372)

This commit adds Pad test to tf2tflite.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[nncc] Rename "mocotest-onnx" project (#8356)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 22 Oct 2019 01:54:44 +0000 (10:54 +0900)]
[nncc] Rename "mocotest-onnx" project (#8356)

This commit renames "mocotest-onnx" project as oneco-integration-test,
following oneco.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[stdex] Require GTest only when TEST is enabled (#8358)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 22 Oct 2019 01:38:55 +0000 (10:38 +0900)]
[stdex] Require GTest only when TEST is enabled (#8358)

GTest is required only when ENABLE_TEST is set.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[exo] Support TensorConstantPad operation (#8309)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 22 Oct 2019 01:26:38 +0000 (10:26 +0900)]
[exo] Support TensorConstantPad operation (#8309)

* [exo] Support TensorConstantPad operation

This commit supports TensorConstantPad operation in exo.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* change vector declaration method.

5 years ago[moco-tf] Import Placeholder as TFPlaceholder (#8369)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 22 Oct 2019 01:09:35 +0000 (10:09 +0900)]
[moco-tf] Import Placeholder as TFPlaceholder (#8369)

This will import TensorFlow Placeholder node as TFPlaceholder IR instead of loco::Pull
- graph input shape setting has moved to Importer class as we cannot query node by name in Frontend

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Fix typo for PermutingCodec test (#8350)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 22 Oct 2019 00:45:56 +0000 (09:45 +0900)]
[loco] Fix typo for PermutingCodec test (#8350)

This commit fixes typo for PermutingCodec test

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