박종현/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
[mir] Support 0-dimensional tensors (#6122)
Partially fixes compilation error of TFLIte StyleTransfer nework.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[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>
[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>
[mir] Add missing include (#6119)
Add missing include `mir/TensorVariant.h` to `ConstantOp.h`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
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>
윤현식/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
박종현/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>
박천교/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
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>
[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>
박세희/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>
박세희/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>
박천교/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>
윤현식/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>
박세희/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
박세희/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>
박세희/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>
박세희/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>
박세희/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>
이한종/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>
박세희/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
윤현식/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
윤현식/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>
박세희/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>
박세희/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
박세희/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
박세희/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>
박세희/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>
박종현/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>
박종현/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
박세희/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
박세희/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>
박종현/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>
박세희/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>
박세희/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
윤현식/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
채성우/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>
윤현식/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>
장지섭/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>
이한종/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>
채성우/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.
박종현/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>
윤현식/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
박천교/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
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 1 Aug 2019 01:35:26 +0000 (10:35 +0900)]
[res] Add small network test case for ResolveReshapeWildcardDim (#6020)
* [res] Add small network test case for ResolveReshapeWildcardDim
This commit adds small network test case for ResolveReshapeWildcardDim.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Edit brief description
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 01:11:29 +0000 (10:11 +0900)]
[moco-tf] Remove functions in Convert.h that were moved to plier-tf (#5935)
* [moco-tf] Remove functions in Convert.h that were moved to plier-tf
This commit removes functions in Convert.h that were moved to plier-tf.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* remaining asDataLayout
* remove unused header
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 1 Aug 2019 00:04:45 +0000 (09:04 +0900)]
[moco-tf] Adding more methods into ModelSignature (#5897)
* [moco-tf] Adding more methods into ModelSignature
This commit adds more methods into ModelSignature to make info from users (regarding custom op) be stored.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* format checked
* use angkor::TensorShape
* renaming customop(..) -> add_customop(..) && Fix comment
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 31 Jul 2019 23:48:16 +0000 (08:48 +0900)]
[loco] Add BiasShape class (#6060)
This commit adds BiasShape class which records the length of bias
values.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 23:33:01 +0000 (08:33 +0900)]
[loco] Introduce EltwiseMul IR (#6055)
This will introduce EltwiseMul IR for Elementwise Multiply operation
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 23:32:38 +0000 (08:32 +0900)]
[moco-tf] Support TFMaxPool for Logging (#6054)
This will add TFMaxPool for TFNodeSummaryBuilder this dump of graph shows TFMaxPool attributes
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 23:29:31 +0000 (08:29 +0900)]
[moco-tf] Update readme (#5870)
* [moco-tf] Update readme
This will update README.md file of moco-tf project
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* some updates
* use requires.cmake
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 22:32:57 +0000 (07:32 +0900)]
[moco-tf] Canonicalize MaxPool (#6046)
This will enable Canonicalization of MaxPool node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 31 Jul 2019 13:45:33 +0000 (16:45 +0300)]
Fix not consistent input order in concat op (#6067)
* Fixed asserts using check what it is Pull nodes
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
Nikita Sizov/AI Tools Lab /SRR/Professional/삼성전자 [Wed, 31 Jul 2019 10:07:29 +0000 (13:07 +0300)]
ACL NEON Div Node (#5948)
Add support of DivNode for ACL NEON
Signed-off-by: Sizov Nikita <n.sizov@samsung.com>
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 31 Jul 2019 08:58:17 +0000 (11:58 +0300)]
Support Concat operation transformation from mir to loco (#5903)
* Transform ConcatOp to TensorConcat
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 31 Jul 2019 08:56:42 +0000 (11:56 +0300)]
[mir2loco] Support Relu operation (#5793)
* Support Relu operation transformation
* Append test for Relu
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 07:51:07 +0000 (16:51 +0900)]
[plier-tf] Moving moco test cases regarding data_layout (#6061)
Test cases of moco were moved into plier.
These test cases are for two methods that were moved lately from moco to plier.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 31 Jul 2019 07:43:29 +0000 (16:43 +0900)]
[pepper-str] Initial commit (#6056)
This commit adds pepper-str module. "pepper-str" provides "str" helper
which allows users to simulate string interpolation in C++.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 31 Jul 2019 07:34:13 +0000 (16:34 +0900)]
[moco-tf] TFReshape Canonicalization (#6005)
* [moco-tf] TFReshape Canonicalization
This commit implements Canonicalization for TFReshape. Currently it only
supports fixed reshape case.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* TODO comment to support loco ConstGen node
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 31 Jul 2019 06:56:29 +0000 (15:56 +0900)]
Fix invalid params of CLTransposeConv (#6057)
This commit fixes invalid params of CLTansposeConv.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 31 Jul 2019 06:33:31 +0000 (15:33 +0900)]
[loco] Use data type attribute in Graph-level input (#5999)
This commit revises "Pull" node implementation to use Graph-level
"dtype" attribute.
This commit includes some workaround not to impact the current clients.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 31 Jul 2019 06:19:51 +0000 (15:19 +0900)]
[neurun] Rename "make_subgraph" helper (#6042)
Graph::lower internally declares "make_subgraph", but its role is more
than subgraph construction.
This commit renames "make_subgraph" as "append_fresh_single_op_subgraph"
to make it easy to understand its behavior.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 01:20:40 +0000 (10:20 +0900)]
[moco-tf] Support TFAvgPool for Logging (#6045)
This will add TFAvgPool for TFNodeSummaryBuilder thus dump of graph shows TFAvgPool attributes
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 00:41:36 +0000 (09:41 +0900)]
[moco-tf] Canonicalizer for MaxPool (#6027)
This will introduce MaxPoolCanonicalizer to canonicalize MaxPool node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 31 Jul 2019 00:30:12 +0000 (09:30 +0900)]
[loco] Introduce EltwiseAdd IR (#6026)
* [loco] Introduce EltwiseAdd IR
This will introduce EltwiseAdd IR for Elementwise Add operation
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use lhs, rhs
* remove Tensor in comment
DR1 Detailed level documentation (#5896)
* DR1 Detailed level documentation
Add detailed level documentation for DR1 milestone
* update 2019 goals
* initial structure description
* add compiler flow
* add description of components including compiler and runtime
* add description to high level directories, and add line breaks
* remove redundant data, fix references
* fix typos and wording
* DR1 DLD SE member in-charge review and fixes
- Expanded OSS pre-review table with new columns
- Added SW Code Structure using `tree` tool
- Updated Revision history and Table of contents
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
DR1 sw requirement document fixes (#5992)
* DR1 sw requirement document fixes
- Fix sw requirement document number version
- Fixed non-function requirements numeration
Signed-off-by: Aleksei Kondrashov <a.kondrashov@partner.samsung.com>
Add High Level Documentation (#5665)
* Add High Level Documentation
- Added image of overall architecture of project
- Added image with data flow through the pipeline
- Added Core Structure component
- Added and mapped non-functional requirements
- Updated revision history
* add overview of components
* add initial version of API secton
* add IR description
* add runtime behavior
* add structural description of IRs
* add compiler structure and behavioral description
* add structure diagram about nn runtime
* add constraints and scope items
* add Traceability Matrix
* add table of contents and items required by template
* add description about gray and white modules on component diagram
* update images to eliminate ambiguous interpretation
* change heading, rename nn Compute component
* break sections in more items
* bring back nnapi part
* rename NNFW IR into neurun IR and fix naming of other components
* fix formatting of subsystem description & abbreviations
* remove redundant item from compiler description
* fix typos and wording
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Jul 2019 23:39:48 +0000 (08:39 +0900)]
[moco-tf] Fix shape for TFMaxPool (#6025)
This will implement FixShape for TFMaxPool node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Jul 2019 22:17:27 +0000 (07:17 +0900)]
[moco-tf] Fix pad for TFMaxPool (#6023)
This will implement FixPad for TFMaxPool node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
[mir] Add support for 0-dimensional tensors (#6039)
Fixes compilation error of SuperResolution and StyleTransfer networks.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir/TFLite importer] Cleanup after changing interface (#6036)
* Remove `cleanup` method.
* Move `import` and `createIR` methods into private section.
* Use `make_unique` to deal with `unique_ptr`s.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir/ONNX importer] Cleanup after changing interface (#6035)
* Move `import` and `createIR` methods into private section.
* Use `make_unique` to deal with `unique_ptr`s.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir/Caffe importer] Cleanup after changing interface (#6034)
* Remove `cleanup` method.
* Move `import` and `createIR` methods into private section.
* Use `make_unique` to deal with `unique_ptr`s.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir/Caffe2 importer] Cleanup after changing interface (#6033)
* Remove `cleanup` method.
* Move `import` and `createIR` methods into private section.
* Use `make_unique` to deal with `unique_ptr`s.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 30 Jul 2019 11:49:11 +0000 (20:49 +0900)]
Fix format script diff file only (#6007)
To get correct updated files when master is update after branch out, count new commits after branch out from master and compare with branch out commit
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 30 Jul 2019 11:48:41 +0000 (20:48 +0900)]
[neurun] Introduce "simple" Subgraph emplace method (#6000)
This commit introduces "simple" Subgraph empalce method which does not
allocate a Subgraph internally but requires clients to allocate it
instead.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
[neurun] Code refactoring of Scheduler::makeRank (#5881)
Split Scheduler::makeRank into smaller ones
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 10:07:41 +0000 (19:07 +0900)]
[moco-tf] ResolveFusedBatchNorm unit test to generate proper log (#6024)
Previously unit test for ResolveFusedBatchNorm printed unknown node
fallback logging. This commit fixes this bug to print proper format
defined by moco-tf.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 10:06:22 +0000 (10:06 +0000)]
[moco/tf] Import TFDepthwiseConv2d Op (#6001)
* [moco/tf] Import TFDepthwiseConv2d Op
This commit is for importing TFDepthwiseConv2d Op.
Signed-off-by: seongwoo sw4670.chae@samsung.com
* This commit makes tensor_content of pbtxt human-readable.
[nnc] Use `importModel` methods instead of `import`, `createIR` and `cleanup` (#5990)
Replace uses of `import`, `createIR` and `cleanup` with newly introduced `importModel`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
DR1 test document (#5890)
* DR1 test document
- Introduced STD for DR1 milestone
- According to new requirements new tests are added
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 30 Jul 2019 08:52:30 +0000 (17:52 +0900)]
Fix bug in ExecInstance (#6017)
Delete compiler generated by new
Fix typo input buffer name in twoThreads test
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 30 Jul 2019 08:51:45 +0000 (17:51 +0900)]
Replace pylint command (#6002)
Replace infra/nnfw/command/pylint command into infra/command
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Nikita Sizov/AI Tools Lab /SRR/Professional/삼성전자 [Tue, 30 Jul 2019 08:03:28 +0000 (11:03 +0300)]
ACL NEON Comparison Node (#5951)
Add support of ComparisonNode for ACL NEON
Signed-off-by: Sizov Nikita <n.sizov@samsung.com>
Nikita Sizov/AI Tools Lab /SRR/Professional/삼성전자 [Tue, 30 Jul 2019 08:01:25 +0000 (11:01 +0300)]
ACL NEON SqueezeNode (#5944)
Add support of SqueezeNode for ACL NEON
Signed-off-by: Sizov Nikita <n.sizov@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 07:55:32 +0000 (16:55 +0900)]
[moco-tf] Reshape shape inference rejects dynamic case (#6013)
Previously shape inference stage for TFReshape node was erroneously
done for wildcard dimension as well. This commit fixes this bug to
reject dynamic reshape case.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 30 Jul 2019 07:52:30 +0000 (16:52 +0900)]
Transpose convolution valid padding test (#5998)
* Transpose convolution valid padding test
- Add transpose convolution valid padding test
- Fix bug transpoe valid padding
- Update comment
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update comment
Fix goals for 2019 (#5994)
Fix goals for 2019 in SRS and SDD documents
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 30 Jul 2019 07:21:41 +0000 (16:21 +0900)]
Add gtest to prepare multithread execution instance (#5898)
Introduce gtest to prepare multithread execution instance using one executor
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Jul 2019 07:20:32 +0000 (16:20 +0900)]
[moco-tf] Replace assert in FuseBinaryIntoPreceding (#6009)
This will replace assert with a log for unknown as it is now know case and can be handled by other transforms
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
[neurun] Remove hiding _indexed_ranks from Dataflow (#5926)
_indexed_ranks is a protected member in both ExecutorBase and Dataflow.
ExecutorBase::setIndexedRanks() sets ExecutorBase::_indexed_ranks,
but methods in Dataflow uses Dataflow::_indexed_ranks and is always nullptr
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Jul 2019 06:18:07 +0000 (15:18 +0900)]
[moco-tf] Import as TFAvgPool with a knob (#6006)
This will add a Knob to import AvgPool node as TFAvgPool or AvgPool2D
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 04:52:46 +0000 (04:52 +0000)]
[moco/tf] DepthwiseConv2D FixShapeTransform bug fix. (#6003)
It needs to be modified for getting right stride data.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 04:40:52 +0000 (13:40 +0900)]
[neurun] Enable {CL|NE}DepthwiseConvolutionLayer3x3 on KernelGenerator (#6008)
Enable {CL|NE}DepthwiseConvolutionLayer3x3 on each KernelGenerator. The
only CLDepthwiseConvolutionLayer3x3 has the parameter for the internal
buffer memory manager.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 04:33:59 +0000 (04:33 +0000)]
[moco/tf] Add TFNodeSummaryBuilder for DepthwiseConv2dNative (#6004)
This commit adds a TFNodeSummaryBuilder for DepthwiseConv2dNative.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 04:07:41 +0000 (13:07 +0900)]
[neurun] Enable AclLinearMemoryManager on LinearExecutor (#5922)
Enable AclLinearMemoryManager to acl_cl and acl_neon on LinearExecutor
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Jul 2019 03:43:35 +0000 (12:43 +0900)]
[moco-tf] Fix shape and pad for TFAvgPool (#5996)
This will implement FixShape and FixPadding for TFAvgPool node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Jul 2019 03:36:57 +0000 (12:36 +0900)]
[neurun] Fix preVisit/postVisit for double-concats (#5977)
* [neurun] Fix preVisit/postVisit for double-concats
Fix preVisit and postVisit of TemplTensorBuilder to pass
double-concats(two consecutive concats) of
inception_v3_2018_04_27.tflite
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Fix comment