platform/core/ml/nnfw.git
5 years ago[moco/tf] Show executed commands (#3510)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 May 2019 02:14:49 +0000 (11:14 +0900)]
[moco/tf] Show executed commands (#3510)

With this commit, runall test script records executed commands into the log file.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] Relocate codes that may be duplicates (#3503)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 17 May 2019 02:14:38 +0000 (11:14 +0900)]
[locomotiv] Relocate codes that may be duplicates (#3503)

This will relocate relu codes that may be duplicates in the future.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Introduce Domain enum class (#3500)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 16 May 2019 23:51:20 +0000 (08:51 +0900)]
[loco] Introduce Domain enum class (#3500)

* [loco] Introduce Domain enum class

This commit introduces Domain enum class which denotes the kind of
a loco value.

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

5 years ago[locomotiv] Remove data update duplication in Forward execution (#3507)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 16 May 2019 07:50:27 +0000 (16:50 +0900)]
[locomotiv] Remove data update duplication in Forward execution (#3507)

This commit removes NodeData update duplication in switch statement in
Forward execution.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[locomotiv] Remove data update duplication in Push execution (#3496)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 16 May 2019 06:57:41 +0000 (15:57 +0900)]
[locomotiv] Remove data update duplication in Push execution (#3496)

* [locomotiv] Remove data update duplication in Push execution

This commit removes NodeData update duplication in switch statement in
Push execution.

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

5 years ago[loco] Introduce Feature Encode/Decode node (#3495)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 16 May 2019 06:26:04 +0000 (15:26 +0900)]
[loco] Introduce Feature Encode/Decode node (#3495)

This commit extends loco IR with FeatureEncode/FeatureDecode nodes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] Introduce ReLU (#3485)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 04:54:25 +0000 (13:54 +0900)]
[locomotiv] Introduce ReLU (#3485)

* [locomotive] Introduce ReLU

This will enable ReLU FLOAT32 execution

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

* use index enumerator

* remove unused code

5 years ago[moco] import TensorFlow Const for some float values (#3494)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 04:29:23 +0000 (13:29 +0900)]
[moco] import TensorFlow Const for some float values (#3494)

This will enable TensorFlow Const conversion where value is given with float value but with partial elements.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] import TensorFlow Const for binary encoded (#3492)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 03:55:44 +0000 (12:55 +0900)]
[moco] import TensorFlow Const for binary encoded (#3492)

This will enable TensorFlow Const conversion where value is given as tensor_content.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] enable TensoFlow Relu node import (#3488)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 03:49:28 +0000 (12:49 +0900)]
[moco] enable TensoFlow Relu node import (#3488)

This will enable TensorFlow Relu node import in frontend.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Introduce Feature Encoder & Decoder (#3479)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 16 May 2019 03:47:07 +0000 (12:47 +0900)]
[loco] Introduce Feature Encoder & Decoder (#3479)

* [loco] Introduce Feature Encoder & Decoder

This commit introduces Feature Encoder & Decoder interface.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update comments per feedback

* Another comment update

* Remove unnecessary space

5 years ago[moco] test material for TensorFlow Relu (#3490)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 03:43:29 +0000 (12:43 +0900)]
[moco] test material for TensorFlow Relu (#3490)

This will add fist unit test material for importing TensorFlow Relu node.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[locomotiv] Docstring for NodeData and make_data() (#3483)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 16 May 2019 03:37:59 +0000 (12:37 +0900)]
[locomotiv] Docstring for NodeData and make_data() (#3483)

* [locomotiv] Docstring for NodeData and make_data()

This commit adds docstring for NodeData class and make_data() function.
NodeData is read-only, and not modifiable after creation.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review feedback updated

5 years ago[moco] import TensorFlow Const for one value data (#3491)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 03:36:13 +0000 (12:36 +0900)]
[moco] import TensorFlow Const for one value data (#3491)

This will enable TensorFlow Const conversion where there is only one float value.
And add a test code for this case.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] import Const attributes and value data (#3487)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 01:54:15 +0000 (10:54 +0900)]
[moco] import Const attributes and value data (#3487)

This will enable import for Const attributes and data where there are same number of const value data.
Add test code for this case.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] introduce test helper header (#3476)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 May 2019 00:51:47 +0000 (09:51 +0900)]
[moco] introduce test helper header (#3476)

* [moco] introduce test helper header

This will add some helpers for node unit testing

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

* use istream

5 years agoAdd ONNXSource 1.3.0 package (#3481)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 15 May 2019 10:37:59 +0000 (19:37 +0900)]
Add ONNXSource 1.3.0 package (#3481)

This commit introduces ONNXSource v1.3.0 package.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Eliminate CRTP from Named class and rename it to NameInfo (#3464)
Роман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 [Wed, 15 May 2019 10:23:33 +0000 (13:23 +0300)]
[loco] Eliminate CRTP from Named class and rename it to NameInfo (#3464)

* rename Named class to NameInfo
* remove virtual destructor because this class is not designed for public inheritance

Signed-off-by: Roman Rusyaev <r.rusyaev@samsung.com>
5 years ago[nnkit/moco/tf] Build moco_test_tf only when TensorFlow is found (#3465)
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 15 May 2019 09:14:32 +0000 (12:14 +0300)]
[nnkit/moco/tf] Build moco_test_tf only when TensorFlow is found (#3465)

Build moco_test_tf only when TensorFlow is found

Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
5 years ago[moco] introduce empty TF Const converter (#3477)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 15 May 2019 08:28:29 +0000 (17:28 +0900)]
[moco] introduce empty TF Const converter (#3477)

This will introduce empty Const node converter

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco/tf] Introduce get_tensor_attr (#3468)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 15 May 2019 06:42:42 +0000 (15:42 +0900)]
[moco/tf] Introduce get_tensor_attr (#3468)

This will introduce get_tensor_attr method to get tensor attribure from node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Introduce ReLU node (#3472)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 15 May 2019 06:42:26 +0000 (15:42 +0900)]
[loco] Introduce ReLU node (#3472)

This will extend loco IR with ReLU node.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Introduce MaxPool2D node (#3473)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 15 May 2019 06:42:15 +0000 (15:42 +0900)]
[loco] Introduce MaxPool2D node (#3473)

This commit introduces MaxPool2D node.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoDistinguish unversioned ONNXSource package (#3469)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 15 May 2019 05:23:13 +0000 (14:23 +0900)]
Distinguish unversioned ONNXSource package (#3469)

This commit introduces ONNXSourceConfigVersion.cmake for unversioned
package in order to eliminate ambiguity in package searching.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce Window class (#3459)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 14 May 2019 10:59:59 +0000 (19:59 +0900)]
[loco] Introduce Window class (#3459)

This commit declares (generic) Window class, and provides its
specialization over 2D Window.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce Stride class (#3461)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 14 May 2019 10:59:49 +0000 (19:59 +0900)]
[loco] Introduce Stride class (#3461)

* [loco] Introduce Stride class

This commit declares (generic) Stride class, and provides its
specialization over 2D.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Mark as a final class

5 years ago[loco] Introduce FeatureIndex class (#3458)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 14 May 2019 09:50:38 +0000 (18:50 +0900)]
[loco] Introduce FeatureIndex class (#3458)

This commit introduces FeatureIndex class which is the offset of an
element in a feature map.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnkit/moco/tf] `runall` and build script (#3449)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 14 May 2019 03:55:39 +0000 (12:55 +0900)]
[nnkit/moco/tf] `runall` and build script (#3449)

This commit adds `runall` and build script, working for `Placeholder_000` test case.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[loco] Introduce FeatureShape class (#3448)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 14 May 2019 03:50:38 +0000 (12:50 +0900)]
[loco] Introduce FeatureShape class (#3448)

This commit introduces FeautreShape class which describes the shape of
Feature Map.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnkit/moco/tf] Adds getConstFloatTensor for InputTensorContext (#3447)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 14 May 2019 00:50:06 +0000 (09:50 +0900)]
[nnkit/moco/tf] Adds getConstFloatTensor for InputTensorContext (#3447)

This adds getConstFloatTensor() method body for InputTensorContext, which is called by HDF5::Export.cpp

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[loco] Introduce TensorIndex class (#3445)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 13 May 2019 23:35:46 +0000 (08:35 +0900)]
[loco] Introduce TensorIndex class (#3445)

* [loco] Introduce TensorIndex class

This commit introduces TensorIndex class to loco IR.

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

5 years ago[MIR] Added Readme (#3271)
Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 13 May 2019 16:23:55 +0000 (19:23 +0300)]
[MIR] Added Readme (#3271)

Added a readme for Model IR

Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
5 years ago[nnkit/moco/tf] Fix bug while calling ModelSignature (#3446)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 May 2019 10:12:11 +0000 (19:12 +0900)]
[nnkit/moco/tf] Fix bug while calling ModelSignature (#3446)

With this commit, node name (without, e.g., ":0") is passed to ModelSignature, not a tensor name with, e.g., ":0".

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnkit/moco/tf] Restructuring 'using' (#3438)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 May 2019 09:46:33 +0000 (18:46 +0900)]
[nnkit/moco/tf] Restructuring 'using' (#3438)

`using` is restructured.
ParsedTensors are common so move `using` with ParsedTensors to top level. Others were moved to method level.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnkit/moco/tf] backend of nnkit (#3444)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 May 2019 09:13:37 +0000 (18:13 +0900)]
[nnkit/moco/tf] backend of nnkit (#3444)

* [nnkit/moco/tf] backend of nnkit

This commit adds backend of nnkit for nnkit/moco/tf.

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

5 years ago[CMake] Check TensorFlow version (#3373)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 13 May 2019 09:13:14 +0000 (18:13 +0900)]
[CMake] Check TensorFlow version (#3373)

* [CMake] Check TensorFlow version

This commit introduce check of tensorflow version.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit introduce .FORMATCHECKED

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit apply format.patch

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit make code safe.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit remove modification of 'format'

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[locomotiv] Session frees node annotations on destruction (#3441)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 13 May 2019 07:46:07 +0000 (16:46 +0900)]
[locomotiv] Session frees node annotations on destruction (#3441)

* [locomotiv] Session frees node annotations on destruction

This commit introduces destructor of Session. Previously node
annotations set by Session, like NodeDataImpl, remain even after
Session closed. They were not memory leak by definition, as they can
be accessed through another Session. However node annotations maybe
preserved until program ends, so it is like memory leak. This commit
would prevent that situation.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Delete unused using Index

* Session is final class

5 years ago[loco] Introduce TensorShape class (#3443)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 13 May 2019 07:42:03 +0000 (16:42 +0900)]
[loco] Introduce TensorShape class (#3443)

This commit introduces TensorShape class to loco IR.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoExtract nnkit-tflite (#3442)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 13 May 2019 07:29:28 +0000 (16:29 +0900)]
Extract nnkit-tflite (#3442)

This commit extracts nnkit modules related with TensorFlow Lite as
nnkit-tflite.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnkit/tf] fix wrong name of method (#3440)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 May 2019 05:29:26 +0000 (14:29 +0900)]
[nnkit/tf] fix wrong name of method (#3440)

This commit renames isInt32Tensor to isS32Tensor.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[tfldump] Add readme (#3297)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 May 2019 04:48:32 +0000 (13:48 +0900)]
[tfldump] Add readme (#3297)

* [tfldump] Add readme

This will add readme for tfldump project

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

5 years ago[locomotiv] Support Forward node (#3436)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 13 May 2019 03:46:54 +0000 (12:46 +0900)]
[locomotiv] Support Forward node (#3436)

This commit starts to support loco::Forward node. In terms of node
execution, Forward calculation is same with Push's.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[locomotiv] Use break rather than return (#3437)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 13 May 2019 03:44:58 +0000 (12:44 +0900)]
[locomotiv] Use break rather than return (#3437)

For Push node execution, let's use break rather than return inside
switch statement, as it feels more natural.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnkit] int32 support for nnkit::TensorContext (#3413)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 May 2019 03:44:38 +0000 (12:44 +0900)]
[nnkit] int32 support for nnkit::TensorContext (#3413)

* [nnkit] int32 support for nnkit::TensorContext

This commit adds methods to support int32 for nnkit::TensorContext

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Int32->S32, added header

* cluster S32 function tegether

5 years agoExtract nnkit-caffe (#3435)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 13 May 2019 02:12:39 +0000 (11:12 +0900)]
Extract nnkit-caffe (#3435)

This commit extracts nnkit-caffe from nnkit, and simplifes the depedency
check in CMakeLists.txt.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] Use macro to iterate supported Nodes (#3429)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 13 May 2019 02:12:01 +0000 (11:12 +0900)]
[locomotiv] Use macro to iterate supported Nodes (#3429)

* [locomotiv] Use macro to iterate supported Nodes

This commit introduces list of supported Nodes for execution, and use
them with macro to iterate and do same thing through Nodes.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* clang-format off for comment indentation

5 years ago[loco] Introduce ConstGen node (#3425)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Sun, 12 May 2019 23:47:43 +0000 (08:47 +0900)]
[loco] Introduce ConstGen node (#3425)

* [loco] Introduce ConstGen node

This commit extends loco IR with ConstGen node.

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

* Fix a bug and add a corresponding test

5 years ago[nnkit/moco/tf] backend implementation (#3424)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 12 May 2019 23:45:58 +0000 (08:45 +0900)]
[nnkit/moco/tf] backend implementation (#3424)

* [nnkit/moco/tf] backend implementation

This commit adds backend implementation for nnkit/moco/tf.

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

* fixed for locomotiv set_input

5 years agoExtract "nnkit-intf" from "nnkit" (#3433)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 10 May 2019 09:49:30 +0000 (18:49 +0900)]
Extract "nnkit-intf" from "nnkit" (#3433)

This commit extracts "nnkit-intf" from "nnkit" as the first step toward
nnkit directory restructuring.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnkit] Run onnx model using onnx runtime (#3432)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 10 May 2019 08:11:10 +0000 (17:11 +0900)]
[nnkit] Run onnx model using onnx runtime (#3432)

This patch has TensorContext class to run pre and post actions.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[loco] Introduce input_nodes/output_nodes helper (#3428)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 10 May 2019 06:41:54 +0000 (15:41 +0900)]
[loco] Introduce input_nodes/output_nodes helper (#3428)

* [loco] Introduce input_nodes/output_nodes helper

This commit introduces input_nodes/output_nodes helper functions which
allow users to easily enumerate graph-level input/output nodes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update test name

5 years ago[nnkit] Add TensorSet class for managing TensorData of onnx model (#3427)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 10 May 2019 05:52:43 +0000 (14:52 +0900)]
[nnkit] Add TensorSet class for managing TensorData of onnx model (#3427)

This patch adds TensorSet class.
And it also support to allocate and release the input and output tensor datas.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[nnkit] Remove finalize function of nnkit::Backend (#3430)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 10 May 2019 05:43:32 +0000 (14:43 +0900)]
[nnkit] Remove finalize function of nnkit::Backend (#3430)

This patch does not remove the plugin unique_ptr directly.
Instead, it passes it in so that it is removed according to the unique_ptr policy.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[locomotiv] Implement Session::get_output() (#3423)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 9 May 2019 07:40:33 +0000 (16:40 +0900)]
[locomotiv] Implement Session::get_output() (#3423)

This commit implements how session get its output. Related test for this
feature added as well.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnkit] Add OnnxRunner for managing onnx runtime (#3417)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 9 May 2019 07:33:21 +0000 (16:33 +0900)]
[nnkit] Add OnnxRunner for managing onnx runtime (#3417)

* [nnkit] Add OnnxRunner for managing onnx runtime

This patch adds the OnnxRunner class.
This class is for managing the onnx runtime to prepare input and output and to run the model.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Do not throw exception in constructor.

In this case, it will make an assertion.

5 years ago[locomotiv] Implement inference for session (#3419)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 9 May 2019 06:57:46 +0000 (15:57 +0900)]
[locomotiv] Implement inference for session (#3419)

This commit implements Session::infer() which does inference. It also
shows test how to use this.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnkit] Removed unused methods in TensorContext (#3418)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 9 May 2019 05:33:00 +0000 (14:33 +0900)]
[nnkit] Removed unused methods in TensorContext (#3418)

Two methods in TensorContext seems not to be used. So removed.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[locomotiv] Support Pull node (#3415)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 9 May 2019 01:46:31 +0000 (10:46 +0900)]
[locomotiv] Support Pull node (#3415)

This commit introduces support for Pull node execution. Pull node
basically do nothing, but aborts if input data annotation not ready.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[loco] Introduce DataTypeImpl trait (#3399)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 9 May 2019 00:24:25 +0000 (09:24 +0900)]
[loco] Introduce DataTypeImpl trait (#3399)

This commit introduces DataTypeImpl traits which returns C++ type
corresponding to each DataType enum value.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoAdd .c file to format-check-candidate (#3414)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 8 May 2019 23:45:59 +0000 (08:45 +0900)]
Add .c file to format-check-candidate (#3414)

This commit adds .c file to format-check-candidate.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[MIR] Added a Remove Dead Ends Pass (#3272)
Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 8 May 2019 13:37:32 +0000 (16:37 +0300)]
[MIR] Added a Remove Dead Ends Pass (#3272)

Added a `RemoveDeadEnds` pass
that decreases compiler runtime memory usage.

Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
5 years ago[locomotiv] Implement Push node execution (#3408)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 8 May 2019 04:46:23 +0000 (13:46 +0900)]
[locomotiv] Implement Push node execution (#3408)

This commit implements Push node execution and introduces related tests.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco/test/tf] test cases with Const (#3409)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 8 May 2019 03:54:50 +0000 (12:54 +0900)]
[moco/test/tf] test cases with Const (#3409)

This commit adds test cases with Const operation.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco/test/tf] test files for reshape (#3410)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 8 May 2019 03:54:24 +0000 (12:54 +0900)]
[moco/test/tf] test files for reshape (#3410)

This adds test files for reshape.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnkit] Add Allocator for onnx backend (#3372)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 8 May 2019 03:50:30 +0000 (12:50 +0900)]
[nnkit] Add Allocator for onnx backend (#3372)

* [nnkit] Add Allocator for onnx backend

This class is for management onnx tensor memory.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Add comments

5 years ago[locomotiv] Introduce NodeExecution helper class (#3402)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 8 May 2019 01:29:58 +0000 (10:29 +0900)]
[locomotiv] Introduce NodeExecution helper class (#3402)

This commit introduces NodeExecution class. This class serves as helper
class for Session::infer(). This class is responsible to calculate one
specific node.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nncc-optimization] Sink transpose optimization added (#3292)
Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 7 May 2019 15:59:12 +0000 (18:59 +0300)]
[nncc-optimization] Sink transpose optimization added (#3292)

- Added the transpose sinking optimization
- Moved swapAdjacent to OptimizationUtils

Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
5 years ago[nnkit/moco/tf] TensorContext for output tensor (#3406)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 7 May 2019 08:12:57 +0000 (17:12 +0900)]
[nnkit/moco/tf] TensorContext for output tensor (#3406)

This commit adds OutputTensorContext, which is a child of TensorContext for output tensor.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnkit/moco/tf] Make cmake work only when Tensorflow is found (#3405)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 7 May 2019 03:18:21 +0000 (12:18 +0900)]
[nnkit/moco/tf] Make cmake work only when Tensorflow is found (#3405)

This commits makes cmake builds nnkit/moco/tf only when TF is found

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnc] Refine Reduce operation implementation in interpreter (#3358)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 6 May 2019 12:54:23 +0000 (15:54 +0300)]
[nnc] Refine Reduce operation implementation in interpreter (#3358)

Rename `ReduceFOp` to `ReduceOp`, `ReduceN` to `Reduce`.
Speed up `ReduceOp` operation implementation in interpreter.
Reformat according to coding style.
Remove unused files.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
5 years ago[locomotiv] Introduce NodeDataImpl annotation erase (#3400)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 3 May 2019 09:23:03 +0000 (18:23 +0900)]
[locomotiv] Introduce NodeDataImpl annotation erase (#3400)

This commit introduces erase_annot_data() function to erase already
annotated NodeDataImpl. It also includes test for added function.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnkit/moco/tf] TensorContext for input tensor (#3392)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 3 May 2019 08:38:05 +0000 (17:38 +0900)]
[nnkit/moco/tf] TensorContext for input tensor (#3392)

* [nnkit/moco/tf] TensorContext for input tensor

This commit adds InputTensorContext, which is a child of TensorContext for input tensor.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* absolute path for include dir to relative path

5 years ago[locomotiv] Implement 'set_input' of Session (#3395)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 3 May 2019 02:18:31 +0000 (11:18 +0900)]
[locomotiv] Implement 'set_input' of Session (#3395)

* [locomotiv] Implement 'set_input' of Session

This commit introduces implementation of Session::set_input() and its
relevant test. This method now returns bool according to accomplishment.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Add docstring for 'set_input'

5 years ago[nnkit] Error handling for dlopen/dlsym and dlclose (#3355)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 2 May 2019 06:58:19 +0000 (15:58 +0900)]
[nnkit] Error handling for dlopen/dlsym and dlclose (#3355)

* [nnkit] Error handling for dlopen/dlsym and dlclose

This patch allows to handle some error case of dlopen/dlsym and dlclose.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Remove runtime_error exception in comments

* Second version for error handling of dl related functions

5 years ago[locomotiv] const type qualified fuction arguments (#3391)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 30 Apr 2019 06:47:57 +0000 (15:47 +0900)]
[locomotiv] const type qualified fuction arguments (#3391)

This commit adds const type qualifier for relevant function arguments
for NodeData.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnkit/moco/tf] bug fix in CMakeLists.txt (#3388)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Apr 2019 00:35:38 +0000 (09:35 +0900)]
[nnkit/moco/tf] bug fix in CMakeLists.txt (#3388)

This commit fixes wrong directory name in CMakeLists.txt.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnkit/moco/tf] TensorContext class (#3387)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 30 Apr 2019 00:07:35 +0000 (09:07 +0900)]
[nnkit/moco/tf] TensorContext class (#3387)

This commit adds TensorContext class, which will be inherited by InputTensorContext and OutputTensorContext in next PR.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco/ONNX] Introduce Identity testcase for moco ONNX frontend (#3380)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 29 Apr 2019 22:31:23 +0000 (07:31 +0900)]
[moco/ONNX] Introduce Identity testcase for moco ONNX frontend (#3380)

This commit will introduce a new testcase for moco ONNX frontend,
which is consisted of Identity operation.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[locomotiv] Implement 'annot_data', wrapper for 'annot' (#3385)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 29 Apr 2019 22:28:36 +0000 (07:28 +0900)]
[locomotiv] Implement 'annot_data', wrapper for 'annot' (#3385)

* [locomotiv] Implement 'annot_data', wrapper for 'annot'

This commit makes implementation of 'annot_data', wrapper function for
annotating NodeDataImpl to loco Node object. It also adds relative
comments and test. 'annot_data' is for project-wide internal use only.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Use rvalue as argument for annot_data

5 years ago[locomotiv] Reset unique pointer at NodeDataImpl ctor (#3382)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 29 Apr 2019 03:34:07 +0000 (12:34 +0900)]
[locomotiv] Reset unique pointer at NodeDataImpl ctor (#3382)

This commit use reset() of unique pointer for simple and efficient code
at NodeDataImpl class constructor.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[locomotiv] Use explicit float as constant (#3381)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 29 Apr 2019 03:31:05 +0000 (12:31 +0900)]
[locomotiv] Use explicit float as constant (#3381)

This commit use explicit float constant for float NodeData test,
instead of double.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[locomotiv] Internal implementation of 'NodeData' (#3374)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 29 Apr 2019 02:22:13 +0000 (11:22 +0900)]
[locomotiv] Internal implementation of 'NodeData' (#3374)

Interal 'NodeDataImpl' implements public API of 'NodeData'. This commit
also introduces test framework and test for NodeData.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[nnkit] Add Status class for onnx backend (#3369)
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 29 Apr 2019 02:07:21 +0000 (11:07 +0900)]
[nnkit] Add Status class for onnx backend (#3369)

* [nnkit] Add Status class for onnx backend

This class is for auto-release OrtStatus.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Return the lhs by reference in assignment operator overloading function

* Release status before assignment

* Change function name and add description

5 years ago[moco/ONNX] Convert onnx graph to loco graph (#3368)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 29 Apr 2019 02:06:41 +0000 (11:06 +0900)]
[moco/ONNX] Convert onnx graph to loco graph (#3368)

* [moco/ONNX] Convert onnx graph to loco graph

This commit will enable converting ONNX graph to loco graph

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

5 years ago[loco] Visit each node only once (#3378)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 29 Apr 2019 01:49:03 +0000 (10:49 +0900)]
[loco] Visit each node only once (#3378)

The current implementation of postorder_traversal may visits the same
node multiple times.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnkit/moco/tf] skeleton of backend for nnkit moco tf (#3371)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Apr 2019 23:42:02 +0000 (08:42 +0900)]
[nnkit/moco/tf] skeleton of backend for nnkit moco tf (#3371)

This commits adds early version of backend for nnkit moco tf and build script.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[nnc] Introduced 'FuseArithmeticOps' graph optimization (#3340)
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 25 Apr 2019 18:05:57 +0000 (21:05 +0300)]
[nnc] Introduced 'FuseArithmeticOps' graph optimization (#3340)

Main purpose of this optimization - is to fuse 'Conv->BatchNorm' into 'Conv'
Currently 'BatchNorm' splitting by NNC frontends into 'Scale->Scale->BiasAdd'
This optimization performing in two steps (repeated while graph changing):

1. Merging two successive operations with constant weights into one (ex: 'Scale->Scale' becomes 'Scale')
2. Sinking 'BiasAdd' through 'Scale' (so 'Conv->BiasAdd->Scale' becomes 'Conv->Scale->BiasAdd')

This optimization increases performance by ~7.5% on caffe inception_v3 (which has ~90 Conv->BatchNorm edges)

Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
5 years ago[CMake] Fix typo in TensorFlowConfig.cmake (#3367)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Apr 2019 06:58:34 +0000 (15:58 +0900)]
[CMake] Fix typo in TensorFlowConfig.cmake (#3367)

This commit fix typo in TensorFlowConfig.cmake

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
5 years ago[moco/ONNX] Load onnx model in moco (#3366)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Apr 2019 06:49:51 +0000 (15:49 +0900)]
[moco/ONNX] Load onnx model in moco (#3366)

This commit will enable loading ONNX model file in moco onnx frontend

5 years ago[nnkit] Moving TensorInfoParser & ParsedTensor into util dir (#3356)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Apr 2019 05:00:14 +0000 (14:00 +0900)]
[nnkit] Moving TensorInfoParser & ParsedTensor into util dir (#3356)

* [nnkit] Moving TensorInfoParser & ParsedTensor into util dir

This commit moves TensorInfoParser & ParsedTensor into util dir. These two files are used by `nnkit tf` and also `nnkit moco tf`. So it would be better to move these into common directory for better reuse.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* modify dir name from `util` to `tftestinfo`

* util -> tftestinfo

5 years ago[moco/ONNX] Introduce Identity operation (#3365)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Apr 2019 04:28:14 +0000 (13:28 +0900)]
[moco/ONNX] Introduce Identity operation (#3365)

This commit will introduce Identity operation and add it to GraphBuilderRegisry

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[locomotiv] Set graph input data by NodeData (#3363)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Apr 2019 04:17:33 +0000 (13:17 +0900)]
[locomotiv] Set graph input data by NodeData (#3363)

This commit changes how Session gets its graph input. Using NodeData
instead of Buffer is for matching input and output type, and to avoid
use of template on header.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco] remove TF frontend op headers (#3364)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Apr 2019 04:01:21 +0000 (13:01 +0900)]
[moco] remove TF frontend op headers (#3364)

This will remove op headers as not needed anymore

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] use const string for map key (#3362)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Apr 2019 03:32:06 +0000 (12:32 +0900)]
[moco] use const string for map key (#3362)

This will add const keyword to string for op map key

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[locomotiv] Introduce NodeData class (#3349)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Apr 2019 02:36:52 +0000 (11:36 +0900)]
[locomotiv] Introduce NodeData class (#3349)

NodeData class is responsible to data type and data value of node. It
serves as input and output interface for 'Session' class. Its
implementation would be hidden from outside.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[moco] Support operator self register for TF frontent (#3359)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Apr 2019 02:05:21 +0000 (11:05 +0900)]
[moco] Support operator self register for TF frontent (#3359)

* [moco] Support operator self register for TF frontent

This will provide self registeration for operator builder of TensorFlow frontend

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

5 years ago[loco] Add "postorder_traversal" helper (#3354)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 25 Apr 2019 01:25:33 +0000 (10:25 +0900)]
[loco] Add "postorder_traversal" helper (#3354)

This commit adds "postorder_traversal" helper which generates a
postorder traversal sequence from a given "roots".

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco/ONNX] Introduce symbolTable in GraphBuilderContext (#3353)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Apr 2019 22:22:23 +0000 (07:22 +0900)]
[moco/ONNX] Introduce symbolTable in GraphBuilderContext (#3353)

This commit will introduce symbolTable in GraphBuilderContext
symbolTable is needed for linking each nodes

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[mir] Introduce copy with changed input method to Operation (#3346)
Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 24 Apr 2019 17:55:25 +0000 (20:55 +0300)]
[mir] Introduce copy with changed input method to Operation (#3346)

Introduce "copy with changed input" method to Operation
to facilitate easier creation of optimizations

Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
5 years ago[nnc] Simplify implementation of Softmax in interpreter (#3347)
Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 24 Apr 2019 17:39:12 +0000 (20:39 +0300)]
[nnc] Simplify implementation of Softmax in interpreter (#3347)

Do not use `Fill` and `Reduce` in Softmax implementation in interpreter.
Fix coding style.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>