platform/core/ml/nnfw.git
4 years ago[exo-tflite] Use link helper (#6200)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 06:03:25 +0000 (15:03 +0900)]
[exo-tflite] Use link helper (#6200)

This commit revises exo-tflite to use link helper instead of
deprecated "node" method in GraphInput/GraphOutput.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Canonicalize TFRelu6 (#6193)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 04:53:29 +0000 (13:53 +0900)]
[moco-tf] Canonicalize TFRelu6 (#6193)

This will add Relu6Canonicalizier that transforms TFRelu6 node to canonical ReLU6 node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoChange the way getting layout of node in PermutationInsertionPass (#6148)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 5 Aug 2019 04:42:25 +0000 (13:42 +0900)]
Change the way getting layout of node in PermutationInsertionPass (#6148)

This commit changes the way getting layout of node in PermuttationInsertionPass from model::Subgraph to operation::LowerInfo.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[loco] Implement FeatureCodec shape inference (#6191)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 04:42:13 +0000 (13:42 +0900)]
[loco] Implement FeatureCodec shape inference (#6191)

This commit extends CanonicalShaapeInferenRule to accept
FeatureEncode and FeatureDecode nodes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoRemove softlink directory (#6188)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 04:42:00 +0000 (13:42 +0900)]
Remove softlink directory (#6188)

Remove softlink directory scripts/standalone - made for CI infra workaround
Update format check script

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[moco-tf] Import as TFRelu (#6182)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 04:38:11 +0000 (13:38 +0900)]
[moco-tf] Import as TFRelu (#6182)

This will change import Relu node as TFRelu from the knob

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[loco] Introduce "link" helper (#6190)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 04:33:26 +0000 (13:33 +0900)]
[loco] Introduce "link" helper (#6190)

This commit introdues "link" helper which associates
GraphInput/GraphOutout with Pull/Push node, respectively.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoFormat check hpp extension (#6187)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 04:16:54 +0000 (13:16 +0900)]
Format check hpp extension (#6187)

Add format check extension: hpp file
Fix format: nnfw_api.hpp

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[moco-tf] Import as TFRelu6 (#6183)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 04:10:04 +0000 (13:10 +0900)]
[moco-tf] Import as TFRelu6 (#6183)

This will change import Relu6 node as TFRelu6 from the knob

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-tf] LogHelper to dump Pad and PadData (#6185)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 04:01:21 +0000 (13:01 +0900)]
[moco-tf] LogHelper to dump Pad and PadData (#6185)

This will introduce LogHelper to dump Pad and PadData values

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[tflite_benchmark] Insert pause between iterations (#6189)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 03:53:13 +0000 (12:53 +0900)]
[tflite_benchmark] Insert pause between iterations (#6189)

tflite_benchmark now allows users to insert pause between iterations via
"PAUSE" environment variable.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Revise COpCall test (#6184)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 03:30:20 +0000 (12:30 +0900)]
[moco-tf] Revise COpCall test (#6184)

This will revisit CopCall node test to remove relation with graph connections

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[enco] Fix copyright year (#6174)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 5 Aug 2019 02:53:19 +0000 (11:53 +0900)]
[enco] Fix copyright year (#6174)

This commit fixes copyright year for 2019 generated file

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[loco] Implement Relu shape inference (#6161)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 02:50:39 +0000 (11:50 +0900)]
[loco] Implement Relu shape inference (#6161)

* [loco] Implement Relu shape inference

CanonicalShapeInferenceRule now properly infers the shape of relu node.

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

4 years agoUpdate scheduled deprecated API. (#6163)
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 01:52:59 +0000 (10:52 +0900)]
Update scheduled deprecated API. (#6163)

* Change old API `gfile.FastGFile` to `tf.gfile.GFile`

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
4 years agoUse external volume mount in standalone scripts (#6136)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 01:32:35 +0000 (10:32 +0900)]
Use external volume mount in standalone scripts (#6136)

It enables using external volume mount in CI test infra
- Reduce external code download overhead
- Remove pre-built acl binary dependency (especially on version up)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[moco-tf] Summary for TFSqueeze (#6162)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 5 Aug 2019 00:59:03 +0000 (09:59 +0900)]
[moco-tf] Summary for TFSqueeze (#6162)

* [moco-tf] Summary for TFSqueeze

This commit introduces log summary for TFSqueeze

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Make use of pepper::str

4 years ago[pepper-strcast] Fix missing copyright boilerplate (#6171)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 5 Aug 2019 00:16:56 +0000 (09:16 +0900)]
[pepper-strcast] Fix missing copyright boilerplate (#6171)

This commit fixes missing copyright boilerplate

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[moco-log] Fix missing copyright boilerplate (#6172)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 5 Aug 2019 00:16:41 +0000 (09:16 +0900)]
[moco-log] Fix missing copyright boilerplate (#6172)

This commit fixes missing copyright boilerplate

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[locop] Fix copyright year (#6173)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 5 Aug 2019 00:16:26 +0000 (09:16 +0900)]
[locop] Fix copyright year (#6173)

This commit fixes copyright year for 2019 generated file

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[locop] Extract CanonicalNodeSummaryBuilder (#6169)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 5 Aug 2019 00:15:43 +0000 (09:15 +0900)]
[locop] Extract CanonicalNodeSummaryBuilder (#6169)

This commit extracts CanonicalNodeSummaryBuilder from FormattedGraph
module, and put them in a header/source.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] implementing make_graph_builder_registry(..) function (#6175)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 00:15:28 +0000 (09:15 +0900)]
[moco-tf] implementing make_graph_builder_registry(..) function (#6175)

This adds `make_graph_builder_registry(..)` function, which makes graph builder registry that finds custom op graph builder and then searches into the default registry.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[locoex] TypeInferenceRule for custom op (#6170)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Aug 2019 00:14:31 +0000 (09:14 +0900)]
[locoex] TypeInferenceRule for custom op (#6170)

TypeInferenceRule and a test for custom op was committed.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[moco-tf] Knobs to import as TFRelu and TFRelu6 (#6181)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 4 Aug 2019 23:40:29 +0000 (08:40 +0900)]
[moco-tf] Knobs to import as TFRelu and TFRelu6 (#6181)

This will add two knobs to import as TFRelu and TFRelu6

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[mir/Caffe2 importer] Improve support for constant tensors (#6176)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 2 Aug 2019 19:02:28 +0000 (22:02 +0300)]
[mir/Caffe2 importer] Improve support for constant tensors (#6176)

Rework support for constant tensors to not (almost) depend on concrete models.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[mocotest-tf] Enable basic Reshape test (#6164)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 10:47:14 +0000 (19:47 +0900)]
[mocotest-tf] Enable basic Reshape test (#6164)

This commit enables basic Reshape test, Reshape_000.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[mocotest-tf] Enable test for dynamic reshape with wildcard dim (#6166)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 10:47:02 +0000 (19:47 +0900)]
[mocotest-tf] Enable test for dynamic reshape with wildcard dim (#6166)

This commit enables moco test which can check resolving dynamic reshape
with wildcard dimension.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo-tflite] Use loco shape inference framework (#6144)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 08:22:12 +0000 (17:22 +0900)]
[exo-tflite] Use loco shape inference framework (#6144)

This commit allows exo-tflite to use the shape inference framework
implemented in loco instead of exo-tflite internal shape inference
framework.

Please note that this feature is turned off by default.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Introduce fmt helper (#6149)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 08:21:49 +0000 (17:21 +0900)]
[moco-tf] Introduce fmt helper (#6149)

This commit introduces fmt helper specialized for moco-tf.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] GraphBuilder for custom op (#6139)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 08:21:03 +0000 (17:21 +0900)]
[moco-tf] GraphBuilder for custom op (#6139)

* [moco-tf] GraphBuilder for custom op

This adds GraphBuilder, transforms, and a test for custom op.

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

4 years ago[moco-tf] TFSqueeze shape inference (#6117)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 08:11:07 +0000 (17:11 +0900)]
[moco-tf] TFSqueeze shape inference (#6117)

* [moco-tf] TFSqueeze shape inference

This commit introduces shape inference for TFSqueeze

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review fix: use set, use lambda for assertion

4 years ago[moco-tf] Enable ResolveReshapeWildcardDim transform (#6154)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 08:10:03 +0000 (17:10 +0900)]
[moco-tf] Enable ResolveReshapeWildcardDim transform (#6154)

This commit registers and enables ResolveReshapeWildcardDim transform.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[locop] Extract NodeSummaryBuilder (#6150)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 08:08:34 +0000 (17:08 +0900)]
[locop] Extract NodeSummaryBuilder (#6150)

This commit introduces a new header file dedicated to
NodeSummaryBuilder and NodeSummaryBuilderFactory classes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Enable TFReshape canonicalizer (#6151)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 07:58:53 +0000 (16:58 +0900)]
[moco-tf] Enable TFReshape canonicalizer (#6151)

This commit registers TFReshape canonicalizer to enable it.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[mir2loco] Support BiasAdd operation (#5901)
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 2 Aug 2019 07:56:05 +0000 (10:56 +0300)]
[mir2loco] Support BiasAdd operation (#5901)

* Transform `mir::BiasAddOp` to `loco::BiasAdd<Domain::Tensor>` using `loco::BiasEncode>
* Test for this

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[moco-tf] Fix seg fault with LOG enabled (#6155)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 07:50:11 +0000 (16:50 +0900)]
[moco-tf] Fix seg fault with LOG enabled (#6155)

This will fix segment fault when run with LOG enabled

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[neurun] Use shape inference in interpreter (#6012)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 07:38:57 +0000 (16:38 +0900)]
[neurun] Use shape inference in interpreter (#6012)

* Use shape inference in interpreter

To support dynamic shape, use shape inference: convolution, maxpool, averagepool

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix unspecified shape checking and shape inference for depthwise conv

4 years ago[moco-tf] Introduce TFRelu and TFRelu6 IR (#6143)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 07:36:04 +0000 (16:36 +0900)]
[moco-tf] Introduce TFRelu and TFRelu6 IR (#6143)

This will introduce TensorFlow dialect TFRelu and TFRelu6 IR and minimum required codes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[mir] Remove stale serialization support (#6120)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 2 Aug 2019 07:27:28 +0000 (10:27 +0300)]
[mir] Remove stale serialization support (#6120)

It is stale and were never used.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoFix a typo in PluginClassesAllocator for acl_neon (#6142)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 05:55:08 +0000 (14:55 +0900)]
Fix a typo in PluginClassesAllocator for acl_neon (#6142)

This commit fixes a typo in PluginClassesAllocator for acl_neon.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neuurn] Use mutex on ExecutorBase (#6131)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 05:54:34 +0000 (14:54 +0900)]
[neuurn] Use mutex on ExecutorBase (#6131)

* Use mutex on ExecutorBase

Use mutex on ExecutorBase for thread-safe executor
Enable multi-thread execution test

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Use std::lock_guard

4 years ago[locop] Use default_node_desc directly (#6141)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 05:25:56 +0000 (14:25 +0900)]
[locop] Use default_node_desc directly (#6141)

The current implementation of BuiltinNodeSummaryBuilder invokes
default_node_desc through node_desc helper.

This commit removes this unnecessary redirection.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Reshape canonicalize support ConstGen shape input (#6115)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 04:59:48 +0000 (13:59 +0900)]
[moco-tf] Reshape canonicalize support ConstGen shape input (#6115)

* [moco-tf] Reshape canonicalize support ConstGen shape input

In canonicalization of TFReshape, shape input of Reshape supports not
only TF-dialect TFConst, but also canonical ConstGen. This is to
eliminate dependency on canonicalization order.

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

* Fix typo

* Remove ambiguity on shape()

4 years ago[loco] Add CanonicalShapeInferenceRule (#6126)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 04:28:35 +0000 (13:28 +0900)]
[loco] Add CanonicalShapeInferenceRule (#6126)

This commit adds CanonicalShapeInferenceRule class with minimal
implementation.

The current implementation supports shape inference only for Push and
Pull nodes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Removing CompilerArgs.h (#6133)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 04:01:07 +0000 (13:01 +0900)]
[moco-tf] Removing CompilerArgs.h (#6133)

With this commit, CompilerArgs.h was removed and header inclusion errors were fixed.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[locop] Show Push/Pull index field (#6132)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 03:59:26 +0000 (12:59 +0900)]
[locop] Show Push/Pull index field (#6132)

CanonicalNodeDescBuilder now shows the index attribute of Push/Pull
nodes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Logging compile stage (#6116)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 03:44:45 +0000 (12:44 +0900)]
[moco-tf] Logging compile stage (#6116)

This commit introduce logging onset of each compile stage.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[loco] Automatic Update Graph Input/Ouput Index (#6129)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 2 Aug 2019 03:42:09 +0000 (12:42 +0900)]
[loco] Automatic Update Graph Input/Ouput Index (#6129)

This commit revises "GraphInput" and "GraphOuput" class to automatically
feed its index to "Pull" and "Push" nodes on node method call.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoFix verify_downloaded_file usage in run_test.sh (#6070)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 2 Aug 2019 02:07:12 +0000 (05:07 +0300)]
Fix verify_downloaded_file usage in run_test.sh (#6070)

run_test.sh downloads model files even they exist. It is fixed now

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years ago[moco-tf] Fix indentation of MaxPool test (#6125)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 01:55:29 +0000 (10:55 +0900)]
[moco-tf] Fix indentation of MaxPool test (#6125)

This will fix TODO indentation for MaxPool test

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-tf] Fix indentation for AvgPool test (#6124)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 01:52:29 +0000 (10:52 +0900)]
[moco-tf] Fix indentation for AvgPool test (#6124)

This will fix TODO indentation for AvgPool test

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoSupport TransposeConv op for acl_neon (#5786)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 2 Aug 2019 01:40:52 +0000 (10:40 +0900)]
Support TransposeConv op for acl_neon (#5786)

This commit supports TransposeConv op for acl_neon backend.
  - Introduce NETransposeConvLayer
  - Introduce CPPUpsampeEx
  - Introduce CPPUpsampeKernelEx
  - Apply NETransposeConvLayer for acl_neon backend
  - Enable nnapi tests for TransposeConv

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[moco-tf] remove unused code in PlaceholderGraphBuilder (#6113)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 2 Aug 2019 01:40:03 +0000 (10:40 +0900)]
[moco-tf] remove unused code in PlaceholderGraphBuilder (#6113)

Unused code (to process shape info entered by user for unknown shape) is removed.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years agoChange nnfw component diagram (#6073)
Efimov Alexander/AI Tools Lab/./Samsung Electronics [Fri, 2 Aug 2019 00:17:17 +0000 (03:17 +0300)]
Change nnfw component diagram (#6073)

* Change nnfw component diagram

- Remove core structure layer
- Add ML Frameworks in diagram

Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
4 years ago[moco-tf] Enable moco to print custom op log (#6114)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 23:48:19 +0000 (08:48 +0900)]
[moco-tf] Enable moco to print custom op log (#6114)

By adding `COpNodeSummaryBuilder`, moco can print custom op info.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[loco] Introduce ShapeInference infrastructure (#6102)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 1 Aug 2019 23:30:36 +0000 (08:30 +0900)]
[loco] Introduce ShapeInference infrastructure (#6102)

* [loco] Introduce ShapeInference infrastructure

This commit introduces dialect-agnostic ShapeInference infrastructure.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Remove unnecessary return

4 years ago[mir] Support 0-dimensional tensors (#6122)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 18:58:17 +0000 (21:58 +0300)]
[mir] Support 0-dimensional tensors (#6122)

Partially fixes compilation error of TFLIte StyleTransfer nework.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[nnc] Support 0-dimensional tensors in x86-c++ backend (#6121)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 18:11:53 +0000 (21:11 +0300)]
[nnc] Support 0-dimensional tensors in x86-c++ backend (#6121)

Fixes compilation error of TFLIte StyleTransfer nework.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[mir2loco] Support Const operation (#5794)
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 17:01:13 +0000 (20:01 +0300)]
[mir2loco] Support Const operation (#5794)

* Support Const operation transformation
* Append test with Const op containing float values

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[mir] Add missing include (#6119)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 14:11:59 +0000 (17:11 +0300)]
[mir] Add missing include (#6119)

Add missing include `mir/TensorVariant.h` to `ConstantOp.h`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoSupport mir::ReshapeOp transformation to loco::Reshape<Fixed> (#5952)
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 14:01:45 +0000 (17:01 +0300)]
Support mir::ReshapeOp transformation to loco::Reshape<Fixed> (#5952)

* Added support to transformer of reshape operation
* Added test for Reshape

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[locoex] NodeSummaryBuilder for Custom op (#6097)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 11:01:11 +0000 (20:01 +0900)]
[locoex] NodeSummaryBuilder for Custom op (#6097)

* [locoex] NodeSummaryBuilder for Custom op

This adds COpNodeSummaryBuilder to log custom op information.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* printing opname to 'COp.Call'

* 1) using auto 2) using uint32_t instead of int

* summary() as private

* remove empty line. add assert

4 years ago[loco] Introduce indexed method to Push/Pull (#6106)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 1 Aug 2019 11:00:00 +0000 (20:00 +0900)]
[loco] Introduce indexed method to Push/Pull (#6106)

It is currently impossible to check whether Push/Pull is indexed or not.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Refactor fixed check function to template (#6108)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 10:59:45 +0000 (19:59 +0900)]
[moco-tf] Refactor fixed check function to template (#6108)

* [moco-tf] Refactor fixed check function to template

This commit refactors function for fixed reshape's shape input check.
New template function can accept TFConst and canonical ConstGen.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Return false on nullptr sourced

4 years ago[mir-caffe2-importer] Perform operation sanity checks while creating (#6037)
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 10:47:42 +0000 (13:47 +0300)]
[mir-caffe2-importer] Perform operation sanity checks while creating (#6037)

Perform operation sanity checks while creating it

Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
4 years ago[mir] Fix number of outputs of `OutputOp` (#5993)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 1 Aug 2019 10:26:11 +0000 (13:26 +0300)]
[mir] Fix number of outputs of `OutputOp` (#5993)

`OutputOp` is auxilary operation, which is used only to mark outputs of the Graph. It has one input and mistakenly had one output.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[tf2tflite] Enable Add_000 and Mul_000 (#6111)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 09:43:11 +0000 (18:43 +0900)]
[tf2tflite] Enable Add_000 and Mul_000 (#6111)

This will enable Add_000 and Mul_000 basic test

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[mocotest-tf] Enable Add_000 and Mul_000 (#6110)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 09:42:00 +0000 (18:42 +0900)]
[mocotest-tf] Enable Add_000 and Mul_000 (#6110)

This will enable Add_000 and Mul_000 basic test

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[exo-tflite] Remove redundant export test (#6109)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 09:28:14 +0000 (18:28 +0900)]
[exo-tflite] Remove redundant export test (#6109)

tf2tflite is doing more organized and advanced test with value checking
and larger coverage, which makes this export test redundant.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[mocotest-tf] Adding a test for constant folding (#6104)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 08:34:04 +0000 (17:34 +0900)]
[mocotest-tf] Adding a test for constant folding (#6104)

This adds a test case (TF_SMALL_NET_0011), which is a graph to test constant folding.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[locop] Support EltwiseAdd and EltwiseMul (#6098)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 08:33:17 +0000 (17:33 +0900)]
[locop] Support EltwiseAdd and EltwiseMul (#6098)

* [locop] Support EltwiseAdd and EltwiseMul

This will add locop to support EltwiseAdd and EltwiseMul to dump it's contents

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* remove todo msg

4 years ago[locop] Remove comment for TensorConcat (#6103)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 08:32:09 +0000 (17:32 +0900)]
[locop] Remove comment for TensorConcat (#6103)

This will remove unnecessary TODO comment

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[exo-tflite] Exporter for EltwiseAdd and EltwiseMul (#6100)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 07:58:09 +0000 (16:58 +0900)]
[exo-tflite] Exporter for EltwiseAdd and EltwiseMul (#6100)

This will add exporter to support for EltwiseAdd and EltwiseMul

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[loco] TypeForward for EltwiseAdd and EltwiseMul (#6101)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 07:57:29 +0000 (16:57 +0900)]
[loco] TypeForward for EltwiseAdd and EltwiseMul (#6101)

This will add TypeForward for EltwiseAdd and EltwiseMul node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[exo-tflite] Shapeinf for EltwiseAdd and EltwiseMul (#6099)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 07:51:49 +0000 (16:51 +0900)]
[exo-tflite] Shapeinf for EltwiseAdd and EltwiseMul (#6099)

This will add to support ShapeInference for EltwiseAdd and EltwiseMul

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoRemove unused comment in BackendManager.cc (#6095)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 07:33:10 +0000 (16:33 +0900)]
Remove unused comment in BackendManager.cc (#6095)

A nit - remove unused code comment in BackendManager.cc
This has been left by accident.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[locomotiv] execution for elementwise mul (#6094)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 07:15:18 +0000 (16:15 +0900)]
[locomotiv] execution for elementwise mul (#6094)

* [locomotiv] execution for elementwise mul

This will introduce execution of EltwiseMul node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* validate same domain

4 years ago[moco-tf] Using composed GraphBuilderRegistry for custom op (#6093)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 07:08:30 +0000 (16:08 +0900)]
[moco-tf] Using composed GraphBuilderRegistry for custom op (#6093)

* [moco-tf] Using composed GraphBuilderRegistry for custom op

This is to use a composed GraphBuilderRegistry, instead of singleton GraphBuilderRegistry, to add GraphBuilder for custom op later.

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

4 years ago[moco-tf] adding constant folding into optimizer (#6065)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 06:49:47 +0000 (15:49 +0900)]
[moco-tf] adding constant folding into optimizer (#6065)

This commit adds constant folding into optimizer and turns the Knob ON.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[moco-tf] Enable canonicalization for Add and Mul (#6096)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 05:44:53 +0000 (14:44 +0900)]
[moco-tf] Enable canonicalization for Add and Mul (#6096)

This will enable Canonicalization for TFAdd and TFMul node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-tf] Import Mul node (#6086)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 05:34:14 +0000 (14:34 +0900)]
[moco-tf] Import Mul node (#6086)

* [moco-tf] Import Mul node

This will enable import TensorFlow Mul node as TF dialect TFMul node

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

4 years ago[moco-tf] Import Add node (#6083)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 05:28:10 +0000 (14:28 +0900)]
[moco-tf] Import Add node (#6083)

* [moco-tf] Import Add node

This will enable import TensorFlow Add node as TF dialect TFAdd node

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

4 years ago[moco-tf] Introduce AddCanonicalizer (#6081)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 05:15:37 +0000 (14:15 +0900)]
[moco-tf] Introduce AddCanonicalizer (#6081)

This will introduce Canonicalizier for Add node. Supports only for Elementwise add for now.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-tf] Import as TF dialect (#6091)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 05:10:43 +0000 (14:10 +0900)]
[moco-tf] Import as TF dialect (#6091)

This will change import as TF dialects for AvgPool, MaxPool and Identity

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[locop] Extract NodeSummary (#6076)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 1 Aug 2019 05:10:07 +0000 (14:10 +0900)]
[locop] Extract NodeSummary (#6076)

This commit introduces a dedicated header/source file for NodeSummary class.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[loco] Introduce NodeShape class (#6078)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 1 Aug 2019 05:09:20 +0000 (14:09 +0900)]
[loco] Introduce NodeShape class (#6078)

* [loco] Introduce NodeShape class

This commit introduces NodeShape class which serves as a variant over
various Shape classes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix bugs and add tests

4 years ago[locomotiv] execution for elementwise add (#6079)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 05:01:12 +0000 (14:01 +0900)]
[locomotiv] execution for elementwise add (#6079)

* [locomotiv] execution for elementwise add

This will introduce execution for EltwiseAdd node

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

* remove using namespace

* check if same domain not tensor

4 years ago[moco-tf] Introduce MulCanonicalizer (#6082)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 04:21:40 +0000 (13:21 +0900)]
[moco-tf] Introduce MulCanonicalizer (#6082)

This will introduce Canonicalizer for Mul node. Supports only for Elementwise mul for now.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-tf] Simplify TFFormattedGraph using pepper::str (#6080)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 1 Aug 2019 04:08:46 +0000 (13:08 +0900)]
[moco-tf] Simplify TFFormattedGraph using pepper::str (#6080)

This commit simplifies TFFormattedGraph implementation using
"pepper::str" helper.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] use plier method (#6090)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 04:07:48 +0000 (13:07 +0900)]
[moco-tf] use plier method (#6090)

This will fix to use plier method from old internal method

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-tf] Import as TFMaxPool with a knob (#6043)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 03:34:50 +0000 (12:34 +0900)]
[moco-tf] Import as TFMaxPool with a knob (#6043)

* [moco-tf] Import as TFMaxPool with a knob

This will revise import to load MaxPool node as TFMaxPool with a knob

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use plier and rename variable

4 years ago[tf2tflite] Schema for additional info of Custom Op from user (#5939)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 03:34:33 +0000 (12:34 +0900)]
[tf2tflite] Schema for additional info of Custom Op from user (#5939)

* [tf2tflite] Schema for additional info of Custom Op from user

This is a schema for additional info of Custom Op from user.
It was committed into _moco-tf_ but moved to here.
The name was renamed to CompileInfo.pbtxt (Previous name was Model.MetaInfo.pbtxt), which seems more friendlier. :-)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* renaming CompileInfo to CustomInfo && move ./proto/CMakeFiles.txt to ./CMakeFiles.txt

* modify DT_INT32 to 15

4 years ago[exo/tflite] prevent ceil_div function from overflow (#6088)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 03:34:16 +0000 (03:34 +0000)]
[exo/tflite] prevent ceil_div function from overflow (#6088)

This commit prevents ceil_div function from overflow.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
4 years ago[moco-tf] Logging with TFNodeSummaryBuilderFactory (#6064)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 03:25:48 +0000 (12:25 +0900)]
[moco-tf] Logging with TFNodeSummaryBuilderFactory (#6064)

TFNodeSummaryBuilderFactory is used to print all nodes (including unlinked TFNodes)

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years agoIntroduce PermuteFactor into LowerInfo of operation (#6028)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 02:30:32 +0000 (11:30 +0900)]
Introduce PermuteFactor into LowerInfo of operation (#6028)

This commit introduces PermuteFactor into LowerInfo of operation.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoRefactor Backend to support sessions (#5894)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 02:29:58 +0000 (11:29 +0900)]
Refactor Backend to support sessions (#5894)

Backend had been only one object there cannot be more than one session.
This commit introduces `BackendContext` which depends on a specific
model and `Backend` object represents the backend itself(a singleton).

Resolve #5723

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[moco/tf] Introduce DepthwiseConv2D Canonicalizer (#6047)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 01:50:47 +0000 (01:50 +0000)]
[moco/tf] Introduce DepthwiseConv2D Canonicalizer (#6047)

* [moco/tf] Introduce DepthwiseConv2D Canonicalizer

This commit introcude DepthwiseConv2D Canonicalizer to moco-tf.

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

* add codes for log.

4 years ago[moco-tf] Fix build break (#6087)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 1 Aug 2019 01:45:06 +0000 (10:45 +0900)]
[moco-tf] Fix build break (#6087)

This commit fixes build break related with API deisgn changes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[moco-tf] Add a complex test case into ConstantFoldingTransform (#5936)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 01:37:38 +0000 (10:37 +0900)]
[moco-tf] Add a complex test case into ConstantFoldingTransform (#5936)

* [moco-tf] Add a complex test case into ConstantFoldingTransform

This commit adds a complex test case into ConstantFoldingTransform

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

4 years ago[moco-tf] Transform to resolve wildcard dimesion of TFReshape (#6019)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 01:36:01 +0000 (10:36 +0900)]
[moco-tf] Transform to resolve wildcard dimesion of TFReshape (#6019)

* [moco-tf] Transform to resolve wildcard dimesion of TFReshape

This commit introduces ResolveReshapeWildcardDim transform, which tries
to resolve wildcard dimension of TFReshape.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Clarify by docs and function name