platform/core/ml/nnfw.git
5 years ago[loco] Introduce MatrixEncode, MatrixDecode and MatrixMul operations (#7406)
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 18 Sep 2019 07:34:44 +0000 (10:34 +0300)]
[loco] Introduce MatrixEncode, MatrixDecode and MatrixMul operations (#7406)

* Added MatrixEncode, MatrixDecode and MatrixMul nodes
* Added tests for them
* Defined CanonicalShapeInferenceRule and TypeInference

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
5 years ago[plier-tf] Hide Implementation Details (#7576)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 07:31:33 +0000 (16:31 +0900)]
[plier-tf] Hide Implementation Details (#7576)

No code outside plier-tf uses membuf and imemstream classes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce TensorReduce Operation (#7497)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 18 Sep 2019 06:17:24 +0000 (15:17 +0900)]
[loco] Introduce TensorReduce Operation (#7497)

* [loco] Introduce TensorReduce Operation

This commit will introduce `TensorReduce` operation in loco

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* fix wrong shapeInference

* revise comments

5 years ago[tf2tflite] Enable exo loggers with TF2TFLITE knob (#7561)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 06:10:34 +0000 (15:10 +0900)]
[tf2tflite] Enable exo loggers with TF2TFLITE knob (#7561)

With this commit, users are able to enable exo loggers with
TF2TFLITE_Log_Backend knob.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco-tf] Shape inference for Conv2DBackpropInput (#7539)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 18 Sep 2019 06:07:58 +0000 (15:07 +0900)]
[moco-tf] Shape inference for Conv2DBackpropInput (#7539)

This commit implements shape inference for Conv2DBackpropInput.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[exo-tflite] revising README.md (#7529)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 06:05:32 +0000 (15:05 +0900)]
[exo-tflite] revising README.md (#7529)

* [exo-tflite] revising README.md

Steps for adding a new TFL node  was added.

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

5 years ago[exo-tflite] removing old graph builder (#7524)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 06:05:07 +0000 (15:05 +0900)]
[exo-tflite] removing old graph builder (#7524)

Old graph builder (`PushPullGraph<..>`) is now replaced with `TestGraph`.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[exo-tflite] knob to convert loco::ConstGen (#7477)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 06:04:47 +0000 (15:04 +0900)]
[exo-tflite] knob to convert loco::ConstGen (#7477)

This adds knob to convert loco::ConstGen.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[exo-exporter] adding an empty visit() for TFLConst in OperationExporter (#7568)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 06:03:19 +0000 (15:03 +0900)]
[exo-exporter] adding an empty visit() for TFLConst in OperationExporter (#7568)

`TFLConst` won't be converted into any operation so empty `visit()` was added into `OperationExporter`.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[exo-tflite] Knob for convert Div, Sub (#7560)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 04:15:16 +0000 (13:15 +0900)]
[exo-tflite] Knob for convert Div, Sub (#7560)

* [exo-tflite] Knob for convert Div, Sub

This will add knob for converting EltwiseDiv and EltwiseSub

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

5 years ago[moco-tf] Introduce ResolveSquaredDifference transform (#7559)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 04:14:56 +0000 (13:14 +0900)]
[moco-tf] Introduce ResolveSquaredDifference transform (#7559)

* [moco-tf] Introduce ResolveSquaredDifference transform

This will introduce ResolveSquaredDifference transform that decomposes TFSquaredDifference node into TFSub and TFMul nodes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use node->graph()

5 years ago[exo-tflite] Shape inference for TFLDiv, TFLSub (#7552)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 04:14:30 +0000 (13:14 +0900)]
[exo-tflite] Shape inference for TFLDiv, TFLSub (#7552)

This will enable shape inference for TFLDiv, TFLSub node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Type inference for TFLDiv, TFLSub (#7551)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 04:14:13 +0000 (13:14 +0900)]
[exo-tflite] Type inference for TFLDiv, TFLSub (#7551)

This will enable type inference for TFLDiv, TFLSub node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Export TFLDiv, TFLSub (#7554)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 04:13:30 +0000 (13:13 +0900)]
[exo-tflite] Export TFLDiv, TFLSub (#7554)

* [exo-tflite] Export TFLDiv, TFLSub

This will enable export for TFLDiv and TFLSub node

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

5 years ago[exo-tflite] Introduce EltwiseBinaryConverter and refactor (#7533)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 04:12:22 +0000 (13:12 +0900)]
[exo-tflite] Introduce EltwiseBinaryConverter and refactor (#7533)

This will introduce EltwiseBinaryConverter and refactor EltwiseAddConverter and EltwiseMulConverter using this

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[locoex-customop] Remove plier-tf dependency (#7540)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 04:12:02 +0000 (13:12 +0900)]
[locoex-customop] Remove plier-tf dependency (#7540)

No code in locoex-customop uses plier-tf.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[mocotest-tf] Rename target to 'moco_integration_test' (#7541)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 18 Sep 2019 04:11:52 +0000 (13:11 +0900)]
[mocotest-tf] Rename target to 'moco_integration_test' (#7541)

This commit renames target 'moco_test_tf' to 'moco_integration_test'.
Related variable names also match to be 'moco_integration_*'

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco-tf] Enable importing Mean (#7543)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 18 Sep 2019 04:11:34 +0000 (13:11 +0900)]
[moco-tf] Enable importing Mean (#7543)

* [moco-tf] Enable importing Mean

This commit will enable importing `Mean` as `TFMean`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* revise trivials

5 years ago[locop] Use GenericNodeSummaryBuilder as default fallback (#7553)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 04:11:00 +0000 (13:11 +0900)]
[locop] Use GenericNodeSummaryBuilder as default fallback (#7553)

This commit replaces BuiltinNodeSummaryBuild with
GenericNodeSummaryBuilder.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[exo-tflite] Expose Logging Context (#7531)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 03:39:49 +0000 (12:39 +0900)]
[exo-tflite] Expose Logging Context (#7531)

This commit exposes exo-tflite Logging Context to public in order to
allos downstream tools to control exo-tflite logging system.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[tf2tflite] Use tfinfo target (#7532)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 02:44:31 +0000 (11:44 +0900)]
[tf2tflite] Use tfinfo target (#7532)

Let's use tfinfo instead of deprecated nnkit_support_tftestinfo.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[exo-tflite] Turn on knobs for style transfer related (#7530)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 02:40:16 +0000 (11:40 +0900)]
[exo-tflite] Turn on knobs for style transfer related (#7530)

This will turn on knobs for style transfer related switches
- enable TFL dialect
- enable convert Add, Aul to TFL dialect
- enable resolve TensorBroadcast

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[neurun] Added sanity checks for profiling mode (#7412)
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 18 Sep 2019 01:58:02 +0000 (04:58 +0300)]
[neurun] Added sanity checks for profiling mode (#7412)

* Added sanity checks for profiling mode
* Fixed missing profiling info exception type

Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
5 years ago[neurun] check null before accessing session (#7536)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 01:38:08 +0000 (10:38 +0900)]
[neurun] check null before accessing session (#7536)

session will be null-checked before dereferencing.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[res] Unit test of RealDiv 001 (#7549)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 01:37:31 +0000 (10:37 +0900)]
[res] Unit test of RealDiv 001 (#7549)

This will add RealDiv unit test 001 for broadcasting

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] Add ResolveSquaredDifference knob (#7558)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 18 Sep 2019 01:19:22 +0000 (10:19 +0900)]
[moco-tf] Add ResolveSquaredDifference knob (#7558)

This will add ResolveSquaredDifference knob

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years agoMake to support Neg op for acl neon (#7535)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 18 Sep 2019 01:09:23 +0000 (10:09 +0900)]
Make to support Neg op for acl neon (#7535)

This commit makes to support Neg op for acl neon.
  - Introduce NEElementwiseUnaryKernel and NENegLayer
  - Apply NENegLayer layer for neurun

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[moco-tf] Use tf as prefix (#7489)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 18 Sep 2019 00:00:57 +0000 (09:00 +0900)]
[moco-tf] Use tf as prefix (#7489)

Let's use "tf" prefix instead of "TF" to be compatiable with canonical
prefix.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locop] Introduce GenericNodeSummaryBuilder (#7518)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 23:46:10 +0000 (08:46 +0900)]
[locop] Introduce GenericNodeSummaryBuilder (#7518)

This commit introduces GenericNodeSummaryBuilder which uses "dialect"
address and opnum as opname.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Backward plane inference (#7458)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 17 Sep 2019 23:33:09 +0000 (08:33 +0900)]
[loco] Backward plane inference (#7458)

This commit introduces backward plane inference, which would be used for
canonical shape inference rule, especially for TransposedConv2D.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnc] Remove C generating backend (#7545)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 17 Sep 2019 16:52:58 +0000 (19:52 +0300)]
[nnc] Remove C generating backend (#7545)

Remove C generating backend skeleton.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
5 years agoMake to support Dequantize op for acl neon (#7522)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 17 Sep 2019 11:48:29 +0000 (20:48 +0900)]
Make to support Dequantize op for acl neon (#7522)

This commit makes to support Dequantize op for acl neon.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoMake to support ReduceSum op for acl neon (#7520)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 17 Sep 2019 11:47:55 +0000 (20:47 +0900)]
Make to support ReduceSum op for acl neon (#7520)

This commit makes to support ReduceSum op for acl neon

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[exo-tflite] Introducing locoex::TFLConst (#7519)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 11:00:28 +0000 (20:00 +0900)]
[exo-tflite] Introducing locoex::TFLConst (#7519)

locoex::TFLConst is added to represent tensor data. (note that this is not for a specific tflite op)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[enco] Extract Boilerplate as Helper (#7523)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 10:19:08 +0000 (19:19 +0900)]
[enco] Extract Boilerplate as Helper (#7523)

This commit extracts boilerplate in ConstantFoldingTest as a helper
in order to reduce code duplication.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoNull-terminating check for backend conf api (#7516)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 09:53:09 +0000 (18:53 +0900)]
Null-terminating check for backend conf api (#7516)

* Null-terminating check for backend conf api

- Add null terminaing function
- Add check routine

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Give name to arg max length in backend conf

- Add macro for max length
- 32 for backend name, 64 for op name

* fix format

* add null check

* add null check to nnfw_set_op_backend

* Check null inside nnfw_session

5 years ago[moco-tf] get_node_shape helper in copy_shapedata (#7528)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 09:26:48 +0000 (18:26 +0900)]
[moco-tf] get_node_shape helper in copy_shapedata (#7528)

This will introduce get_node_shape helper in copy_shapedata of FixShape

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco-tf] copy shape for binary input nodes (#7525)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 09:07:17 +0000 (18:07 +0900)]
[moco-tf] copy shape for binary input nodes (#7525)

This will update FixShape to use correct copy_shapedata() for binary input nodes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years agoRemove "moco" module (#7509)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 08:34:09 +0000 (17:34 +0900)]
Remove "moco" module (#7509)

No compiler module depends on "moco" module.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[plier-tf] Declare dependent library visibility (#7511)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 08:33:36 +0000 (17:33 +0900)]
[plier-tf] Declare dependent library visibility (#7511)

Let's declare the visibility of dependent libraries explicitly.
This change allows us to introduce PRIVATE dependencies.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[plier-tf] Remove unnecessary const qualifier (#7513)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 08:33:22 +0000 (17:33 +0900)]
[plier-tf] Remove unnecessary const qualifier (#7513)

"const" qualifier on function return type has no effect.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[logo] Simplifying `BiasEncode - BiasDecode` subgraph (#7481)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 08:33:12 +0000 (17:33 +0900)]
[logo] Simplifying `BiasEncode - BiasDecode` subgraph (#7481)

* [logo] Simplifying `BiasEncode - BiasDecode` subgraph

With this commit, logo will Simplifying `BiasEncode - BiasDecode` subgraph into loco::Forward

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

* remove 'using namespace loco;'

5 years agoMake to support ArgMax op for acl neon (#7515)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 17 Sep 2019 08:23:58 +0000 (17:23 +0900)]
Make to support ArgMax op for acl neon (#7515)

This commit makes to support ArgMax op for acl neon except int32 type.
  - Introduce NEArgMinMax layer
  - Apply NEArgMinMax layer for neurun

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[tflite2circle] Introduce tflite2circle (#7483)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 08:21:01 +0000 (17:21 +0900)]
[tflite2circle] Introduce tflite2circle (#7483)

It introduces `tflite2circle` tool.
Its input is `tflite` and output is `circle`.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[moco-tf] copy_shapedata with two inputs (#7499)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 07:59:34 +0000 (16:59 +0900)]
[moco-tf] copy_shapedata with two inputs (#7499)

* [moco-tf] copy_shapedata with two inputs

This will introduce copy_shapedata that can receive two inputs and return shape from broadcast algorithm for binary operation nodes

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

5 years ago[exo-tflite] Enhancing TestGraph.h (#7469)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 07:58:51 +0000 (16:58 +0900)]
[exo-tflite] Enhancing TestGraph.h (#7469)

* [exo-tflite] Enhancing TestGraph.h

1) Adds more operations. 2) changed the symantics of append() with no arg.

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

5 years ago[exo-tflite] Introduce Div and Sub (#7514)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 07:35:46 +0000 (16:35 +0900)]
[exo-tflite] Introduce Div and Sub (#7514)

This will introduce IR for Div and Sub

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years agoAdd ness dir into tizen test pacakge (#7478)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 07:09:12 +0000 (16:09 +0900)]
Add ness dir into tizen test pacakge (#7478)

- Add infra dir
- Fix tests/framework install position

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years ago[loco] Introduce GraphOutputIndexQueryService (#7479)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 07:07:13 +0000 (16:07 +0900)]
[loco] Introduce GraphOutputIndexQueryService (#7479)

This commit introduces GraphOutputIndexQueryService interface, and
revises output_nodes helper to use this new service interface.

This commit also implements GraphOutputIndexQueryService for canonical
dialect in order to guarantee backward compatibility.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Extend CanonicalShapeInferenceRule with v2 API (#7468)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 06:12:11 +0000 (15:12 +0900)]
[loco] Extend CanonicalShapeInferenceRule with v2 API (#7468)

This commit extends CanonicalShapeinferenceRule with v2 API implementation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco-tf] Read Knob from top-level Canonicalizer (#7495)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 06:11:34 +0000 (15:11 +0900)]
[moco-tf] Read Knob from top-level Canonicalizer (#7495)

Several canonicalization implementations shows different behavior
according to Knob configuration.

This design makes it a bit difficult to test each implementation in
isolation.

To address this issue, this commit extracts Knob control code and put
them in top-level Canonicalizer.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locop] Show data type if possible (#7492)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 06:10:19 +0000 (15:10 +0900)]
[locop] Show data type if possible (#7492)

* [locop] Show data type if possible

LinearV1 Graph Formatter now shows the data type of each node.

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

5 years ago[exo-tflite] Renaming get_knob -> get (#7510)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 06:09:08 +0000 (15:09 +0900)]
[exo-tflite] Renaming get_knob -> get (#7510)

`get_knob` was renamed to `get` since it always use with knob name and `knob` is duplicate. (e.g., `get<Knob::EnableTFLDialect>`)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years agoAdd neurun test scripts for tizen (#7504)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 05:39:05 +0000 (14:39 +0900)]
Add neurun test scripts for tizen (#7504)

- neurun test script for acl_cl and mixed

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoRun neurun test on tizen (#7505)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 05:38:49 +0000 (14:38 +0900)]
Run neurun test on tizen (#7505)

- Run new neurun test script on tizen
- Remove unnecessary zipped file

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoUpdate nnapi (#7482)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 05:38:12 +0000 (14:38 +0900)]
Update nnapi (#7482)

Use nnapi in android-10 r2 release

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[nnpkg] rename schema name and update specification (#7484)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 05:29:46 +0000 (14:29 +0900)]
[nnpkg] rename schema name and update specification (#7484)

nnpackage can have two kinds of models.
`nnpackge_model.fbs` is for `circle`.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoUse string as backend configuration arg (#7500)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 05:27:23 +0000 (14:27 +0900)]
Use string as backend configuration arg (#7500)

* Use string as backend configuration arg

- remove unness. enums for backend/operation
- Use string as backend api arguments

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Fix backend conf api

- Remove unness. functions
- Reflect new backend conf api

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Use const char* in c++ header

5 years agoUpdate tizen's skiplist (#7475)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 05:22:01 +0000 (14:22 +0900)]
Update tizen's skiplist (#7475)

* Update tizen's skiplist

Add arm-linux's skiplist into tizen's

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Use arm-ubuntu's skiplist on tizen

- Now, tizen's skiplist is the same as ubuntu's

5 years ago[locomotiv] Simplify ReLU6 implementation (#7506)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 04:55:27 +0000 (13:55 +0900)]
[locomotiv] Simplify ReLU6 implementation (#7506)

Let's make ReLU6 similar to other element-wise unary operations.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Type inference for TransposedConv2D (#7508)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 17 Sep 2019 04:55:15 +0000 (13:55 +0900)]
[loco] Type inference for TransposedConv2D (#7508)

This commit introduces type inference for TransposedConv2D

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[mocotest-tf] Add regular testcases (#7488)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 04:53:27 +0000 (13:53 +0900)]
[mocotest-tf] Add regular testcases (#7488)

This commit registers several testcases as mocotest-tf.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] TransposedConv2D test case (#7498)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 17 Sep 2019 04:53:17 +0000 (13:53 +0900)]
[loco] TransposedConv2D test case (#7498)

This commit adds test case for TransposedConv2D in loco Service

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[exo-tflite] Modifying logging of each TFL nodes (#7507)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 04:41:46 +0000 (13:41 +0900)]
[exo-tflite] Modifying logging of each TFL nodes (#7507)

1) "TFL.xxx" -> "tfl.xxx", 2) op name printing in one method (opname())

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[locomotiv] Erase annotated data before execute (#7496)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 17 Sep 2019 03:29:26 +0000 (12:29 +0900)]
[locomotiv] Erase annotated data before execute (#7496)

All the execute method implementations invoke "erase_annot_data"
internally.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[exo-tflite] Comment for TensorBroadcast (#7473)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 01:48:26 +0000 (10:48 +0900)]
[exo-tflite] Comment for TensorBroadcast (#7473)

* [exo-tflite] Comment for TensorBroadcast

This will add comment for TensorBroadcast in CanonicalNodeConverter template list as an ite

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

* fix typo and sentence

5 years ago[exo-tflite] Resolve TensorBroadcast for Mul (#7491)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 01:47:46 +0000 (10:47 +0900)]
[exo-tflite] Resolve TensorBroadcast for Mul (#7491)

This will add handler for TFLMul node in TensorBroadcastConverter

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] adding FeatureBiasAdd converter (#7467)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 01:37:44 +0000 (10:37 +0900)]
[exo-tflite] adding FeatureBiasAdd converter (#7467)

* [exo-tflite] adding FeatureBiasAdd converter

This adds FeatureBiasAdd converter, which converts loco::FeatureBiasEEdd to locoex::TFLAdd.

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

5 years ago[moco-tf] Broadcast shape for FixShape (#7487)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 01:35:20 +0000 (10:35 +0900)]
[moco-tf] Broadcast shape for FixShape (#7487)

This will introduce methods for shape broadcast in FixShapeTransform that will be used in shape inference of binary operation nodes with inputs having different shapes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Add EltwiseMul and TensorBroadcast to Convert list (#7474)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 17 Sep 2019 00:40:18 +0000 (09:40 +0900)]
[exo-tflite] Add EltwiseMul and TensorBroadcast to Convert list (#7474)

This will update conversion list to convert EltwiseMul and TensorBroadcast node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Shape and Type inference for TFLMul (#7470)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 22:01:54 +0000 (07:01 +0900)]
[exo-tflite] Shape and Type inference for TFLMul (#7470)

This will add Shape and Type inference for TFLMul node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Test of broadcast algorithm (#7471)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 22:01:23 +0000 (07:01 +0900)]
[exo-tflite] Test of broadcast algorithm (#7471)

This will add a test of broadcast algorithm with TFLAdd

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Delete deprecated Pad.h (#7466)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 22:01:08 +0000 (07:01 +0900)]
[loco] Delete deprecated Pad.h (#7466)

This commit deletes deprecated Pad.h.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[moco-tf] Introduce as_node_shape (#7476)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 22:00:23 +0000 (07:00 +0900)]
[moco-tf] Introduce as_node_shape (#7476)

This will introduce as_node_shape() method in FixShapeTransform that returns loco::NodeShape from ShapeInferenceData

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[nnc] Remove backend passes (#7486)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 16 Sep 2019 18:09:40 +0000 (21:09 +0300)]
[nnc] Remove backend passes (#7486)

* Do not derive backends from `Pass`.
* Move backends into separate directory.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
5 years agoUnify functions for elementwise ops in acl ex (#7464)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 10:09:50 +0000 (19:09 +0900)]
Unify functions for elementwise ops in acl ex (#7464)

This commit unifies functions for elementwise ops in acl ex.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[locomotiv] Clean up eltwise binary nodes (#7465)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 09:50:30 +0000 (18:50 +0900)]
[locomotiv] Clean up eltwise binary nodes (#7465)

This commit cleans up deprecated code in element-wise binary node
implementations.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agonnfw-devel package for Tizen (#7336)
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 09:33:30 +0000 (18:33 +0900)]
nnfw-devel package for Tizen (#7336)

Add nnfw-devel package on tizen.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years ago[loco] Introduce TensorAxisSet (#7444)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 08:26:29 +0000 (17:26 +0900)]
[loco] Introduce TensorAxisSet (#7444)

* [loco] Introduce TensorAxisSet

This commit will introduce `TensorAxisSet`, which is a set of `TensorAxis`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* apply feedbacks

* remove redundant headers

5 years ago[exo-tflite] Convert EltwiseMul (#7459)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 08:23:13 +0000 (17:23 +0900)]
[exo-tflite] Convert EltwiseMul (#7459)

This will introduce EltwiseMulConverter that converts EltwiseMul to TFLMul

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Converter for TensorBroadcast IR (#7432)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 08:16:36 +0000 (17:16 +0900)]
[exo-tflite] Converter for TensorBroadcast IR (#7432)

* [exo-tflite] Converter for TensorBroadcast IR

This will introduce TensorBroadcastConverter that resolves loco::TensorBroadcast IR that meets some certain condition

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* make compiler happy

* fix comments

5 years ago[exo-tflite] Add EltwiseConverter to conversion list (#7463)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 08:15:37 +0000 (17:15 +0900)]
[exo-tflite] Add EltwiseConverter to conversion list (#7463)

This will add EltwiseConverter to conversion list from knob status

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[locomotiv] Introduce Eltwise Binary Node Helper (#7461)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 07:49:37 +0000 (16:49 +0900)]
[locomotiv] Introduce Eltwise Binary Node Helper (#7461)

* [locomotiv] Introduce Eltwise Binary Node Helper

This commit introduces a shared helper method for for element-wise
binary nodes, and rewrites the "execute" method for these nodes using
this helper.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Add a blank line

5 years ago[moco-tf] Remove unused includes (#7462)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 07:44:20 +0000 (16:44 +0900)]
[moco-tf] Remove unused includes (#7462)

This commit removes unused includes for TFConv2D and
TFConv2DBackpropInput.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[exo-tflite] adding knob for loco::FeatureBiasAdd (#7460)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 07:41:22 +0000 (16:41 +0900)]
[exo-tflite] adding knob for loco::FeatureBiasAdd (#7460)

A knob for loco::FeatureBiasAdd is added.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[loco] Adding shape inference for loco::BiasDecode (#7456)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 07:12:10 +0000 (16:12 +0900)]
[loco] Adding shape inference for loco::BiasDecode (#7456)

This adds shape inference for loco::BiasDecode

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[loco] Adding type inference for loco::BiasDecode (#7455)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 06:57:42 +0000 (15:57 +0900)]
[loco] Adding type inference for loco::BiasDecode (#7455)

This adds type inference for loco::BiasDecode.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco-tf] Add TFFormattedGraph for TFMean (#7453)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 06:55:05 +0000 (15:55 +0900)]
[moco-tf] Add TFFormattedGraph for TFMean (#7453)

This commit will add `TFFormattedGraph` for `TFMean`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[exo-tflite] Adding AvgPool2DConverter into convert.cpp (#7389)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 06:52:34 +0000 (15:52 +0900)]
[exo-tflite] Adding AvgPool2DConverter into convert.cpp (#7389)

AvgPool2DConverter is added into Convert.cpp. After this, turning on the knob will convert loco::AvgPool2D to TFLAveragePool2D.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco-tf] Replace Pad.h with Padding2D.h (#7438)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 06:52:18 +0000 (15:52 +0900)]
[moco-tf] Replace Pad.h with Padding2D.h (#7438)

This commit replaces Pad.h with Padding2D.h in moco-tf.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[loco] PlaneInference by direction (#7452)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 06:50:46 +0000 (15:50 +0900)]
[loco] PlaneInference by direction (#7452)

This commit fixed PlaneInference into template with argument 'Direction'

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco-tf] Remove unused in Conv2D and DWConv2D (#7451)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 06:49:35 +0000 (15:49 +0900)]
[moco-tf] Remove unused in Conv2D and DWConv2D (#7451)

This will remove not used anymore codes in Conv2D and DepthwiseConv2dNative IR

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Handle export for TensorBroadcast (#7450)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 06:48:19 +0000 (15:48 +0900)]
[exo-tflite] Handle export for TensorBroadcast (#7450)

This will add handler for loco::TensorBroadcast that throws an error

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[exo-tflite] Export for TFLMul (#7449)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 16 Sep 2019 06:46:45 +0000 (15:46 +0900)]
[exo-tflite] Export for TFLMul (#7449)

This will add exporter for TFLMul node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] make_HWCN_perm helper (#7442)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 06:46:31 +0000 (15:46 +0900)]
[loco] make_HWCN_perm helper (#7442)

This commit introduces make_HWCN_perm helper for filter domain for test
case build.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[locomotiv] Introduce UserData (#7397)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 06:31:28 +0000 (15:31 +0900)]
[locomotiv] Introduce UserData (#7397)

* [locomotiv] Introduce UserData

This commit introduces UserData management module and rewrites Pull node
executor using this UserData management module.

This is the first step to decouple locomotiv-internal data structures from
public user-level data structures.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Remove extra token after #endif

5 years ago[moco-tf] Clean up deprecated code (#7398)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 06:29:36 +0000 (15:29 +0900)]
[moco-tf] Clean up deprecated code (#7398)

Let's clean up deprecate codes from Add/Sub/Mul/RealDiv canonicalizer
implementations.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Context-based ForwardShapeInferenceAlgorithm (#7431)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 06:29:21 +0000 (15:29 +0900)]
[loco] Context-based ForwardShapeInferenceAlgorithm (#7431)

This commit revises ForwardShapeInferenceAlgorithm to access NodeShape
through ShapeInferenceRule::Context instead of global shape helpers.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locop] Show TensorShape if possible (#7437)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 16 Sep 2019 06:28:44 +0000 (15:28 +0900)]
[locop] Show TensorShape if possible (#7437)

With this change, Linear V1 Graph Formtter now shows some details of
TensorShape if possible.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] In PlaneInference, fix public memebers to private (#7448)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 16 Sep 2019 06:10:49 +0000 (15:10 +0900)]
[loco] In PlaneInference, fix public memebers to private (#7448)

This commit fixes public members to be private, as intended.

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