platform/core/ml/nnfw.git
5 years ago[moco/tf] Simplify implementation of Const op (#3651)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 3 Jun 2019 02:26:46 +0000 (11:26 +0900)]
[moco/tf] Simplify implementation of Const op (#3651)

This commit will simplify the implementation of Const op in moco tf frontend.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[pp] Update README.md (#3654)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Jun 2019 02:13:05 +0000 (11:13 +0900)]
[pp] Update README.md (#3654)

This commit updates README.md to be compatible with Doxygen.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco/tf] Add Concat test material with -1 axis (#3648)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 3 Jun 2019 02:10:13 +0000 (11:10 +0900)]
[moco/tf] Add Concat test material with -1 axis (#3648)

* [moco/tf] Add Concat test material with -1 axis

This will add Concat_002 test material that has axis value of -1

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

5 years ago[loco] Introduce Conv2D (#3650)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Jun 2019 02:07:43 +0000 (11:07 +0900)]
[loco] Introduce Conv2D (#3650)

This commit extends loco IR with Conv2D node.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco/tf] Add test material for Concat (#3646)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 3 Jun 2019 02:07:20 +0000 (11:07 +0900)]
[moco/tf] Add test material for Concat (#3646)

* [moco/tf] Add test materials for Concat

This will add Concat_000 test material

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

5 years ago[moco/tf] Add Concat test material with 3 inputs (#3647)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 3 Jun 2019 02:06:20 +0000 (11:06 +0900)]
[moco/tf] Add Concat test material with 3 inputs (#3647)

* [moco/tf] Add Concat test material with 3 inputs

This will add Concat_001 test material that has 3 input tensors and an axis

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

5 years ago[locomotiv] Support FeatureDecode Node (#3639)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 3 Jun 2019 01:39:06 +0000 (10:39 +0900)]
[locomotiv] Support FeatureDecode Node (#3639)

* [locomotiv] Support FeatureDecode Node

This commit supports FeatureDecode loco node. It also adds feature
decoding part into feature codec test.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review fix: pass perm by const ref

5 years ago[moco/tf] Fix shape reading for Placeholder (#3644)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 3 Jun 2019 01:31:23 +0000 (10:31 +0900)]
[moco/tf] Fix shape reading for Placeholder (#3644)

* [moco/tf] Fix shape reading for Placeholder

This will fix shape information reading for Placeholder to handle unknown and future todo

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

5 years ago[moco/tf] Introduce ConcatData (#3641)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 3 Jun 2019 01:23:22 +0000 (10:23 +0900)]
[moco/tf] Introduce ConcatData (#3641)

* [moco/tf] Introduce ConcatData

This will introduce ConcatData used for annotation of Concat node.

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

5 years ago[moco/tf] Add get_int_attr (#3643)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 2 Jun 2019 22:22:55 +0000 (07:22 +0900)]
[moco/tf] Add get_int_attr (#3643)

This will add get_int_attr() to read int type attribute value from TensorFlow NodeDef

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[locomotiv] Prepare for FeatureCodec execution test (#3630)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 31 May 2019 06:41:13 +0000 (15:41 +0900)]
[locomotiv] Prepare for FeatureCodec execution test (#3630)

* [locomotiv] Prepare for FeatureCodec execution test

By special relationship between FeatureEncode and FeatureDecode nodes,
it is convenient to test them at once. This commit is a preparation for
that. Code structure is changed but semantic is not.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review feedback: simple data, correct assertion

5 years ago[loco] add int32 type (#3636)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 31 May 2019 05:52:36 +0000 (14:52 +0900)]
[loco] add int32 type (#3636)

* [loco] add int32 type

This will add int32 type for data types

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

* another change order

* move after todo

5 years ago[moco] introduce NodeDefTable (#3637)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 31 May 2019 05:45:02 +0000 (14:45 +0900)]
[moco] introduce NodeDefTable (#3637)

This will introduce NodeDefTable class to provide TensorFlow node from name query

Signed-off-by: SaeHie Park saehie.park@samsung.com
5 years ago[loco] introduce TensorConcat (#3635)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 31 May 2019 01:25:51 +0000 (10:25 +0900)]
[loco] introduce TensorConcat (#3635)

This will introduce TensorConcat IR which will express concatenation on tensor operation

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco/ONNX] Introduce Constant operation (#3626)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 30 May 2019 04:16:53 +0000 (13:16 +0900)]
[moco/ONNX] Introduce Constant operation (#3626)

* [moco/ONNX] Introduce Constant operation

This commit will introduce constant operation for moco ONNX frontend
and related tests

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

* add version diff description

5 years ago[nike] Update README.md (#3632)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 30 May 2019 04:16:24 +0000 (13:16 +0900)]
[nike] Update README.md (#3632)

This commit updates README.md to be compliant with Doxygen.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce FilterEncode (#3625)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 29 May 2019 08:30:30 +0000 (17:30 +0900)]
[loco] Introduce FilterEncode (#3625)

This commit introduces FilterEncode node which expresses Tenser-to-Filter
conversion.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Reshape with shape known at compile time (#3615)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 29 May 2019 06:55:44 +0000 (15:55 +0900)]
[loco] Reshape with shape known at compile time (#3615)

* [loco] FixedReshape

This commit adds a loco node that reshapes a tensor with statically known shape.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* use template. revise comment

5 years ago[loco] Reuse permutation (#3622)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 29 May 2019 06:55:21 +0000 (15:55 +0900)]
[loco] Reuse permutation (#3622)

This commit extends PermutingCodec with a new setter which takes
"Permutation" as its input.

This commit also updates a related code example.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] Support FeatureEncode execution (#3602)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 29 May 2019 04:44:27 +0000 (13:44 +0900)]
[locomotiv] Support FeatureEncode execution (#3602)

* [locomotiv] Support FeatureEncode execution

This commit supports FeatureEncode execution for loco interpreter. Note
that locomotiv saves all feature data as NHWC.

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

5 years ago[moco/ONNX] Enable converting initializer and input tensor to loco node (#3577)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 29 May 2019 04:26:34 +0000 (13:26 +0900)]
[moco/ONNX] Enable converting initializer and input tensor to loco node (#3577)

Until now, `moco` didn't handle for converting initializer and input tensors to `loco` node.
By substituting initializer to `loco::ConstGen` and converting input tensors to `loco::Pull`,
this commit will ebable converting initializer and input tensor to `loco` node

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[loco] Introduce FilterEncoder (#3613)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 29 May 2019 00:52:26 +0000 (09:52 +0900)]
[loco] Introduce FilterEncoder (#3613)

* [loco] Introduce FilterEncoder

This commit introduces FilterEncoder interface as a step to support
Conv2D.

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

5 years ago[moco] Update README.md (#3614)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 28 May 2019 22:14:20 +0000 (07:14 +0900)]
[moco] Update README.md (#3614)

This commit updates moco's README.md to be compliant with Doxygen
format.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoUpdate Dockerfile for updating gcc version (#3606)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 27 May 2019 10:35:58 +0000 (19:35 +0900)]
Update Dockerfile for updating gcc version (#3606)

* Update Dockerfile for updating gcc version

This commit updates Dockerfile for updating gcc version.

Related issue:#3332

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit remove some unnecessary codes.

* This commit modify codes for consistency

5 years ago[nnkit/moco/tf] Enable building nnkit when moco is disabled (#3609)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 27 May 2019 10:04:27 +0000 (19:04 +0900)]
[nnkit/moco/tf] Enable building nnkit when moco is disabled (#3609)

This commit enables building nnkit even when there is no moco.

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

* [loco] Introduce FilterIndex

This commit introduces FilterIndex class which specifies one element in
a convolutional filter.

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

5 years ago[moco] Introduce Logging Framework (#3593)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 27 May 2019 03:12:46 +0000 (12:12 +0900)]
[moco] Introduce Logging Framework (#3593)

This commit introduce very basic logging framework into moco.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] Assert on push_data not push node (#3599)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 27 May 2019 02:08:36 +0000 (11:08 +0900)]
[locomotiv] Assert on push_data not push node (#3599)

There has been a mistake on assertion. The intension here is to
check push_data whether it is null or not, not push node itself.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[loco] Update MaxPool2D comment (#3596)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 27 May 2019 01:40:43 +0000 (10:40 +0900)]
[loco] Update MaxPool2D comment (#3596)

* [loco] Update MaxPool2D comment

This commit explains MaxPool2D pre-conditions through its comment.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Use mathmetical notation

5 years ago[locomotiv] Supporting MaxPool2D (#3576)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 27 May 2019 00:01:02 +0000 (09:01 +0900)]
[locomotiv] Supporting MaxPool2D (#3576)

* [locomotiv] Supporting MaxPool2D

This commit enables locomotiv to run loco MaxPool2D.

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

* leave the latest copyright

* revised for comments

* adding two assert()s

* adding TODO comment

* fix wrong comment

5 years ago[locomotiv] Additional example on argument shape mismatch (#3591)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 24 May 2019 06:26:47 +0000 (15:26 +0900)]
[locomotiv] Additional example on argument shape mismatch (#3591)

One more thing to consider when support new node execution: Some nodes
expect specific shape for its input.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[loco] Update README (#3590)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 24 May 2019 04:58:17 +0000 (13:58 +0900)]
[loco] Update README (#3590)

This commit adds leading section header to make README compatible with
Doxygen.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce FilterShape (#3587)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 24 May 2019 04:02:56 +0000 (13:02 +0900)]
[loco] Introduce FilterShape (#3587)

This commit introduces FilterShape class which repesents the shape of
Conv2D filter shape.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[cwrap] Update README.md (#3589)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 24 May 2019 03:52:36 +0000 (12:52 +0900)]
[cwrap] Update README.md (#3589)

This commit updates README.md as a doxygen-compatible form.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[hermes] Introduce Context class (#3585)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 24 May 2019 01:19:53 +0000 (10:19 +0900)]
[hermes] Introduce Context class (#3585)

This commit introduces Context class which serves as a central
controller for hermes logging subsystem.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[hermes] Introduce Source class (#3574)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 23 May 2019 08:36:19 +0000 (17:36 +0900)]
[hermes] Introduce Source class (#3574)

* [hermes] Introduce Source class

This commit introduces "Source" class which serves as an actual
interface with application.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Use virtual destructor

5 years ago[locomotiv] Using shape({ .. }) instead of rank(..), make_dimension(..) (#3583)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 23 May 2019 07:10:26 +0000 (16:10 +0900)]
[locomotiv] Using shape({ .. }) instead of rank(..), make_dimension(..) (#3583)

This commit replace rank(..) and make_dimension(..) with shape({..}) to shorten the code.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco] enable const_000 test of TensorFlow frontend (#3580)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 23 May 2019 01:44:01 +0000 (10:44 +0900)]
[moco] enable const_000 test of TensorFlow frontend (#3580)

This will enable TensorFlow frontend testing with locomotiv for const_000 test.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco/ONNX] Remove deprecated functions (#3578)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 22 May 2019 09:28:50 +0000 (18:28 +0900)]
[moco/ONNX] Remove deprecated functions (#3578)

This commit will remove deprecated functions in Identity operation

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[moco/ONNX] Introduce convert tool for ONNX moco frontend (#3563)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 22 May 2019 08:19:39 +0000 (17:19 +0900)]
[moco/ONNX] Introduce convert tool for ONNX moco frontend (#3563)

* [moco/ONNX] Introduce convert tool for ONNX moco frontend

This commit will introduce convert too for ONNX moco frontend

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* remove tensor_dtype in runtime_error

5 years ago[moco/ONNX] Apply opset version to operator and frontend (#3557)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 22 May 2019 08:19:29 +0000 (17:19 +0900)]
[moco/ONNX] Apply opset version to operator and frontend (#3557)

* [moco/ONNX] Apply opset version to operator and frontend

This commit will apply opset version to moco ONNX frontend and
ONNX operators.

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

5 years ago[moco/tf/test] test case for MaxPool (#3555)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 22 May 2019 08:08:10 +0000 (17:08 +0900)]
[moco/tf/test] test case for MaxPool (#3555)

This adds a test case for MaxPool.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[hermes] Introduce Sink class (#3570)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 22 May 2019 06:27:53 +0000 (15:27 +0900)]
[hermes] Introduce Sink class (#3570)

* [hermes] Introduce Sink class

This commit introduces Sink class which serves as a base class for all
log message consumers.

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

5 years ago[hermes] Introduce MessageBus & MessageBuffer class (#3565)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 22 May 2019 05:47:30 +0000 (14:47 +0900)]
[hermes] Introduce MessageBus & MessageBuffer class (#3565)

* [hermes] Introduce MessageBus & MessageBuffer class

This commit introduces MessageBus & MessageBuffer classes which logging
endpoint implementation requires.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update MessageBuffer comment (typo fix and add some details)

5 years ago[moco/tf] use make_unique instead of new for MaxPool2D (#3572)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 22 May 2019 02:13:35 +0000 (11:13 +0900)]
[moco/tf] use make_unique instead of new for MaxPool2D (#3572)

This changes new to make_unique for MaxPool2D, which was omitted in pr #3569

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco] update relu comment (#3568)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 22 May 2019 01:13:22 +0000 (10:13 +0900)]
[moco] update relu comment (#3568)

* [moco] update relu comment

This will update Relu comment about input update

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

5 years ago[moco] use make_unique (#3569)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 22 May 2019 01:12:46 +0000 (10:12 +0900)]
[moco] use make_unique (#3569)

This will change to use make_unique instead of direct new

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Add TenosrFlow_MaxPool_Float_000 test (#3539)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 10:46:18 +0000 (19:46 +0900)]
[loco] Add TenosrFlow_MaxPool_Float_000 test (#3539)

This commit adds TensorFlow_MaxPool_Float_000 test as a loco unittest.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco] enable Relu_000 test (#3567)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 10:45:12 +0000 (19:45 +0900)]
[moco] enable Relu_000 test (#3567)

This will enable Relu_000 to do locomotive testing

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Remove obsolete comment (#3566)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 10:44:52 +0000 (19:44 +0900)]
[moco] Remove obsolete comment (#3566)

This will remove obsolete comment in TF frontend

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] add and update comments tf/frontend (#3562)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 10:27:50 +0000 (19:27 +0900)]
[moco] add and update comments tf/frontend (#3562)

This will add and update comments for TF frontend

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco/tf] using static for local var inside validate() (#3564)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 09:58:15 +0000 (18:58 +0900)]
[moco/tf] using static for local var inside validate() (#3564)

Attrs names of MaxPool2D is now static.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco/ONNX] Fix wrong testcases for ONNX Identity operation (#3559)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 21 May 2019 09:55:45 +0000 (18:55 +0900)]
[moco/ONNX] Fix wrong testcases for ONNX Identity operation (#3559)

`moco` is using ONNX 1.4.1 and latest IR version of ONNX 1.4.1 is 4,
and opset version of IR_v4 is 9.
This commit will correct this error

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[loco] Introduce NodeMixin class (#3556)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 09:30:04 +0000 (18:30 +0900)]
[loco] Introduce NodeMixin class (#3556)

* [loco] Introduce NodeMixin class

This commit extracts common shape getter/setter methods as a seperate
mix-in class.

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

5 years ago[hermes] Introduce Message class (#3558)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 09:06:29 +0000 (18:06 +0900)]
[hermes] Introduce Message class (#3558)

This commit adds hermes Message class and related tests.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco] add GraphUpdate test (#3560)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 08:32:09 +0000 (17:32 +0900)]
[moco] add GraphUpdate test (#3560)

* [moco] add GraphUpdate test

This will add unit test for GraphUpdate

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

5 years ago[moco/tf] adding MaxPool2D and test (#3554)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 07:52:46 +0000 (16:52 +0900)]
[moco/tf] adding MaxPool2D and test (#3554)

This commit adds MaxPool2D and its test code.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[loco] Simplify test code using overloaded eq operator (#3552)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 07:32:47 +0000 (16:32 +0900)]
[loco] Simplify test code using overloaded eq operator (#3552)

This commit rewrites test code which invokes value explicitly to use
overloaded eq operator (for simplicity).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco/ONNX] Introduce opset_version variable (#3550)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 21 May 2019 05:56:30 +0000 (14:56 +0900)]
[moco/ONNX] Introduce opset_version variable (#3550)

* [moco/ONNX] Introduce opset_version variable

This commit will introduce opset_version variable which will be used to divide operations
according to proper opset version

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

5 years ago[moco] remove unused node_names (#3553)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 05:46:17 +0000 (14:46 +0900)]
[moco] remove unused node_names (#3553)

This will remove 'not-used-anymore' node_names

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[hermes] Introduce Severity class (#3551)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 04:58:10 +0000 (13:58 +0900)]
[hermes] Introduce Severity class (#3551)

This commit introduces Severity class which denotes the severity of
each event.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco/tf] Converting functions for MaxPool2D (#3549)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 04:12:43 +0000 (13:12 +0900)]
[moco/tf] Converting functions for MaxPool2D (#3549)

This commit adds converting funtion for MaxPool2D.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[moco] use _table for name resolve (#3548)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 04:08:53 +0000 (13:08 +0900)]
[moco] use _table for name resolve (#3548)

This will change SymbolTable to use _table variable for name resolve

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[loco] Override eq operator over Dimension (#3545)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 03:55:52 +0000 (12:55 +0900)]
[loco] Override eq operator over Dimension (#3545)

* [loco] Override eq operator over Dimension

This commit implements eq operator overriding over Dimension.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Use explicit constants for test

5 years agoAdd hermes project (#3542)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 02:23:21 +0000 (11:23 +0900)]
Add hermes project (#3542)

This commit creates a directory for hermes logging framework with basic
template. Note that this commit just creates a directory and thus does
not include any actual implementation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco/ONNX] Change parameter of convert_graph (#3547)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 21 May 2019 02:11:20 +0000 (11:11 +0900)]
[moco/ONNX] Change parameter of convert_graph (#3547)

For checking opset version of ONNX, onnx ModelProto is needed.
But until now, convert_graph has GraphProto, not ModelProto.
This commit will pass ModelProto parameter instead of GraphProto

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
5 years ago[loco] Introduce shape helper method (#3544)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 21 May 2019 02:11:06 +0000 (11:11 +0900)]
[loco] Introduce shape helper method (#3544)

This commit extends Push and Pull node with shape helper method.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[moco] finalize node conversion inherit classes (#3546)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 02:10:01 +0000 (11:10 +0900)]
[moco] finalize node conversion inherit classes (#3546)

This will finalize GraphBuilder and GraphUpdate inherited classes

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] use GraphUpdate to set input (#3540)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 21 May 2019 02:08:26 +0000 (11:08 +0900)]
[moco] use GraphUpdate to set input (#3540)

This will change to use GraphUpdate to set inputs of the node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Implement UpdateQueue::enroll() (#3538)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 20 May 2019 22:17:14 +0000 (07:17 +0900)]
[moco] Implement UpdateQueue::enroll() (#3538)

This will add UpdateQueue::enroll() implementation

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Add UpdateQueue member (#3537)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 20 May 2019 09:29:12 +0000 (18:29 +0900)]
[moco] Add UpdateQueue member (#3537)

This will add UpdateQueue attribute in GraphBuilderContext

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Add two GraphUpdate inherits (#3536)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 20 May 2019 08:05:42 +0000 (17:05 +0900)]
[moco] Add two GraphUpdate inherits (#3536)

* [moco] Add two GraphUpdate inherits

This will add two GraphUpdate class inherits that needs graph update(input settings), Identity and Relu.

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

5 years ago[locomotiv] Session's graph input/output size (#3531)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 20 May 2019 07:38:23 +0000 (16:38 +0900)]
[locomotiv] Session's graph input/output size (#3531)

* [locomotiv] Session's graph input/output size

This commit introduces Session::input_size() and Session::output_size()
which are getter for graph input and output size it possesses.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Make them const method

* Use const variable for magic number

5 years ago[moco] add const method type (#3535)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 20 May 2019 07:32:27 +0000 (16:32 +0900)]
[moco] add const method type (#3535)

This will add const for method using const SymbolTable

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

This will introduce UpdageQueue class to store graph update objects

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[moco] Introduce GraphUpdate interface (#3525)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 20 May 2019 04:59:30 +0000 (13:59 +0900)]
[moco] Introduce GraphUpdate interface (#3525)

* [moco] Introduce GraphUpdate interface

This will introduce GraphUpdate interface

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

* add const

5 years agoVerify ONNXSource 1.4.1 archive checksum (#3528)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 May 2019 04:23:14 +0000 (13:23 +0900)]
Verify ONNXSource 1.4.1 archive checksum (#3528)

This commit updates ONNXSource 1.4.1 package to verify its archive after
download.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoVerify ONNXSource 1.3.0 archive checksum (#3527)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 May 2019 04:02:19 +0000 (13:02 +0900)]
Verify ONNXSource 1.3.0 archive checksum (#3527)

This commit updates ONNXSource 1.3.0 package to verify its archive after
downloading.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] How to use locomotiv (#3524)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 20 May 2019 04:02:09 +0000 (13:02 +0900)]
[locomotiv] How to use locomotiv (#3524)

* [locomotiv] How to use locomotiv

This commit introduces documentation for how to use locomotiv.

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

5 years ago[loco] Introduce Feature Permuting Codec (#3517)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 May 2019 03:43:35 +0000 (12:43 +0900)]
[loco] Introduce Feature Permuting Codec (#3517)

* [loco] Introduce Feature Permuting Codec

This commit implements a basic feature codec based on axis permutation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update comments & add a missing assert message

* Check whether permutation axes are all distinct

* Fix a typo (Encoder -> Decoder)

5 years ago[loco] Introduce IR verification infrastructure (#3526)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 May 2019 03:42:27 +0000 (12:42 +0900)]
[loco] Introduce IR verification infrastructure (#3526)

This commit introduces basic verifier infrastructure for loco.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoVerify downloaded archive (#3512)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 May 2019 03:20:56 +0000 (12:20 +0900)]
Verify downloaded archive (#3512)

With this commit, users are able to verify downloaded archive via
ExternalSource_Download with checksum.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce all_nodes helper (#3522)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 May 2019 00:45:47 +0000 (09:45 +0900)]
[loco] Introduce all_nodes helper (#3522)

This commit introduces all_nodes helper which allows users to enumerate
all the nodes in a given loco graph.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[locomotiv] Support ConstGen execution (#3498)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 17 May 2019 05:08:23 +0000 (14:08 +0900)]
[locomotiv] Support ConstGen execution (#3498)

This commit starts to support ConstGen node execution.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
5 years ago[locomotiv] How to support new node execution (#3484)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 17 May 2019 05:05:14 +0000 (14:05 +0900)]
[locomotiv] How to support new node execution (#3484)

* [locomotiv] How to support new node execution

This commit introduces a guide how to support new loco node execution.

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

5 years agoRemove version-less ONNXSource package (#3518)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 May 2019 03:57:36 +0000 (12:57 +0900)]
Remove version-less ONNXSource package (#3518)

This commit removes version-less ONNXSource package to prevent possible
versioning issue.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoUse a specific ONNX version in ONNXProto (#3513)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 May 2019 02:22:43 +0000 (11:22 +0900)]
Use a specific ONNX version in ONNXProto (#3513)

This commit updates ONNXProto CMake package to use a specific version of
ONNX source code (1.3.0).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[nnc] Use versioned ONNXSource package (#3515)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 May 2019 02:22:31 +0000 (11:22 +0900)]
[nnc] Use versioned ONNXSource package (#3515)

This commit updates nnc build script to find a specific version of
ONNXSource package.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years ago[loco] Introduce asserts inside postorder_traversal (#3506)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 May 2019 02:19:02 +0000 (11:19 +0900)]
[loco] Introduce asserts inside postorder_traversal (#3506)

This commit introduces several asserts inside postorder_traversal in
order to faciliate debugging.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
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