platform/core/ml/nnfw.git
4 years agoAdd to initialize a member of ConvolutionLayer of srcn (#9317)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 04:20:15 +0000 (13:20 +0900)]
Add to initialize a member of ConvolutionLayer of srcn (#9317)

This commit adds to initialize a member of ConvolutionLayer of srcn

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years agoChange GatherLayer's constructor of cpu to initialize members (#9315)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 03:58:09 +0000 (12:58 +0900)]
Change GatherLayer's constructor of cpu to initialize members (#9315)

This commit changes GatherLayer's constructor of cpu to initialize members

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[runtime/api] Update enum value comment (#9247)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 03:13:15 +0000 (12:13 +0900)]
[runtime/api] Update enum value comment (#9247)

Add more comment for each enum value

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Make ChromeTrace trace the entire graph (#9300)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 02:06:46 +0000 (11:06 +0900)]
[neurun] Make ChromeTrace trace the entire graph (#9300)

Make ChromeTrace trace the entire graph

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[CI/script] Introduce common function script (#9296)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Dec 2019 02:00:11 +0000 (11:00 +0900)]
[CI/script] Introduce common function script (#9296)

Introduce common function script infra/scripts/common.sh
Update x64 test script to use common function

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoPrevent overflow by cast in KernelGenerator of acl_cl (#9303)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 01:59:41 +0000 (10:59 +0900)]
Prevent overflow by cast in KernelGenerator of acl_cl (#9303)

This commit prevents overflow by cast in KernelGenerator of acl_cl.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Extract ThreadPool into a separate file (#9302)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 01:57:15 +0000 (10:57 +0900)]
[neurun] Extract ThreadPool into a separate file (#9302)

Extract ThreadPool into a separate file.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoMake backend acl_cl to support InstanceNorm op (#9301)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Dec 2019 01:56:03 +0000 (10:56 +0900)]
Make backend acl_cl to support InstanceNorm op (#9301)

This commit makes ackend acl_cl to support InstanceNorm op.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Replace Model with Graph in ExecEnv (#9287)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Mon, 2 Dec 2019 01:10:06 +0000 (04:10 +0300)]
[neurun] Replace Model with Graph in ExecEnv (#9287)

* Change `ExecEnv` to accept `Graph` instead of `Model`.
* Replace `ExecEnv::model` with `ExecEnv::graph`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Organise Chrome Trace data by backend (#9277)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 07:06:51 +0000 (16:06 +0900)]
[neurun] Organise Chrome Trace data by backend (#9277)

Organise Chrome Trace data by backend

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Use Graph instead of Model in tests (#9288)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 07:00:53 +0000 (10:00 +0300)]
[neurun] Use Graph instead of Model in tests (#9288)

Replace uses of `Model` class with equivalent uses of `Graph` class.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Replace IExecutor::model with IExecutor::graph (#9286)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 06:59:45 +0000 (09:59 +0300)]
[neurun] Replace IExecutor::model with IExecutor::graph (#9286)

Replace IExecutor::model (returning Model) with IExecutor::graph, which returns graph. Do the same in derived classes also.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years agoEnable model::Operand to copy (#9295)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 06:03:10 +0000 (15:03 +0900)]
Enable model::Operand to copy (#9295)

This commit enables model::Operand to copy.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Avoid using Model in nnapi frontend (#9231)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 04:41:33 +0000 (07:41 +0300)]
[neurun] Avoid using Model in nnapi frontend (#9231)

Create `Graph` early and use its methods instead of accessing `Model` fields.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[nnpackage_run] Make csv, memory poller options off (#9273)
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 03:59:26 +0000 (12:59 +0900)]
[nnpackage_run] Make csv, memory poller options off (#9273)

* [nnpackage_run] Make csv, memory poller options off

Make nnpackage_run's options 'csv & memory poller' off. It makes ci
slow.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Fix svace error

* Fix argument to write_report

4 years ago[nnpkg-run] generate random input for qint8 type (#9033)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 29 Nov 2019 03:57:21 +0000 (12:57 +0900)]
[nnpkg-run] generate random input for qint8 type (#9033)

nnpackage_run can generate random input for qint8 type input tensor.
Note that load and dump needs more work.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years agoChange OperationPass to use callback (#9285)
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 02:07:31 +0000 (11:07 +0900)]
Change OperationPass to use callback (#9285)

This commit change OperationPass to use callback.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
4 years ago[neurun] Fix uninitialized ctor (#9282)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 01:25:33 +0000 (10:25 +0900)]
[neurun] Fix uninitialized ctor (#9282)

Fix uninitialized ctor reported by SVACE.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Remove member backend of Job (#9281)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 01:24:41 +0000 (10:24 +0900)]
[neurun] Remove member backend of Job (#9281)

`Job` should not have a backend, and it is never used.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Extract WorkQueue into a separate file (#9279)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 29 Nov 2019 01:24:08 +0000 (10:24 +0900)]
[neurun] Extract WorkQueue into a separate file (#9279)

Extract WorkQueue into a separate file.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years agoAdd ndarray library (#7858)
Vladimir Plazun/AI Tools Lab /SRR/Engineer/Samsung Electronics [Fri, 29 Nov 2019 01:23:47 +0000 (04:23 +0300)]
Add ndarray library (#7858)

It's a library to work with multidimesional arrays
- make Shape::dim and Shape::rank non-constexpr due to c++11 defect
- make Strides::operator[] non-constexpr due to c++11 defect
- build ndarray with fPIC. Fixes gcc build

Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
Co-Authored-By: v-plazun <v.plazun@samsung.com>
4 years ago[tfinfo] Trimming each token before processing (#9249)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 28 Nov 2019 23:07:13 +0000 (08:07 +0900)]
[tfinfo] Trimming each token before processing (#9249)

This enables tfinfo to trim each token before processing.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[neurun] Avoid using Model in ExecManager (#9260)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 28 Nov 2019 11:57:52 +0000 (14:57 +0300)]
[neurun] Avoid using Model in ExecManager (#9260)

Pass Graph instead of Model to ExecManager.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[base_loader] base_loader can load a quantization parameter (#9274)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 28 Nov 2019 09:45:24 +0000 (18:45 +0900)]
[base_loader] base_loader can load a quantization parameter (#9274)

It enables to load quantization parameter where element size is 1.
That is, a pair of (scale, zero_point) is applied to a whole tensor values.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[neurun] Add notify calls for ParallelExecutor (#9272)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 28 Nov 2019 09:19:11 +0000 (18:19 +0900)]
[neurun] Add notify calls for ParallelExecutor (#9272)

Add notify calls for ParallelExecutor and this enables Chrome Tracing
for ParallelExecutor.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun/coverage] Set build source path for coverage report (#9245)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 28 Nov 2019 08:55:10 +0000 (17:55 +0900)]
[neurun/coverage] Set build source path for coverage report (#9245)

Set build source path
Build source path by gbs can be different with report host path

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun/cpu] Fix broadcast handling in HEScheduler (#9258)
Dilshodzhon Poshshoev/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 28 Nov 2019 08:16:55 +0000 (11:16 +0300)]
[neurun/cpu] Fix broadcast handling in HEScheduler (#9258)

Broadcast for Mul/Sub/Add isn't support on cpu backend. Add them to skip
condition and throw exception in ShapeFixer

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years ago[neurun] Add ChromeTrace to ParallelExecutor (#9270)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 28 Nov 2019 06:57:32 +0000 (15:57 +0900)]
[neurun] Add ChromeTrace to ParallelExecutor (#9270)

Add `ChromeTracingObserver` to `ParallelExecutor` which was only added
to `DataflowExecutor`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[rt/misc] Make EventRecorder thread-safe (#9268)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 28 Nov 2019 06:26:09 +0000 (15:26 +0900)]
[rt/misc] Make EventRecorder thread-safe (#9268)

Make EventRecorder thread-safe for parallel execution.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[rt/misc] nit: Hide `_str` (#9265)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 28 Nov 2019 06:08:38 +0000 (15:08 +0900)]
[rt/misc] nit: Hide `_str` (#9265)

Hide `_str` from other modules which is a helper of `str`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[cmake] Fix bug checking argument existance (#9267)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 28 Nov 2019 05:13:48 +0000 (14:13 +0900)]
[cmake] Fix bug checking argument existance (#9267)

Fix invalid argument check - check using DEFINED instead of value

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[cmake] Change external package rebuild policy (#9239)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 28 Nov 2019 04:18:48 +0000 (13:18 +0900)]
[cmake] Change external package rebuild policy (#9239)

* [cmake] Change external package rebuild policy

- Divide build stamp and install stamp
- Introduce identifier and check version
- Skip if build stamp exists (build success/fail on  workspace)
- Skip if install stamp exists (installed)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years agoImporved `command_exist()` to check the parameters. (#9193)
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 28 Nov 2019 02:09:33 +0000 (11:09 +0900)]
Imporved `command_exist()` to check the parameters. (#9193)

- Check if parameter exists and return error explicitly. Because the `commend -v` does not generate an error even if the parameter is null.

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
4 years ago[neurun] Avoid using Model in Executors (#9259)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 28 Nov 2019 01:58:13 +0000 (04:58 +0300)]
[neurun] Avoid using Model in Executors (#9259)

Pass Graph instead of Model, Subgraphs and LowerInfo to Executors.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[neurun] Dump Operand in order of OperandIndex (#9254)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 28 Nov 2019 01:57:31 +0000 (10:57 +0900)]
[neurun] Dump Operand in order of OperandIndex (#9254)

`Graph::lower` dumps operands but its order is random since it iterates
over the unordered container. This commit makes it to dump in the order
of operand index.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[neurun] Change some calls of Operation::name to Operation::opcode (#9261)
Sergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Thu, 28 Nov 2019 01:52:49 +0000 (04:52 +0300)]
[neurun] Change some calls of Operation::name to Operation::opcode (#9261)

Replace some calls to `Operation::name` with `Operation::opcode`.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
4 years ago[rt/misc] Merge str.h into string_helper.h (#9257)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 28 Nov 2019 01:06:46 +0000 (10:06 +0900)]
[rt/misc] Merge str.h into string_helper.h (#9257)

`str.h` was moved from another module and this commit merges it into
`string_helper.h`

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[res/TensorFlowTests] error case UI_0009 ~ UI_0012 (#9248)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 23:12:13 +0000 (08:12 +0900)]
[res/TensorFlowTests] error case UI_0009 ~ UI_0012 (#9248)

This adds error case UI_0009 ~ UI_0012.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[exo] Replacing throw to oops InternalExn (#9238)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 23:06:23 +0000 (08:06 +0900)]
[exo] Replacing throw to oops InternalExn (#9238)

This replaces throw statements to oops InternalExn.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[dredd-rule-lib] Adding README.md (#9048)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 23:00:33 +0000 (08:00 +0900)]
[dredd-rule-lib] Adding README.md (#9048)

* [dredd-rule-lib] Adding README.md

This adds README.md. This README.md will be referenced by other dredd-related sub-projects.

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

* liib -> lib

* better visual

* description about info file

* test.pb/info -> model.pb/info

4 years ago[runtime/api] Update nnfw_close_session comment (#9246)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 27 Nov 2019 12:29:16 +0000 (21:29 +0900)]
[runtime/api] Update nnfw_close_session comment (#9246)

- Fix doxygen format
- Update comment

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Fix DotDumper bug (#9253)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 27 Nov 2019 12:27:29 +0000 (21:27 +0900)]
[neurun] Fix DotDumper bug (#9253)

DotDumper crashes when it meets an operands that is never used by any
operation.

Fix #9229

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[exo] Remove unused header (#9244)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 07:47:08 +0000 (16:47 +0900)]
[exo] Remove unused header (#9244)

This removes unused header, #include <cassert>

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[gen_golden] support qint8 for tflite model (#9242)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 07:42:05 +0000 (16:42 +0900)]
[gen_golden] support qint8 for tflite model (#9242)

gen_golden generates uint8 [0, 255) random input for uint8 type.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[exo] Throw exception when building flatbuffer fails (#9243)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 07:30:24 +0000 (16:30 +0900)]
[exo] Throw exception when building flatbuffer fails (#9243)

This throws exception when building flatbuffer fails.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
4 years ago[heap_trace] Introduce tool for making heap trace (#9114)
Kuksov Pavel/AI Tools Lab /SRR/Staff Engineer/Samsung Electronics [Wed, 27 Nov 2019 07:23:12 +0000 (10:23 +0300)]
[heap_trace] Introduce tool for making heap trace (#9114)

This commit adds initial version of tool for making heap trace.
Now it can show:
 - peak memory usage on CPU and GPU separately in bytes
 - total allocated memory on CPU and GPU separately during analyzed code execution
 - total deallocated memory on CPU and GPU separately during analyzed code execution

Signed-off-by: Kuksov Pavel <p.kuksov@partner.samsung.com>
4 years ago[nnpkg_tool] Add missing copyright and license in *.{py,js} (#9234)
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Nov 2019 05:16:45 +0000 (14:16 +0900)]
[nnpkg_tool] Add missing copyright and license in *.{py,js} (#9234)

Add missing copyright and license in *.{py.js} under nnpackage_tool.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
4 years ago[neurun/gbs] Collect gcov data (#9100)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 27 Nov 2019 04:29:25 +0000 (13:29 +0900)]
[neurun/gbs] Collect gcov data (#9100)

- On gbs build, collect .gcno files and install with test package
- Set prefix strip on coverage test run
- Remove unused parameter in tizen_xu4_test.sh

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/api] Update nnfw_create_session comment (#9228)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 27 Nov 2019 01:41:45 +0000 (10:41 +0900)]
[runtime/api] Update nnfw_create_session comment (#9228)

* [runtime/api] Update nnfw_create_session comment

- Fix doxygen format
- Add more comment

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix comment

4 years agotf2circle dredd test for Squared Difference (#9218)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 27 Nov 2019 01:30:49 +0000 (10:30 +0900)]
tf2circle dredd test for Squared Difference (#9218)

This commit register tf2circle dredd test for Squared Difference unit
test. It checks whether tf2circle generates Squared Difference.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
4 years ago[nncc/pkg] Release build for packaging (#9222)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 27 Nov 2019 01:06:17 +0000 (10:06 +0900)]
[nncc/pkg] Release build for packaging (#9222)

Use release build for nncc packaging

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[runtime/api] Update nnfw_tensorinfo (#9224)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 27 Nov 2019 01:05:37 +0000 (10:05 +0900)]
[runtime/api] Update nnfw_tensorinfo (#9224)

Merge typedef and struct definition
Add comment for nnfw_tensorinfo

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[cmake] Introduce external package build helper (#9210)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 27 Nov 2019 01:05:22 +0000 (10:05 +0900)]
[cmake] Introduce external package build helper (#9210)

Introduce cmake helper function for external package build and install in overlay directory

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[neurun] Print better name in Chrome Trace (#9227)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 27 Nov 2019 01:01:02 +0000 (10:01 +0900)]
[neurun] Print better name in Chrome Trace (#9227)

Before it dumped "Subgraph" for all node

- 0 Operations : `Empty Subgraph`
- 1 Operations : `${FirstOpIndex} ${FirstOpName}`
- 2 or more Operations : `${FirstOpIndex} ${FirstOpName}
  (+${NumOps - 1})`

For example, if there are 5 operations and the first one is Add
operation with index 3, it dumps `$0 Add +4`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[moco-tf] Use oops for Conv2DBackpropInputCanonicalizer (#9207)
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 26 Nov 2019 23:35:25 +0000 (08:35 +0900)]
[moco-tf] Use oops for Conv2DBackpropInputCanonicalizer (#9207)

* [moco-tf] Use oops for Conv2DBackpropInputCanonicalizer

This will update Conv2DBackpropInputCanonicalizer to use oops
- modify internal methods to handle error a bit easier

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

4 years ago[docs] Fix project documentation (#9187)
Alexander Efimov/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 26 Nov 2019 16:12:07 +0000 (19:12 +0300)]
[docs] Fix project documentation (#9187)

Fix unit test report and system test document:
- added commit information
- fixed actual dates
- fixed typos

Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
4 years ago [neurun/cpu] Add mul and unify add/sub/mul (#9184)
Dilshodzhon Poshshoev/AI Tools Lab /SRR/Engineer/Samsung Electronics [Tue, 26 Nov 2019 12:24:50 +0000 (15:24 +0300)]
 [neurun/cpu] Add mul and unify add/sub/mul  (#9184)

* [neurun/cpu] Add mull and unify add/sub/mul

Create a unified function that is used for all of add/sub/mul

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
* Address review feedbacks

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
4 years ago[neurun] Remove Subgraph::name override (#9220)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 09:22:04 +0000 (18:22 +0900)]
[neurun] Remove Subgraph::name override (#9220)

We do not need to have an override for Subgraph::name.
This should have been done in #9005.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
4 years ago[nncc/pkg] Remove skip configure and build (#9215)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 26 Nov 2019 07:47:43 +0000 (16:47 +0900)]
[nncc/pkg] Remove skip configure and build (#9215)

Remove skip configure and skip build option on package build
We can pass build option using '--', so don't need to use command for additional configuration

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[exo] Comment for with_commutative_args_of() (#9217)
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 26 Nov 2019 07:43:56 +0000 (16:43 +0900)]
[exo] Comment for with_commutative_args_of() (#9217)

This commit adds comment for `with_commutative_args_of()` helper

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
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>