platform/core/ml/nnfw.git
4 years ago[neurun] Change param type of ExecutionObserver (#9209)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 05:46:13 +0000 (14:46 +0900)]
[neurun] Change param type of ExecutionObserver (#9209)

Let ExecutionObserver's handler functions accept `Subgraph` rather than
`Operation` since the execution unit is Subgraph.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[gen_golden] support tflite (#9101)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 05:32:35 +0000 (14:32 +0900)]
[gen_golden] support tflite (#9101)

Now, gen_golden can genereates input from tflite model.

- `gen_golden` will generate golden data based on input file's extension name.

- To support both in tensorflow and tensorflow flite, tensorflow-specific
data structure is factored out into tensor {name/value/dtype}.

- `gen_golden` does not support selecting a subgraph like pb model.
 : Use `tflite_filetool` in our repository for that purpose

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years agoImproved checking of running environments. (#9197)
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 05:31:38 +0000 (14:31 +0900)]
Improved checking of running environments. (#9197)

- Check if `$flatc` path is executable.
- Check if `*.fbs` files actually exists.

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
4 years ago[neurun/loader] Add mapping Tensor index -> OperandIndex (#9199)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 26 Nov 2019 05:20:53 +0000 (08:20 +0300)]
[neurun/loader] Add mapping Tensor index -> OperandIndex (#9199)

Previous behavior relied on `OperandIndex`es being sequentially generated from 0 to n when calling `graph.addOperand()`.
The change will allow to switch to pointer-based operands.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[moco-tf] Use oops for RsqrtCanonicalizer (#9208)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 04:36:48 +0000 (13:36 +0900)]
[moco-tf] Use oops for RsqrtCanonicalizer (#9208)

This will update RsqrtCanonicalizer to use oops
- modify internal method to handle error a bit easier

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[neurun] Support Tracing in LinearExecutor (#9183)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 04:27:33 +0000 (13:27 +0900)]
[neurun] Support Tracing in LinearExecutor (#9183)

Support Tracing in LinearExecutor

- Let LinearExecutor have info along with functions
- Make use of Observee object

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[oops] Enabling constructor of UserExn to get pairs of attr, val (#9196)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 04:14:31 +0000 (13:14 +0900)]
[oops] Enabling constructor of UserExn to get pairs of attr, val (#9196)

* [oops] Enabling constructor of UserExn to get pairs of attr, val

This enables constructor of UserExn to get pairs of attr and val.

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

* split one fat test into two lean tests

* stringstream, which is temporarily used to build msg, as param

* leave build_info with const type only

* _out -> out

4 years ago[moco-tf] Use oops for ConcatV2Canonicalizer (#9206)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 04:09:39 +0000 (13:09 +0900)]
[moco-tf] Use oops for ConcatV2Canonicalizer (#9206)

* [moco-tf] Use oops for ConcatV2Canonicalizer

This will update ConcatV2Canonicalizer to use oops
- modify internal method to handle error a bit easier

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

4 years agoRemove param frontend_layout from registering tensor info (#9205)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 03:50:48 +0000 (12:50 +0900)]
Remove param frontend_layout from registering tensor info (#9205)

This commit removes param frontend_layout from registering tensor info.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[rt/misc] Do not flush buffer when Event Recording (#9198)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 03:50:06 +0000 (12:50 +0900)]
[rt/misc] Do not flush buffer when Event Recording (#9198)

EventRecorder does not have to flush buffer while recording an event.
Flushing buffer every time may cause unnecessary overhead.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[res/TF] Circle rule for SquaredDifference (#9195)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 03:45:09 +0000 (12:45 +0900)]
[res/TF] Circle rule for SquaredDifference (#9195)

* [res/TF] Circle rule for SquaredDifference

This commit adds rule file to verify SquaredDifference operation is not
divided in circle file.

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

4 years ago[exo] fix typo (#9204)
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 03:28:32 +0000 (12:28 +0900)]
[exo] fix typo (#9204)

This commit fixes a typo in exo.

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
4 years ago[moco-tf] Fix for ui_0004 seg-fault (#9185)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 03:19:17 +0000 (12:19 +0900)]
[moco-tf] Fix for ui_0004 seg-fault (#9185)

This will handle invalid info file error as oops::UserExn

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[nncc-pkg] Pass extra package build option (#9174)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 26 Nov 2019 01:56:25 +0000 (10:56 +0900)]
[nncc-pkg] Pass extra package build option (#9174)

Pass extra package build option by using '--'
CI infra use this parameter setting for external volume setting

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[exo] Refactor to ExoOptimize (#9194)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 01:55:24 +0000 (10:55 +0900)]
[exo] Refactor to ExoOptimize (#9194)

This commit refactor file name: TFLOptimize > ExoOptimize.
Rationale: the optimize stage is not dedicated only to TFLite, but also
both exo backend TFLite and Circle.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoNET_0028(IN) dredd testcase for tf2circle (#9190)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 01:25:54 +0000 (10:25 +0900)]
NET_0028(IN) dredd testcase for tf2circle (#9190)

This commit registers NET_0028(Instance Norm pattern) dredd testcase for
tf2circle. It tests whether tf2circle can fuse Instance Norm pattern.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[tf2circle-ui-check] Update README.md (#9179)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 26 Nov 2019 01:08:11 +0000 (10:08 +0900)]
[tf2circle-ui-check] Update README.md (#9179)

The instruction in README.md is incorrect.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoFix clang build issue (#9192)
Vladimir Plazun/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 26 Nov 2019 00:49:23 +0000 (03:49 +0300)]
Fix clang build issue (#9192)

Clang 10 does not support no-psabi flag ,so build fails due to Werror flag set

Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
4 years ago[exo] Remove deprecated CommutativeArgsGetter (#9188)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 23:02:02 +0000 (08:02 +0900)]
[exo] Remove deprecated CommutativeArgsGetter (#9188)

This commit removes deprecated `CommutativeArgsGetter`. This is replaced
by `NodeFiller`. Comment for helper also updated.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[neurun/cpu] Add constant pad for float data type (#9159)
Dilshodzhon Poshshoev/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 25 Nov 2019 11:44:33 +0000 (14:44 +0300)]
[neurun/cpu] Add constant pad for float data type (#9159)

Add pad operation on cpu backend for float data type

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years agoRemove registering tensor info from ShapeFixer of srcn (#9191)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 11:39:48 +0000 (20:39 +0900)]
Remove registering tensor info from ShapeFixer of srcn (#9191)

This commit removes registering tensor info from ShapeFixer of srcn.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Remove unused variable (#9160)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 25 Nov 2019 11:35:05 +0000 (14:35 +0300)]
[neurun] Remove unused variable (#9160)

Remove unused private variable `_elements` in `LinearExecutor`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun/loader] Use Operand::asVector for extracting values (#9077)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 25 Nov 2019 09:41:41 +0000 (12:41 +0300)]
[neurun/loader] Use Operand::asVector for extracting values (#9077)

Use `Operand::asVector` to extract values from constant operands. As a result of the change, `_op_to_subgraph` is no longer needed.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoReplace resistering tensors with using TensorRegister (#9158)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 09:40:08 +0000 (18:40 +0900)]
Replace resistering tensors with using TensorRegister (#9158)

This commit replaces resistering tensors with using TensorRegister.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[exo] Refactor to fill() (#9170)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 09:38:37 +0000 (18:38 +0900)]
[exo] Refactor to fill() (#9170)

This commit do following refactoring:
Before: `commutative_args_of(node).is(arg1, arg2)`
After : `fill(&arg1, &arg2).with_commutative_args_of(node)`

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoDump manifest for tf2circle UI check (#9176)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 09:38:23 +0000 (18:38 +0900)]
Dump manifest for tf2circle UI check (#9176)

This commit dumps test manifest for each test case of
tf2circe UI check

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[tf2circle] setenv for knobs required for Instance Norm fusion (#9172)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 09:34:18 +0000 (18:34 +0900)]
[tf2circle] setenv for knobs required for Instance Norm fusion (#9172)

This commit sets environment variable turned on for following knobs
in tf2circle:
- EXO_UseFuseInstanceNormPass
- EXO_UseFuseSquaredDifferencePass

These knobs are required to fuse Instance Norm pattern.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[moco-tf] Use oops for error msg (#9171)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 09:18:21 +0000 (18:18 +0900)]
[moco-tf] Use oops for error msg (#9171)

* [moco-tf] Use oops for error msg

This will update to use oops for error msg and refines some error messages

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

4 years ago[neurun] Eliminate OperandIndex in Reduce*::Param (#9008)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 25 Nov 2019 08:26:09 +0000 (11:26 +0300)]
[neurun] Eliminate OperandIndex in Reduce*::Param (#9008)

Replace `Param::axis_index` of type `OperandIndex` with `Param::axes` of type `vector<int>`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[exo] Register Instance Norm fuse (#9169)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 07:07:55 +0000 (16:07 +0900)]
[exo] Register Instance Norm fuse (#9169)

This commit registers Instance norm fusion to exo optimize pass

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[tf2circle-value-pbtxt-remote-test] Introduce circle value verification (#9074)
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 06:36:01 +0000 (15:36 +0900)]
[tf2circle-value-pbtxt-remote-test] Introduce circle value verification (#9074)

This commit will introduce `tf2circle-value-pbtxt-remote-test`,
which is for verifying circle value.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
4 years ago[res/TensorFlowTests] test cases to check errors (continued) (#9168)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 06:12:28 +0000 (15:12 +0900)]
[res/TensorFlowTests] test cases to check errors (continued) (#9168)

This is test cases for wrong model or info files.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[packaging] Add oops and pepper-assert (#9150)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 05:03:28 +0000 (14:03 +0900)]
[packaging] Add oops and pepper-assert (#9150)

* [packaging] Add oops and pepper-assert

This will add recently added oops and pepper-assert project to Release package build list

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

4 years ago[exo] Knob for fusing Instance Norm (#9166)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 04:52:26 +0000 (13:52 +0900)]
[exo] Knob for fusing Instance Norm (#9166)

This commit introduces UseFuseInstanceNormPass knob

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[moco-lang] Refine error message with header (#9152)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 03:20:15 +0000 (12:20 +0900)]
[moco-lang] Refine error message with header (#9152)

This will add comments and refine error message in headers

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-import] Refine error handling in validate and build (#9149)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 03:15:24 +0000 (12:15 +0900)]
[moco-import] Refine error handling in validate and build (#9149)

This will refine error handling way and message in validate and build methods

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-support] Refine error with oops (#9156)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 03:14:09 +0000 (12:14 +0900)]
[moco-support] Refine error with oops (#9156)

* [moco-support] Refine error with oops

This will refine error messages with oops

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

* use macro

4 years ago[moco-svc] Refine error with oops (#9154)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 03:13:41 +0000 (12:13 +0900)]
[moco-svc] Refine error with oops (#9154)

This will refine error message with oops

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[exo] Alternative helper for commutative args (#9140)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 02:00:41 +0000 (11:00 +0900)]
[exo] Alternative helper for commutative args (#9140)

* [exo] Alternative helper for commutative args

This commit introduces alternative helper to extract and set commutative
argument of the node.

Current:
`bool ok = commutative_args_of(node).is(arg1, arg2);`

Suggested alternative:
`bool ok = set(&arg1, &arg2).with_commutative_args_of(node);`

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

4 years agoApply copying for permuteInit of ConstantInitializer (#9147)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 01:51:26 +0000 (10:51 +0900)]
Apply copying for permuteInit of ConstantInitializer (#9147)

This commit applies copying for permuteInit of ConstantInitializer.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun/api] Comment for nnfw_session (#9137)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 25 Nov 2019 01:43:16 +0000 (10:43 +0900)]
[neurun/api] Comment for nnfw_session (#9137)

Add more comment for nnfw_session
It contains brief how to use nnfw_session for inference

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[moco-pass] Refine error with oops (#9153)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 01:41:13 +0000 (10:41 +0900)]
[moco-pass] Refine error with oops (#9153)

This will refine error message using oops

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[moco-import] Refine error message using oops (#9151)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 01:34:28 +0000 (10:34 +0900)]
[moco-import] Refine error message using oops (#9151)

* [moco-import] Refine error message using oops

This will refine error handling and message using oops for GraphBuilderContext and others

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

4 years ago[moco] Update requires with oops (#9155)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 11:09:15 +0000 (20:09 +0900)]
[moco] Update requires with oops (#9155)

This will add oops target to moco requires.cmake

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years agoIntroduce TensorRegister into BackendContext (#9148)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 10:39:19 +0000 (19:39 +0900)]
Introduce TensorRegister into BackendContext (#9148)

This commit introduces TensorRegister into BackendContext.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[runtime/CI] Use BACKENDS envvar to select backend (#9143)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 10:38:38 +0000 (19:38 +0900)]
[runtime/CI] Use BACKENDS envvar to select backend (#9143)

To select backend, use BACKENDS Instead of OP_BACKENDS_ALLOPS

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Introduce ChromeTracingObserver (#9113)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 09:43:23 +0000 (18:43 +0900)]
[neurun] Introduce ChromeTracingObserver (#9113)

Introduce Chrome Tracing Observer and bind with DataflowExecutor.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[moco-import] Fix AvgPool for error handling (#9144)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 08:31:20 +0000 (17:31 +0900)]
[moco-import] Fix AvgPool for error handling (#9144)

This will change error handling for AvgPool import to throw for invalid input model instead of using assert, which will do nothing in Release build. Error checking in build() method is also moved to validate() method as the responsibility is in validate().

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[enco] Resolve warning in release configuration (#9145)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 08:16:33 +0000 (17:16 +0900)]
[enco] Resolve warning in release configuration (#9145)

This commit resolve all the compiler warnings in enco codebase.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[exo] 1st try to replace throw to oops (#9142)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 08:12:41 +0000 (17:12 +0900)]
[exo] 1st try to replace throw to oops (#9142)

This is the start of replacing throw to oops message for exo.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[coco] Fix Build Warnings in Release Configuration (#9138)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:46:56 +0000 (16:46 +0900)]
[coco] Fix Build Warnings in Release Configuration (#9138)

This commit resolves build warnings in release configuration.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[exo] Fuse Instance Norm logic (#9103)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 07:45:20 +0000 (16:45 +0900)]
[exo] Fuse Instance Norm logic (#9103)

This commit implements logic for Instance Norm fusion.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[tf2circle-ui-check] Print tf2circle's exitcode (#9128)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:33:28 +0000 (16:33 +0900)]
[tf2circle-ui-check] Print tf2circle's exitcode (#9128)

The current implementation shows the exitcode of the last "echo"
command, and thus it always print 0.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoIntroduce tf2circle internal error handler (#9129)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:33:07 +0000 (16:33 +0900)]
Introduce tf2circle internal error handler (#9129)

This commit implements the basic infrastructure for handling internal
errors.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoMove logging of FillOperandData to the time filling data (#9139)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 07:24:23 +0000 (16:24 +0900)]
Move logging of FillOperandData to the time filling data (#9139)

This commit moves logging of FillOperandData to the time filling data.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Introduce an API to set which backends to use (#9099)
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:13:20 +0000 (16:13 +0900)]
[neurun] Introduce an API to set which backends to use (#9099)

* [neurun] Introduce an API to set which backends to use

Define `nnfw_set_preferred_backends` API to set `BACKENDS` configuration variable
- Only the backends specified at `BACKENDS` are loaded on prepare phase

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
* Rename nnfw_set_default_backend to nnfw_set_available_backends

nnfw_set_available_backends set BACKENDS

4 years ago[docs] Update System Test Document (STD) (#9079)
Alexander Efimov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 22 Nov 2019 06:50:38 +0000 (09:50 +0300)]
[docs] Update System Test Document (STD) (#9079)

Added output of NN Compiler and NN Runtime system tests

Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
4 years ago[exo] Supported export Fully Connected node (#9017)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 22 Nov 2019 06:50:05 +0000 (09:50 +0300)]
[exo] Supported export Fully Connected node (#9017)

* Created TFLFullyConnected node on exo dialect
* Added TypeInference and ShapeInference for this node
* Created MatMulConverter
* Added some helpers with MatrixEncode and MatrixDecode

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[neurun/benchmark] Use linear scheduler for operator kernel test (#9133)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 06:48:51 +0000 (15:48 +0900)]
[neurun/benchmark] Use linear scheduler for operator kernel test (#9133)

Operator kernel test don't need to check each scheduler's performance, so use linear only

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoIntroduce pepper-assert (#9124)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 06:23:51 +0000 (15:23 +0900)]
Introduce pepper-assert (#9124)

This commit introduces "pepper-assert" library. This library will
provides various helpers that makes it easy to manage asserts in
the code base.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years ago[gen_golden] replace deprecated tf.ConfigProto (#9131)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 05:05:54 +0000 (14:05 +0900)]
[gen_golden] replace deprecated tf.ConfigProto (#9131)

tf.Config.Proto is deprecated. I replaced it with tf.compat.v1.Proto.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[nncc] Skeleton of README.md for nncc in nnas SDK 1.0 (#9034)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 03:09:22 +0000 (12:09 +0900)]
[nncc] Skeleton of README.md for nncc in nnas SDK 1.0 (#9034)

* [nncc] Skeleton of README.md for SDK 1.0

This is a skeleton README document for SDK 1.0.
Note that main readers are developers who want to compile Tensorflow models.
Please, write any part you want to write after making an issue.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* adding contents about nnpackage

* explaining nnas sdk

* NNCC to nncc

* numbering on section

* moving license into 1. nnas SDK 1.0

* added semantic versioning. Changed version 1.0 to 1.0.0

4 years ago[gen_golden] suppress warnings (#9097)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 02:55:29 +0000 (11:55 +0900)]
[gen_golden] suppress warnings (#9097)

It suppresses two kinds of warnings:

- Future warnings
- TensorFlow Information

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[gen_golden] Dynamically allocate GPU memory for TensorFlow (#9125)
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 02:55:03 +0000 (11:55 +0900)]
[gen_golden] Dynamically allocate GPU memory for TensorFlow (#9125)

Without this PR, running gen_golden.py on nvidia-docker produces errors

Setting one gpu option for session
- `config.gpu_options.allow_growth = True`

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
4 years ago[moco-tf] Fix typo scalar (#9123)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 02:26:07 +0000 (11:26 +0900)]
[moco-tf] Fix typo scalar (#9123)

This will fix scalar type in ConcatV2Canonicalizer

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[neurun] Do not use name to check Operation type (#9110)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 01:07:37 +0000 (10:07 +0900)]
[neurun] Do not use name to check Operation type (#9110)

Do not use name to check Operation type, use OpCode instead

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[tf2circle-ui-check] fix typos (#9111)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 01:05:22 +0000 (10:05 +0900)]
[tf2circle-ui-check] fix typos (#9111)

Fix types from "circel" to "circle".

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years agoIntroduce TensorRegister registering tensor info of cpu (#9108)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 01:00:54 +0000 (10:00 +0900)]
Introduce TensorRegister registering tensor info of cpu (#9108)

This comit introduces TensorRegister registering tensor info of cpu.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoIntroduce TensorRegister registering tensor info of srcn (#9107)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 01:00:31 +0000 (10:00 +0900)]
Introduce TensorRegister registering tensor info of srcn (#9107)

This commit introduces TensorRegister registering tensor info of srcn.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[res/TensorFlowTests] Wrong models: UI_0002, UI_0003 (#9109)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 01:00:16 +0000 (10:00 +0900)]
[res/TensorFlowTests] Wrong models: UI_0002, UI_0003 (#9109)

This adds two wrong models:
- UI_0002: Cannot find node whose name is input node name of Conv2D
- UI_0003: two nodes have the same name

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years agoIntroduce AclTensorRegister registering tensor info of acl (#9106)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 00:59:37 +0000 (09:59 +0900)]
Introduce AclTensorRegister registering tensor info of acl (#9106)

This commit introduces Introduce AclTensorRegister registering tensor info of acl.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[docs] Added Unit Test Report (#9080)
Alexander Efimov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 20:13:13 +0000 (23:13 +0300)]
[docs] Added Unit Test Report (#9080)

Added UTR for DR2

Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
4 years ago[nnc] Supported HardSwish operation on Interpreter (#9118)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 17:24:01 +0000 (20:24 +0300)]
[nnc] Supported HardSwish operation on Interpreter (#9118)

* Implemented realization of HardSwishOp on iterpreter

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[mir-tflite-importer] Supported HardSwish operation on tflite frontend (#9119)
Pavel Iliutchenko/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 17:16:07 +0000 (20:16 +0300)]
[mir-tflite-importer] Supported HardSwish operation on tflite frontend (#9119)

* Implemented HardSwishOp converter on tflite frontend

Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
4 years ago[nnc] Fix compiler warnings (#9117)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 16:30:50 +0000 (19:30 +0300)]
[nnc] Fix compiler warnings (#9117)

Fix compiler warnings breaking release build.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[mir] Fix compiler warnings (#9115)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 16:30:13 +0000 (19:30 +0300)]
[mir] Fix compiler warnings (#9115)

Fix a couple compiler warnings breaking release build.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[adtidas] Fix compiler warnings (#9116)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 16:29:58 +0000 (19:29 +0300)]
[adtidas] Fix compiler warnings (#9116)

Fix compiler warnings breaking release build.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[compiler] Introducing oops (user exception, internal exception) (#9063)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 11:04:01 +0000 (20:04 +0900)]
[compiler] Introducing oops (user exception, internal exception) (#9063)

* [compiler] Introducing oops

_oops_ is a project for user exception and internal exception.

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

* internalExn takes FILE, LINE, then msg

* separator typo

* preparing 4 variables

4 years ago[neurun] Introduce SUBG_MAX_NODE feature (#9085)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 10:31:28 +0000 (19:31 +0900)]
[neurun] Introduce SUBG_MAX_NODE feature (#9085)

* [neurun] Introduce SUBG_MAX_NODE feature

Introduce SUBG_MAX_NODE feature on lower phase
- SUBG_MAX_NODE=n : a subg has a maximum of n node
- SUBG_MAX_NODE=0(default) : a subg has a node or nodes without limit

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* cast by static_cast

4 years ago[exo] Clarify commutative_args_of(...).is(...) intension (#9092)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 10:09:34 +0000 (19:09 +0900)]
[exo] Clarify commutative_args_of(...).is(...) intension (#9092)

* [exo] Clarify commutative_args_of(...).is(...) intension

There has been confusion on meaning and usage of helper
`commutative_args_of(...).is(...)`. This commit tries to clarify them.

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

4 years agoIntroduce ITensorRegister registering tensor info (#9089)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 09:11:18 +0000 (18:11 +0900)]
Introduce ITensorRegister registering tensor info (#9089)

This commit instroduces ITensorRegister registering tensor info.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[dredd-rule-lib] Enhancing rule-lib.sh (#9102)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 08:58:32 +0000 (17:58 +0900)]
[dredd-rule-lib] Enhancing rule-lib.sh (#9102)

This enhances rule-lib.sh: 1) error check with function (for clean code) 2) replacing `grep .. | wc -l` with `grep -c` (-c is for counting), 3) processing grep error when exit code is not 0

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[neurun] Refactor too big Graph::lower() (#9087)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:37:39 +0000 (17:37 +0900)]
[neurun] Refactor too big Graph::lower() (#9087)

Separate Graph::lower() into multiple methods such as makeSubgraphs and
manipulateLowerInfo

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
4 years ago[exo] Refactor to is_1D_with_dummy_dim() (#9096)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:18:03 +0000 (17:18 +0900)]
[exo] Refactor to is_1D_with_dummy_dim() (#9096)

This commit refactors:
`is_1D_with_dummy_rank()` to `is_1D_with_dummy_dim()`

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] CommutativeArgsGetter::is() implementation (#9093)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:08:09 +0000 (17:08 +0900)]
[exo] CommutativeArgsGetter::is() implementation (#9093)

This commit introduces implementation of CommutativeArgsGetter::is()

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] is_instance_mean() implementation (#9095)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:07:49 +0000 (17:07 +0900)]
[exo] is_instance_mean() implementation (#9095)

This commit implements `is_instance_mean()` helper

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[res/TensorFlowTests] UI_000: wrong network (kernel is missing in Conv2D) (#9091)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 08:00:05 +0000 (17:00 +0900)]
[res/TensorFlowTests] UI_000: wrong network (kernel is missing in Conv2D) (#9091)

This is a wrong network (kernel is missing in Conv2D) to see error message of the compiler.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[exo] is_1D_with_dummy_rank() implementation (#9094)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 07:27:21 +0000 (16:27 +0900)]
[exo] is_1D_with_dummy_rank() implementation (#9094)

This commit implements `is_1D_with_dummy_rank()` helper

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoIntroduce tf2circle-ui-check (#9083)
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 21 Nov 2019 07:05:22 +0000 (16:05 +0900)]
Introduce tf2circle-ui-check (#9083)

tf2circle-ui-check makes it easy to check the console output of
tf2circle for each testcases.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
4 years agoFix wrong calculating strides of srcn backend (#9073)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 06:58:58 +0000 (15:58 +0900)]
Fix wrong calculating strides of srcn backend (#9073)

This commit fixeswrong calculating strides of srcn backend.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Simplify code using Operand::asVector (#9038)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 06:58:07 +0000 (09:58 +0300)]
[neurun] Simplify code using Operand::asVector (#9038)

Simplify code using newly introduced `Operand::asVector`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[exo] Instance Norm pattern match logic (#9054)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 06:09:37 +0000 (15:09 +0900)]
[exo] Instance Norm pattern match logic (#9054)

This commit implements Instance Norm pattern match logic. Used helper
function's detail not implemented yet.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[exo] Refactor knob and log prefix (#9059)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 05:11:12 +0000 (14:11 +0900)]
[exo] Refactor knob and log prefix (#9059)

This commit refactors prefix 'EXOTFLITE_' to 'EXO_' as knob and log
structrue is not only for exo-tflite, but about all exo.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years agoSeparate benchmark scripts for neurun and pacl (#8945)
Dilshodzhon Poshshoev/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 21 Nov 2019 04:09:34 +0000 (07:09 +0300)]
Separate benchmark scripts for neurun and pacl (#8945)

1. Rename run_benchmark_op.sh to run_benchmark_pacl.sh
2. Change run_benchmark.sh to use neurun
3. run_benchmark.sh can handle --benchmark_op option using neurun (porting from run_benchmark_pacl.sh)
4. Remove LD_LIBRARY_PATH from usage msg
5. Append _neurun to script name

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years ago[exo] Fix for unused variables in Release build (#9081)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 03:04:48 +0000 (12:04 +0900)]
[exo] Fix for unused variables in Release build (#9081)

* [exo] Fix for unused variables in Release build

This will fix unused variables warning/error in Release build

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

4 years ago[neurun] Apply nnfw_benchmark_lib to nnpackage_run and tflite_run (#9046)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 02:01:13 +0000 (11:01 +0900)]
[neurun] Apply nnfw_benchmark_lib to nnpackage_run and tflite_run (#9046)

Apply nnfw_benchmark_lib to nnpackage_run and tflite_run

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
4 years ago[cwrap] Fix unused function for Rel build (#9071)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 00:51:52 +0000 (09:51 +0900)]
[cwrap] Fix unused function for Rel build (#9071)

This will fix unused function warning/error for Release build

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Remove use of type_index (#9072)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 00:51:15 +0000 (09:51 +0900)]
[neurun] Remove use of type_index (#9072)

Now that we have OpCode, we do not need type_index.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[moco-import] Fix for unused variables in Release build (#9069)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 22:10:40 +0000 (07:10 +0900)]
[moco-import] Fix for unused variables in Release build (#9069)

This will fix unused variabled warning/error in Release build

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
4 years ago[neurun] Refine BackendManager ctor (#9058)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 12:00:12 +0000 (21:00 +0900)]
[neurun] Refine BackendManager ctor (#9058)

- Use `split` helper function rather than directly parsing
- Use container's `empty()` method rather than checking size is 0

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>