이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 13 Aug 2019 05:57:57 +0000 (14:57 +0900)]
[neurun] Implement nnfw_input/output_tensorinfo (#6530)
nnfw_input_tensorinfo and nnfw_output_tensorinfo are implemented.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 13 Aug 2019 05:28:47 +0000 (14:28 +0900)]
Apply layout for helper functions converting axis values (#6528)
This commit applies layout for helper functions converting axis values.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 13 Aug 2019 04:52:01 +0000 (13:52 +0900)]
[moco-tf] Clear ConcatV2 fix shape (#6523)
This will erase ConcatV2 fix shape to reduce complexity of diff for migration to using VariadicArityNode
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 13 Aug 2019 04:50:54 +0000 (13:50 +0900)]
[mocotest-tf] Test script runnable from any directory (#6529)
Previously test script partially assumes it runs on WORKDIR, which makes
no harm at all. This commit just explicitly call file path including
WORKDIR to be matched with other lines convention and to be runnable from
any directory.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 13 Aug 2019 03:51:51 +0000 (12:51 +0900)]
[loco] Inference service for EltwiseSqrt (#6526)
This will add Shape and Type inference for EltwiseSqrt
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 13 Aug 2019 01:51:50 +0000 (10:51 +0900)]
[neurun] Implement nnfw_input_size and nnfw_output_size (#6495)
* [neurun] Implement nnfw_input_size and nnfw_output_size
This patch implements nnfw_input_size and nnfw_output_size.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
* [neurun] Update int to uint32_t for input/output_size
This patch updates int to uint32_t for input/output_size.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 13 Aug 2019 01:48:24 +0000 (10:48 +0900)]
Set lcov's gcov-tool param (#6525)
For cross build, set lcov's gcov-tool by GCOV_PATH environment variable. Default is gcov (native build).
nnfw's gen-coverage-report has same feature
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 13 Aug 2019 01:47:12 +0000 (10:47 +0900)]
[moco-tf] Clear ConcatV2 import test (#6522)
This will erase ConcatV2 TF dialect import test to reduce complexity of diff for migration to using VariadicArityNode
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 13 Aug 2019 01:41:07 +0000 (10:41 +0900)]
[tf2tflite] Test script runnable from any directory (#6514)
Previously test script partially assumes it runs on WORKDIR, which makes
no harm at all. This commit just explicitly call file path including WORKDIR
to be matched with other lines convention and to be runnable from any directory.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 13 Aug 2019 01:34:00 +0000 (10:34 +0900)]
[loco] Using FixedReshape (#6496)
This commit introduces alias for Reshape<ReshapeType::Fixed> loco node.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 13 Aug 2019 01:29:47 +0000 (10:29 +0900)]
[loco] Introduce EltwiseSqrt (#6520)
This will introduce IR for elementwise Sqrt
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 13 Aug 2019 01:05:28 +0000 (10:05 +0900)]
[mlapse-tfl] Implement a command-line argument parser (#6512)
This commit implements a command-line argument parse for mlapse-tfl.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 13 Aug 2019 00:40:56 +0000 (09:40 +0900)]
Fix deadlock when access two acl_cl at once (#6500)
To avoid deadlock when operation need to access two acl_cl at once (source, target), introduce access function to access two tensor
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 23:42:58 +0000 (08:42 +0900)]
[moco-tf] Introduce VariadicArityNode (#6472)
This will introduce TF dialect VariadicArityNode to manage Concat node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 23:33:30 +0000 (08:33 +0900)]
[locomotiv] supporting FeatureBiasAdd (#6504)
This code enables locomotiv to support FeatureBiasAdd.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 22:10:09 +0000 (07:10 +0900)]
[moco-tf] Fix FuseBinaryIntoProceeding logic (#6511)
This commit fixes FuseBinaryIntoProceeding logic. Assertion was
misplace, so that normal addition blocked to this assertion.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 17:23:51 +0000 (02:23 +0900)]
[mir2loco] Remove Push node's shape setter (#6487)
This commit revises all the code that invokes deprecated shape setter.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 12 Aug 2019 17:15:36 +0000 (20:15 +0300)]
[mir2loco] Remove unused visitors and use default visit_fallback (#6515)
* Remove unused visitors
* Override visit_fallback
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[mir_caffe] Refactor importing of BatchNorm (#6467)
Structurize the code, fix comments.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 12 Aug 2019 17:11:17 +0000 (20:11 +0300)]
[mir2loco] Supported other types in ConstantOp transformer (#6516)
* Supported F32, F64, S32, S64 data types
* Temporary implementations for F64 and S64
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 11:03:03 +0000 (20:03 +0900)]
[locop] Ignore the shape attribute for Push nodes (#6485)
CanonicalNodeSummaryBuilder now ignores (deprecated) tensor shape
attributes when it generates a node summary for Push nodes.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 11:00:06 +0000 (20:00 +0900)]
[loco] Introduce Softmax node in loco (#6492)
This commit will introduce `Softmax` node in `loco`
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 10:59:29 +0000 (19:59 +0900)]
[tf2tflite] Loading customop.conf file into ModelSignature (#6406)
* [tf2tflite] Loading customop.conf file into ModelSignature
Adds code for loading customop.conf into ModelSignature
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* 1) class to function 2) remove loco from cmake file 3) remove some headers
* fix wrong lambda comment // use argv[5] directly
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 10:34:39 +0000 (19:34 +0900)]
[neurun] Do not collect TensorBuilders one by one (#6458)
* [neurun] Do not collect TensorBuilders one by one
To get the full set of tensor builders currently using it used to
collect from all the `LowerInfo`s. Now that `BackendResolver` manages
them all we can just use it.
Allow allocation of 0-byte object
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 10:14:17 +0000 (19:14 +0900)]
[exo-tflite] support DetphwiseFilterShape in shape_desc (#6491)
* [exo-tflite] support DetphwiseFilterShape in shape_desc
This commit supports DethwiseFilterShape in shape_desc.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* apply comment.
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 10:13:45 +0000 (19:13 +0900)]
[neurun] change int to uint32_t for size of input/output (#6502)
neurun uses uint32_t internally. Runtime API uses int.
This patch will change Runtime API to use uint32_t.
(same type to `neurun` internal).
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 10:04:31 +0000 (19:04 +0900)]
[moco-tf] Clean up trivials in FuseBinaryIntoPreceding (#6497)
This commit will clean up some codes
- Remove deprecated function
- Replace and correct comments
- Modify bracket formats
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 10:02:26 +0000 (19:02 +0900)]
[moco-tf] Introduce ResolveDuplicateReshape (#6499)
ResolvedDuplicateReshape transform introduced. This transform finds
duplicate FixedReshape pair, and let the later one to bypass the
former.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 10:00:58 +0000 (19:00 +0900)]
[mocotest-tf] Enable TF_SMALL_NET_0004 (#6498)
Since `FuseBinaryIntoPreceding` now supports for `DepthwiseConv2dNative`,
this commit will enable `TF_SMALL_NET_0004`
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 09:58:50 +0000 (18:58 +0900)]
[loco] fix a window_of function in CanonicalShapeInferenceRule (#6489)
This commit fix a window_of function.
Related issue:#6486
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 09:13:41 +0000 (18:13 +0900)]
Use nnfw_coverage for gcov build (#6445)
For gcov build release target, use nnfw_coverage link
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 09:13:09 +0000 (18:13 +0900)]
Replace coverage report command (#6476)
- Replace nncc's coverage report command into infra/command
- Introduce build.configuration setting
- Default workspace: build/
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 07:50:00 +0000 (16:50 +0900)]
[neurun] Use nnfw api wrapper's return value (#6493)
Currently nnfw implementation returns no error.
Now, it will use the return value of wrapper.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 07:49:45 +0000 (16:49 +0900)]
Remove index parameter from nnfw_input_size (#6488)
index parameter is removed that is not necessary.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 07:27:49 +0000 (16:27 +0900)]
[moco-tf] Support DepthwiseConv2dNative in FuseBinaryIntoPreceding (#6490)
This commit will enable supporting `DepthwiseConv2dNative` in `FuseBinaryIntoPreceding`
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 07:21:09 +0000 (16:21 +0900)]
[neurun] Remove class `Plan` (#6450)
`Plan` is nothing more than a wrapping `FunctionSequence` so it is
redundant. It has been replaced with `FunctionSequence`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 05:05:02 +0000 (14:05 +0900)]
Print build error on TensorFlowVersionChecker build error (#6477)
TensorFlowConfig.cmake checks running result only.
When prebuilt libtensorflow library is built from Ubuntu 18.04,
and nncc is going to be built on Ubuntu 16.04, it says:
"you need tensorflow version 1.12.0".
This patch will check build error also.
Then, it prints error message to guide the developers
to use libtensorflow built on same version of Ubuntu.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 04:56:19 +0000 (13:56 +0900)]
Disable downlaoding NNPACK on aarch64-tizen (#6438)
- DOWNLOAD_NNPACK=OFF on aarch64 tizen build
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 04:28:10 +0000 (13:28 +0900)]
[moco-tf] Do not reset input for BiasAdd Canonicalizer (#6470)
This will remove reset input for old replaced BiasAdd node in Canonicalization and update the diagram
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 12 Aug 2019 04:27:47 +0000 (13:27 +0900)]
[moco-tf] Do not reset input for Conv2D Canonicalizier (#6471)
This will remove reset input for old replaced Conv2D node in Canonicalization and update the diagram
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 03:33:52 +0000 (12:33 +0900)]
Introduce mlapse toolkit (#6441)
This commit introduces the inital version of mlapse toolkit.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 03:17:15 +0000 (12:17 +0900)]
Fix build error (#6484)
- add missing semicolon on nnfw.h
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 02:20:32 +0000 (11:20 +0900)]
API for Input/Output Tensor information (#6153)
* API for Input/Output Tensor information
- Add nnfw_tensor_info
- input/output size getter
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Fix typo, tensor_info -> tensorinfo
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 01:27:15 +0000 (10:27 +0900)]
[loco] Simplify FeatureCodec Graph Testcase (#6447)
This commit simplifies FeatureCodec Graph Testcase using
GraphBuilder helper.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 01:27:04 +0000 (10:27 +0900)]
[locop] Remove "opcode" helper (#6449)
Only "BuiltinNodeSummaryBuilder" uses this helper currently.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 01:26:53 +0000 (10:26 +0900)]
[mocotest-tf] Tests enabled by ResolveConstantShape transform (#6435)
This commit enables two tests enabled by ResolveConstantShape transform
- TF_SMALL_NET_0013 : Shape test
- TF_SMALL_NET_0014 : Mock of the Epilogue
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 12 Aug 2019 00:53:04 +0000 (09:53 +0900)]
[neurun] Break NN API and core API tests (#6448)
"test_neurun" currently includes both NN API and neurun core API tests.
This commit introduces "test_neurun_frontend_nnapi" dedicated to NN API tests.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 00:49:52 +0000 (09:49 +0900)]
[neurun] Remove empty override in ParamChecker (#6454)
Remove empty override(AddNode) in ParamChecker.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 12 Aug 2019 00:44:26 +0000 (09:44 +0900)]
Fix nnas command build-docker-image (#6451)
`./nnas build-docker-image` did not work due to wrong path. This commit
fixes it. `${NNAS_SCRIPT_PATH}` is undefined.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 11 Aug 2019 21:39:22 +0000 (06:39 +0900)]
[tf2tflite] enable test of fusion of binary op (#6444)
This will enable test of fusion with binary op with Conv2D, BiasAdd
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
[mir_onnx] Refactor importing of BatchNormalization (#6466)
Structurize the code, add comments.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir] Remove BatchNorm op (#6465)
Remove BatchNorm operation which has never been used.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_onnx] Remove pair return from get attributes functions (#6359)
* Create default values for attributes
* Fix all converters which using this functions
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[mir2loco] Remove unused BatchNorm op (#6463)
It will be reimplemented taking into account different variations between frameworks.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe2] Remove unused BatchNorm op (#6462)
It will be reimplemented taking into accout different variations between frameworks.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe] Remove unused BatchNorm op (#6461)
It will be reimplemented taking into account different variations between frameworks.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[nnc] Remove unused BatchNorm op (#6460)
It will be reimplemented taking into account different variations between frameworks.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[nnc] Reformat using .clang-format (#6455)
Reformat sources to common style.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir] Delete ElementwiseOp (#6418)
It was replaced by several binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[nnc] Delete uses of ElementwiseOp (#6417)
It was replaced by several binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir] Remove BiasAdd and Scale ops (#6416)
These were replaced by more general binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 9 Aug 2019 10:23:06 +0000 (19:23 +0900)]
Update `freeze_graph.sh` script (#6345)
* Change to use the 'tensorflow' module installed on the system by default.
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 9 Aug 2019 09:59:06 +0000 (18:59 +0900)]
Remove loco-exporter (#6419)
loco-exporter was left for Circle, but it is likely that Circle exporter
follows the design of (revised) exo-tflite.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
[nnc] Remove remainings of BiasAdd and Scale ops (#6415)
These are leftovers after switching to equivalents elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Remove mirunner component (#6414)
Remove `mirunner` PoC, there is no need for it anymore.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe2] Switch to binary elementwise operations (#6410)
Switch to new binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir2loco] Switch to binary elementwise operations (#6413)
Switch to new binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_onnx] Switch to binary elementwise operations (#6412)
Switch to new binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_tflite] Switch to binary elementwise operations (#6411)
Switch to new binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe] Switch to binary elementwise operations (#6409)
Switch to new binary elementwise operations.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 08:07:49 +0000 (17:07 +0900)]
[res] DethwiseConv2D network with padding and strides (#6446)
A simple network that has DepthwiseConv2dNative with 'SAME' padding and
strides.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 9 Aug 2019 07:09:02 +0000 (16:09 +0900)]
[mocotest-tf] enable test of fusion of binary op (#6443)
This will enable test of fusion of binary op with Conv2D, BiasAdd
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 07:06:02 +0000 (16:06 +0900)]
[neurun] Do not wrap vector with unique_ptr (#6431)
As `std::vector` has move constructor, without wrapping it with
`unique_ptr` works efficiently as well.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 06:51:24 +0000 (15:51 +0900)]
Add layout as a member of SubGraph into KernelGenerators (#6283)
This commit adds layout as a member of SubGraph into KernelGenerators.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 06:06:44 +0000 (15:06 +0900)]
[moco-tf] Use precedingOp in FuseBinaryIntoPreceding (#6400)
This commit will introduce precedingOp instead of each operation variable
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 06:06:29 +0000 (15:06 +0900)]
[loco] support DepthwiseConv2D of TypeForwardAlgorithm (#6404)
This commit is to support DepthwiseConv2D and DepthwiseFilterEncode in
CanonicalTypeForwardAlgorithm.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 06:06:12 +0000 (15:06 +0900)]
[moco-tf] Knob for ResolveConstantShape (#6439)
This commit introduces knob for ResolveConstantShape. Default behavior
is 'on'
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 9 Aug 2019 05:59:17 +0000 (14:59 +0900)]
[moco-tf] delete temporary loco_tobe::BiasShape (#6440)
This will delete temporary loco_tobe::BiasShape that was changed to loco::BiasShape
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 05:30:29 +0000 (14:30 +0900)]
[res] DepthwiseConv2D network with one placeholder and one constant (#6427)
A simple network that has DepthwiseConv2dNative with input(Placeholder)
and filter(Const).
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 9 Aug 2019 05:28:49 +0000 (14:28 +0900)]
[moco-tf] Use loco::BiasShape (#6437)
This will change to use loco::BiasShape from temporary loco_tobe::BiasShape
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 05:06:59 +0000 (14:06 +0900)]
[moco-tf] Knob for ResolveReshapeWildcardDim (#6436)
This commit introduces knob for ResolveReshapeWildcardDim. Default
behavior is 'on'
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 05:04:57 +0000 (14:04 +0900)]
[neurun] Rename compiler::Element (#6430)
Move `compiler::Element` to `compiler::Linear::Element`. This removes
`Element.h` and make it to be an inner class of `Linear`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 9 Aug 2019 03:38:58 +0000 (12:38 +0900)]
[moco-tf] Check attributes for ConcatV2 validate (#6428)
This will add attribute existence check for ConcatV2 node validation
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 9 Aug 2019 01:59:26 +0000 (10:59 +0900)]
[locop] Remove unused class in FormattedGraph.cpp (#6420)
CanonicalNodeSummaryBuilder was introduced for FormattedTensorShape class,
but CanonicalNodeSummaryBuilder is now not in this file, and thus no code
now uses this class.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 01:59:11 +0000 (10:59 +0900)]
[moco-tf] Enable ResolveConstantShape (#6423)
This commit enables ResolveConstantShape transform
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 01:50:58 +0000 (10:50 +0900)]
[neurun] Remove linear namespace (#6407)
As `namespace` linear has only few classes this commit moves those to
namespace `compiler`.
`compiler::Element` will be renamed to `compiler::LinearElement`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 9 Aug 2019 01:18:12 +0000 (10:18 +0900)]
[locop] Introduce push_shape/pull_shape helper (#6398)
Let's replace tensor_shape with push_shape/pull_shape as the first step
to remove shape attribtues from Pull/Push node.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 9 Aug 2019 01:17:47 +0000 (10:17 +0900)]
[locop] Introduce FormattedTensorShape (#6399)
This commit introduces FormattedTensorShape class which dumps the
content of a given TensorShape into std::ostream.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 9 Aug 2019 01:16:05 +0000 (10:16 +0900)]
Revise cpu backend cmake (#6401)
- cpu backend, hi-perf-cpu backend
- Set strict build option: nnfw_common
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 9 Aug 2019 01:02:38 +0000 (10:02 +0900)]
[moco-tf] Turn off ImportAsTFConcatV2 (#6421)
This will turn off ImportAsTFConcatV2 knob before applying VariadicArityNode to TFConcatV2
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 9 Aug 2019 00:56:46 +0000 (09:56 +0900)]
[moco-tf] Import Shape operation (#6402)
This commit implements import stage for Shape operation
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
[nnc] Support for binary elementwise operations (#6408)
* Add implementations of binary elementwise operations to backends.
* Switch backend unittests to new ops.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_onnx] Improve core structure of ONNX importer (#6297)
* Fix right initializer loading
* Fix output creation
* Other fixes
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[mir] Move operations.lst.h into include/mir (#6405)
Move `include/mir/ops/operations.lst.h` -> `include/mir/Operations.inc` so that it can be found more easily.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 8 Aug 2019 09:53:04 +0000 (18:53 +0900)]
Update skiplist for acl neon backend (#6396)
Update nnapi generated test for acl neon backend
- Enable validation test
- Enable trivial test except broadcast mul
- Enable depth-conv
- Enable comparison
- Enable remain fc tests
- Enable remain reshape tests
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 8 Aug 2019 09:52:39 +0000 (18:52 +0900)]
Support async execution in NNAPI (#6395)
Implement Event class to support async execution
Use internal async execution function for startCompute and wait
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 8 Aug 2019 09:51:29 +0000 (18:51 +0900)]
Revise acl cl backend cmake (#6391)
- Set strict build option: nnfw_common
- Remove needless link
- Update header include for acl common
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 8 Aug 2019 08:55:46 +0000 (17:55 +0900)]
Rename gather implementation in arm-compute-ex (#6388)
Rename CLGather and CLGatherKernel to CLGatherEx and CLGatherExKernel because acl 19.05 already have same name layer & kernel
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 8 Aug 2019 08:46:19 +0000 (17:46 +0900)]
Revise acl neon backend cmake (#6393)
- Set strict build option: nnfw_common
- Remove needless link
- Update header include for acl common
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 8 Aug 2019 07:58:52 +0000 (16:58 +0900)]
[moco-tf] relocate input method in Concat import (#6394)
This will relocate input method in Concat after class declaration to put anonymous codes together
Signed-off-by: SaeHie Park <saehie.park@samsung.com>