platform/core/ml/nnfw.git
5 years agoAdd CL kernel calls for ReduceMin from PACL. (#3772)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 03:32:17 +0000 (09:02 +0530)]
Add CL kernel calls for ReduceMin from PACL. (#3772)

This patch adds CL kernel calls for ReduceMin from PACL.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemove EQUAL delegated as custom op in nnapi_delegate (#3833)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 02:40:49 +0000 (08:10 +0530)]
Remove EQUAL delegated as custom op in nnapi_delegate (#3833)

This patch removes EQUAL delegated as custom op in nnapi_delegate
Since EQUAL is built in op as far as v1.12 is concerned.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoCollect optional operand index (#3768)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 01:16:30 +0000 (10:16 +0900)]
Collect optional operand index (#3768)

Collect optional operand index using defined API in frontend

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoIntroduce permission checker (#3831)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 01:14:34 +0000 (10:14 +0900)]
Introduce permission checker (#3831)

Introduce permission checker in format checker
It check execution permission except script files

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove unnecessary headers files inclusion (#3839)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:14:23 +0000 (06:44 +0530)]
Remove unnecessary headers files inclusion (#3839)

This patch will remove not req headers inclusion in the following files:
ArgMinMax.cc
ArgMinMax.h
GenericFullyConnectedLayer.cc
GenericFullyConnectedLayer.h
HashtableLookupLayer.cc
HashtableLookupLayer.h
SimpleBatchToSpaceNd.h
SimpleDepthToSpace.h
SimpleEmbeddingLookup.h
SimpleNeg.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd license comments to SimplePackLayer* (#3838)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:14:11 +0000 (06:44 +0530)]
Add license comments to SimplePackLayer* (#3838)

This patch will add license comments to SimplePackLayer.cpp and
SimplePackLayer.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove not req headers from SquarredDiff CL file (#3837)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:13:55 +0000 (06:43 +0530)]
Remove not req headers from SquarredDiff CL file (#3837)

This patch will remove not req headers in CLSquaredDifferenceKernel.cpp

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove not req headers from the layers in internal folder (#3840)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:13:42 +0000 (06:43 +0530)]
Remove not req headers from the layers in internal folder (#3840)

This patch will remove unnecessary headers for the follwing files
from the internal/layers :
SimplePackLayer.cc
SimplePackLayer.h
SimplePadLayer.h
SimpleSQRT.cc
SimpleSQRT.h
SimpleSpaceToBatchND.h
SimpleSpaceToDepth.h
SimpleTransposeConv.cc
SimpleTransposeConv.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[tfltool] Enable select operator for LogicalOr op (#3824)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:04:24 +0000 (06:34 +0530)]
[tfltool] Enable select operator for LogicalOr op (#3824)

This patch will enalbe select operator for Logicalor op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[tfltool] Enable select operator for NotEqual op (#3814)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:02:54 +0000 (06:32 +0530)]
[tfltool] Enable select operator for NotEqual op (#3814)

This patch will enable select operator for NotEqual op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRenaming of Logical_AND op to LogicalAnd (#3800)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:02:11 +0000 (06:32 +0530)]
Renaming of Logical_AND op to LogicalAnd (#3800)

To maintain uniformity and naming convention,
This patch renames the Logical_AND to LogicalAnd

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtest to test Neg op for 3D and 4D Tensors (#3796)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:01:11 +0000 (06:31 +0530)]
Add gtest to test Neg op for 3D and 4D Tensors (#3796)

This patch will add gtest to test Neg op for 3D/4D tensors.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[tfltool] Enable select operator for ArgMax op (#3813)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:59:51 +0000 (06:29 +0530)]
[tfltool] Enable select operator for ArgMax op (#3813)

This patch will enable ArgMax op in tflitetool in select_operator.py

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tfltool] Enable select operator for LogicalAND op (#3815)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:57:55 +0000 (06:27 +0530)]
[tfltool] Enable select operator for LogicalAND op (#3815)

This patch will enable LogicalAND in tflitetool in select_operator.py

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tfltool] Enable select operator for Dequantize op (#3818)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:57:08 +0000 (06:27 +0530)]
[tfltool] Enable select operator for Dequantize op (#3818)

This patch enables Dequantize in tflitetool in select_operator.py

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tfltool] Enable select operator for Unpack op (#3820)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:49:12 +0000 (06:19 +0530)]
[tfltool] Enable select operator for Unpack op (#3820)

This patch will enable select operator tflitetool for unpack op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRedefining input parameters in reduce_operations.cl Kernel (#3789)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:46:05 +0000 (06:16 +0530)]
Redefining input parameters in reduce_operations.cl Kernel (#3789)

This patch redefines input parameters in reduce_operations.cl Kernel.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemove execution permission for command and configure (#3830)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 00:45:46 +0000 (09:45 +0900)]
Remove execution permission for command and configure (#3830)

Remove execution permission for command and configure
- build-docker
- docker-shell
- image_name.configuration

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoCorrection in data type supported by neg_tensor.cl (#3790)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:45:31 +0000 (06:15 +0530)]
Correction in data type supported by neg_tensor.cl (#3790)

This patch corrects the comments on data type supported by neg_tensor.cl.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tool] Enable select operator for reduce operators (#3810)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 11:28:48 +0000 (20:28 +0900)]
[tool] Enable select operator for reduce operators (#3810)

Enable select operator for reduce operators: reduce_max, reduce_min, reduce_any, mean, sum,

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[tfltool] Enable select operator for RNN op (#3825)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 11:27:31 +0000 (16:57 +0530)]
[tfltool] Enable select operator for RNN op (#3825)

This patch enables RNN in tflitetool in select_operator.py

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoAdd NNAPI delegation to PRELU op (#3807)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 11:24:00 +0000 (16:54 +0530)]
Add NNAPI delegation to PRELU op (#3807)

This patch adds NNAPI delegation to PRELU op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoHandle optional input & output on frontend (#3763)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 10:43:43 +0000 (19:43 +0900)]
Handle optional input & output on frontend (#3763)

- Throw exception when optional input is set because we cannot support this yet
- Return with do nothing for optional output

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd a generated test for SpaceToBatchND (#3637)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 3 Dec 2018 10:41:46 +0000 (19:41 +0900)]
Add a generated test for SpaceToBatchND (#3637)

This commit adds a generated test for SpaceToBatchND.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoInitialize and reset for bool type in Diff.cpp (#3777)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 10:29:07 +0000 (19:29 +0900)]
Initialize and reset for bool type in Diff.cpp (#3777)

Define initializer, reseter and comparator for bool type tensor

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove registraton of EQUAL, RSQRT as custom op. (#3809)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:22:32 +0000 (14:52 +0530)]
Remove registraton of EQUAL, RSQRT as custom op. (#3809)

Since ops like EQUAL, RSQRT have been introduced in TF v1.12
They need not be registered as Custom ops anymore.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRename topk_v2 gtests to topk_v2_ex (#3765)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:20:05 +0000 (14:50 +0530)]
Rename topk_v2 gtests to topk_v2_ex (#3765)

This patch renames topk_v2 gtests to topk_v2_ex.
This is done for maintaining uniformity.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRename split Generated test to split_ex (#3766)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:19:32 +0000 (14:49 +0530)]
Rename split Generated test to split_ex (#3766)

This patch renames split Generated test to split_ex.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRenaming Gather GTests to gather_ex (#3767)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:19:03 +0000 (14:49 +0530)]
Renaming Gather GTests to gather_ex (#3767)

This patch renames Gather GTests to gather_ex.
This is done to maintain the uniformity.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Extract Coordinate4D from ParentInfo (#3806)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 3 Dec 2018 07:37:18 +0000 (16:37 +0900)]
[neurun] Extract Coordinate4D from ParentInfo (#3806)

This commit extracts `Coordinate4D` class from `ParentInfo` to use in other classes generally.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoIntroduce PReLU op in PACL (#3791)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 07:28:27 +0000 (12:58 +0530)]
Introduce PReLU op in PACL (#3791)

This patch introduces PReLU op in PACL.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoSupport boolean tensor input and output (#3808)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 06:42:42 +0000 (15:42 +0900)]
Support boolean tensor input and output (#3808)

Supprot boolean tensor input and output in nnapi delegate
Use temporary buffer for casting between boolean array and quantized int array

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove SQRT and RSQRT delegated as CUSTOM OP in nnapi_delegate (#3788)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 06:16:12 +0000 (11:46 +0530)]
Remove SQRT and RSQRT delegated as CUSTOM OP in nnapi_delegate (#3788)

This patch removes SQRT and RSQRT delegated as CUSTOM OP in nnapi_delegate.
Since #3742 is merged.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix typo to path lcov-to-cobertura-xml (#3803)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 05:49:20 +0000 (14:49 +0900)]
Fix typo to path lcov-to-cobertura-xml (#3803)

Fix typo to path lcov-to-cobertura-xml:
externals/lcov-to-covertura-xml -> externals/lcov-to-cobertura-xml

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoInsert LogicalOr case in Model.cc (#3801)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 04:11:33 +0000 (09:41 +0530)]
Insert LogicalOr case in Model.cc (#3801)

This patch will add case for LogicalOr in Model.cc

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoDefine SPLIT_EX in NeuralNetworkEx.h (#3755)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 04:01:35 +0000 (09:31 +0530)]
Define SPLIT_EX in NeuralNetworkEx.h (#3755)

This patch defines SPLIT_EX in NeuralNetworkEx.h
Related issue: #3347

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoDefine TOPK_V2_EX in NeuralNetworkEx.h (#3759)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 03:47:07 +0000 (09:17 +0530)]
Define TOPK_V2_EX in NeuralNetworkEx.h (#3759)

This patch defines TOPK_V2_EX in NeuralNetworkEx.h.
Related issue: #3347

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd nnapi_delegation for Equal and NOT_Equal (#3745)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 03:05:21 +0000 (08:35 +0530)]
Add nnapi_delegation for Equal and NOT_Equal (#3745)

* Add nnapi_delegation for Equal and NOT_Equal

This patch adds nnapi_delegation for Equal and NOT_Equal.

Signed-off-by: prasannar <prasanna.r@samsung.com>
* Add nnapi_delegation for Equal and NOT_Equal

This patch adds nnapi_delegation for Equal and NOT_Equal.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoImplement SQRT_EX op in CPU (#3760)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 02:22:56 +0000 (07:52 +0530)]
Implement SQRT_EX op in CPU (#3760)

This patch implements SQRT_EX op in CPU.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoIntroduce PRELU_EX in NeuralNetworksEx.h (#3769)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 02:09:37 +0000 (07:39 +0530)]
Introduce PRELU_EX in NeuralNetworksEx.h (#3769)

This patch introduces PRELU_EX in NeuralNetworksEx.h
Related issue: #3574 #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoUpdate generated test files (#3749)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 02:05:58 +0000 (11:05 +0900)]
Update generated test files (#3749)

* Remove deprecated generated test files

- Remove deprecated files: already recipe is removed
- Remove deprecated files by renamed: floor, tanh, and div recipe is renamed becasue of namespace conflict

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update generated files

Update difference between generated by script and code in repo

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd gtest to test Logical_OR_Ex op (#3781)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 01:44:35 +0000 (07:14 +0530)]
Add gtest to test Logical_OR_Ex op (#3781)

This patch will add gtest to test Logical_OR op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove Passing mean gtest from skiplist (#3782)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 01:34:06 +0000 (07:04 +0530)]
Remove Passing mean gtest from skiplist (#3782)

This patch will remove passing mean gtest from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRegister reduce_xx operator for internal tflite interpreter (#3785)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 01:31:13 +0000 (10:31 +0900)]
Register reduce_xx operator for internal tflite interpreter (#3785)

Reduce_sum, reduce_min, reduce_max builtin operators are registered
for internal tflite interpreter.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoDefine TRANSPOSE_CONV_EX in NeuralNetworksEx.h (#3773)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 01:28:11 +0000 (06:58 +0530)]
Define TRANSPOSE_CONV_EX in NeuralNetworksEx.h (#3773)

This patch defines TRANSPOSE_CONV_EX in NeuralNetworksEx.h.
Related issue: #3347

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years ago[neurun] Move Convert to backend/acl_cl (#3778)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 3 Dec 2018 01:27:19 +0000 (10:27 +0900)]
[neurun] Move Convert to backend/acl_cl (#3778)

internal/Convert.h and the source file is acl_cl dependent, so it is
moved to `backend/acl_cl` dir.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoAdd Quant8 support to NotEqual CL (#3754)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 07:38:52 +0000 (13:08 +0530)]
Add Quant8 support to NotEqual CL (#3754)

This patch will provide quant8 support for NotEqual Op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoHandle boolean for nnapi delegate (#3775)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 07:38:29 +0000 (16:38 +0900)]
Handle boolean for nnapi delegate (#3775)

To handle boolean for nnapi delegate, change type to quantized tensor and call NNAPI

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoDefine Abs_Ex op in NeuralNetworksEx.h (#3758)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 07:38:08 +0000 (13:08 +0530)]
Define Abs_Ex op in NeuralNetworksEx.h (#3758)

This patch will define Abs_Ex op in NeuralNetworksEx.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoMove benchmark into contrib (#3774)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 06:58:49 +0000 (15:58 +0900)]
Move benchmark into contrib (#3774)

Move benchmark into contrib
Revise directory structure: use src directory
Revise cmake to reference src directory and check build option

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoIntroduce LOGICAL_AND op in runtime (#3564)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 06:23:07 +0000 (11:53 +0530)]
Introduce LOGICAL_AND op in runtime (#3564)

This patch introduces LOGICAL_AND op in our runtime.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd delegate for SQRT and RSQRT (#3742)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 06:08:11 +0000 (15:08 +0900)]
Add delegate for SQRT and RSQRT (#3742)

* Add delegate for SQRT and RSQRT

With tensorflow v1.12, SQRT and RSQRT are built-in operator.
This commit adds delegate for built-in SQRT and RSQRT.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Add macro to avoid GBS build fail

tizen(obs) has tensorflow v1.9 while this commit requires v1.12.

5 years agoIntroduce optional operand set on frontent (#3751)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 04:13:08 +0000 (13:13 +0900)]
Introduce optional operand set on frontent (#3751)

Introduce unordered_set field for optional operand
Define API to insert optional operand
Introduce process to handle optional operand at model finish (cannot handle yet)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Replace ITensor to our own (#3739)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 30 Nov 2018 04:10:00 +0000 (13:10 +0900)]
[neurun] Replace ITensor to our own (#3739)

Related : #3273
Part of : #3700

This commit replaces `arm_compute::ITensor` to `neurun::operand::ITensor` finally.

Replaced below classes
- ITensor
- ICLTensor
- CLTensor
- CLSubTensor

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoImplement CL Kernel for ReduceMin op (#3744)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 02:17:27 +0000 (07:47 +0530)]
Implement CL Kernel for ReduceMin op (#3744)

This patch implements CL Kernel for ReduceMin op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoCorrection in SpaceToBatch CPU version for quant8 datatype (#3686)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 02:07:32 +0000 (07:37 +0530)]
Correction in SpaceToBatch CPU version for quant8 datatype (#3686)

This patch will set correct zero_value for quant8 datatype in spaceToBatch.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdding nnapi delegation changes regarding TransposeConv (#3427)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 01:08:48 +0000 (06:38 +0530)]
Adding nnapi delegation changes regarding TransposeConv (#3427)

This patch adds required changes to nnapi delegate to run transpose conv

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoRemove passing pad_quant8 gtest from skiplist (#3694)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 29 Nov 2018 22:19:49 +0000 (03:49 +0530)]
Remove passing pad_quant8 gtest from skiplist (#3694)

This patch will remove pad_quant8 gtest from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd GTest for ReduceMin op. (#3732)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 29 Nov 2018 22:19:35 +0000 (03:49 +0530)]
Add GTest for ReduceMin op. (#3732)

This patch adds GTest for reduce_min op.
Added files:
```
reduce_min_ex
reduce_min_ex_float_1
reduce_min_ex_float_2
```

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd GTest for LogicalAND op (#3567)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 29 Nov 2018 06:38:18 +0000 (12:08 +0530)]
Add GTest for LogicalAND op (#3567)

This patch adds GTest for LogicalAND op.
Related issue: 3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd validation function & missing broadcast related code in NOTEQUAL (#3715)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 29 Nov 2018 00:58:12 +0000 (06:28 +0530)]
Add validation function & missing broadcast related code in NOTEQUAL (#3715)

This patch will add validation function and missing broadcast related code.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoIntroduce ReduceMin in PACL (#3729)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 10:43:47 +0000 (16:13 +0530)]
Introduce ReduceMin in PACL (#3729)

This patch introduces ReduceMin in PACL.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Introduce Node.Include.h (#3740)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Nov 2018 09:34:23 +0000 (18:34 +0900)]
[neurun] Introduce Node.Include.h (#3740)

This file includes headers of all the nodes

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Change dot_dumper input/output shape (#3741)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Nov 2018 09:18:25 +0000 (18:18 +0900)]
[neurun] Change dot_dumper input/output shape (#3741)

This commit changes `input`/`output` shape of dot_dumper graph to `doublecircle`.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoRemoving the not required Pad op files (#3625)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 07:58:19 +0000 (13:28 +0530)]
Removing the not required Pad op files (#3625)

After PR #3428 merged
These PadLayer files are not required.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoUpdate build-docker command (#3697)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 28 Nov 2018 06:42:17 +0000 (15:42 +0900)]
Update build-docker command (#3697)

- Change command: build_docker -> build-docker
- Can use docker build options
- Update docker file: restrict yapf version to 0.22.0
- Update document

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoSave pointer to buffer for operand value setting (#3736)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 28 Nov 2018 04:54:13 +0000 (13:54 +0900)]
Save pointer to buffer for operand value setting (#3736)

For operand value setting, save pointer to buffer instead of copy when size is greater than
ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES defined in NeuralNetworks.h

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoCorrection in pad CPU version for quant8 datatype (#3687)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 04:22:14 +0000 (09:52 +0530)]
Correction in pad CPU version for quant8 datatype (#3687)

This patch set the correct padding value which is offset for quant8 dataypes.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd CLkernel for Generic Padding (#3428)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 01:34:54 +0000 (07:04 +0530)]
Add CLkernel for Generic Padding (#3428)

This patch will add cl kernel to execute pad op on GPU

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoSupport Layout::NHWC for CL Kernel of SpaceToBatchND (#3734)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Nov 2018 01:33:45 +0000 (10:33 +0900)]
Support Layout::NHWC for CL Kernel of SpaceToBatchND (#3734)

This commit supports Layout::NHWC for CL Kernel of SpaceToBatchND.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoApply CL Kernel of SpaceToBatchND to PACL (#3731)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Nov 2018 01:04:11 +0000 (10:04 +0900)]
Apply CL Kernel of SpaceToBatchND to PACL (#3731)

This commit applies CL Kernel of SpaceToBatchND to PACL.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoRemove not req headers from NotEqual cl files (#3728)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 01:03:46 +0000 (06:33 +0530)]
Remove not req headers from NotEqual cl files (#3728)

This patch will remove not required headers included
in src/runtime/CL/functions/CLNotEqual.cpp

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdded implementation for Pack operation with ACL (#3398)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 00:57:32 +0000 (06:27 +0530)]
Added implementation for Pack operation with ACL (#3398)

Implements 3D to 4D tensor pack operation
Uses ACL kernels for packing tensors

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoUpdate Validation of Arguments in SquaredDifference CL kernel (#3433)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 00:54:24 +0000 (06:24 +0530)]
Update Validation of Arguments in SquaredDifference CL kernel (#3433)

This patch will update validation of arguments in CL Kernel of SquaredDifference op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoWorkaround to pass scalar type tensor in nnapi delegate (#3707)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 28 Nov 2018 00:53:41 +0000 (09:53 +0900)]
Workaround to pass scalar type tensor in nnapi delegate (#3707)

Some model have scalar type input/output, but NNAPI requre tensor type for these operands. (ex. elementwise sub, div)
To satisfy NNAPI spec, change scalar to vector with size 1 in nnapi delegate.

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoIntroduce ReduceMin in the enum class declared for reduce ops (#3733)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 28 Nov 2018 00:44:46 +0000 (06:14 +0530)]
Introduce ReduceMin in the enum class declared for reduce ops (#3733)

This patch introduces ReduceMin in the enum class declared for reduce ops.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Introduce CLTensor/CLSubTensor (#3723)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 27 Nov 2018 22:11:51 +0000 (07:11 +0900)]
[neurun] Introduce CLTensor/CLSubTensor (#3723)

Related : #3273
Part of : #3700

This commit introduces `neurun::backend::acl_cl::operand::CLTensor`/`neurun::backend::acl_cl::operand::CLSubTensor`.
Those are inherited to internal `ICLTensor`, and have handles of `ACL` `arm_compute::CLTensor` and `arm_compute::CLSubTensor`.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years ago[neurun] Fix Graph Verifier visit check (#3722)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 27 Nov 2018 22:11:41 +0000 (07:11 +0900)]
[neurun] Fix Graph Verifier visit check (#3722)

Visit and OnStack checking assumed ID range as vector which is wrong.
This commit changes variable `visit` and `on_stack` to be a map so it
can correctly check nodes for sure.

In the same manner with #3721

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoIntroduce REDUCE_MIN_EX in NeuralNetworksEx.h (#3570)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 27 Nov 2018 10:34:57 +0000 (16:04 +0530)]
Introduce REDUCE_MIN_EX in NeuralNetworksEx.h (#3570)

This patch introduces REDUCE_MIN_EX in NeuralNetworksEx.h.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Remove permutation layer for model's input/output and permute in-place ...
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 27 Nov 2018 10:34:31 +0000 (13:34 +0300)]
[neurun] Remove permutation layer for model's input/output and permute in-place (#3617)

Permute while copying from/to interpreter: this will eliminate extra
copying in permutation layer. This is just for NHWC_TO_NCHW in input
and NCHW_TO_NHWC in output.

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoImplement CL kernel of SpaceToBatchND for NCHW (#3633)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 27 Nov 2018 10:33:46 +0000 (19:33 +0900)]
Implement CL kernel of SpaceToBatchND for NCHW (#3633)

This commit implements CL kernel of SpaceToBatchND for NCHW.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoRearranging rsqrt gtest according to the name in all_generated_tests.cpp (#3716)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 27 Nov 2018 10:31:42 +0000 (16:01 +0530)]
Rearranging rsqrt gtest according to the name in all_generated_tests.cpp (#3716)

When generate_test script is executed this rsqrt declaration will get moved
to the different line in all_generated_tests file based on the sorting done
with name.
This patch will update the all_generated_tests.cpp in master so as to
have same code as generated by generate_test script

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Introduce ITensor/ICLTensor (#3719)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 27 Nov 2018 08:43:49 +0000 (17:43 +0900)]
[neurun] Introduce ITensor/ICLTensor (#3719)

* [neurun] Introduce ITensor/ICLTensor

This commit introduces `neurun::backend::operand::ITensor`/`neurun::backend::acl_cl::operand::ICLTensor` since we want to define internal interface of `ITensor` that is an common interface of all backends.
In case of `ACL` backend, It should be defined to `ACL` wrapper classes inherited to internal `ICLTensor`.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Include some functions of derived classes

5 years agoAdd generated tests of TensorflowSum for 4-D (#3388)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 27 Nov 2018 07:32:12 +0000 (16:32 +0900)]
Add generated tests of TensorflowSum for 4-D (#3388)

This commit adds generated tests of TensorflowSum(ReduceSum) for 4-D.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoAdd 4 tflite models for framework test (#3720)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 27 Nov 2018 07:31:55 +0000 (16:31 +0900)]
Add 4 tflite models for framework test (#3720)

* Add 4 tflite models for framework test

exp_4d, neg_4d, rsqrt_4d, sqrt_4d tflite models are added into
framework test.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Disable sqrt_4d and rsqrt_4d model test

since delegates for SQRT and RSQRT are not prepared

* Remove comments

5 years agoCorrection of selected op in notequal gtest (#3714)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 27 Nov 2018 06:46:29 +0000 (12:16 +0530)]
Correction of selected op in notequal gtest (#3714)

This patch will set notequal op name instead of equal op name
in notequal gtest

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Fix Dfs Iterator (#3721)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 27 Nov 2018 06:28:46 +0000 (15:28 +0900)]
[neurun] Fix Dfs Iterator (#3721)

As mentioned from #3617 by @d-poshshoev, Visit checking assumed ID range
as vector which is wrong. This commit changes variable `visit` to be a
map so it can correctly check nodes for sure.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoFix incorrect path of lcov_cobertura.py in script (#3718)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 27 Nov 2018 04:13:42 +0000 (13:13 +0900)]
Fix incorrect path of lcov_cobertura.py in script (#3718)

There was a typo on sciprt path for lcov_cobertura.py

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoAdd missing unpak gtest declaration from all_generated_test and skiplist (#3691)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 27 Nov 2018 01:23:50 +0000 (06:53 +0530)]
Add missing unpak gtest declaration from all_generated_test and skiplist (#3691)

This patch will add missing unpack gtest declaration from all_generated_test.cpp and skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoDon't run MODELS/* in run_benchmark_op.sh (#3709)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 27 Nov 2018 01:13:42 +0000 (10:13 +0900)]
Don't run MODELS/* in run_benchmark_op.sh (#3709)

`run_benchmark_op.sh` is for benchmarking a given operator.

Models such as inception_nonslim, inception_slim and mobilenet are
located under MODELS, and executed from `run_benchmark_op.sh`.

Thus, `run_benchmark_op.sh` excludes models under `MODELS`.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoGenerate NNAPI Test Case(a.k.a generatedtests) for Split (#3683)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 27 Nov 2018 01:01:25 +0000 (06:31 +0530)]
Generate NNAPI Test Case(a.k.a generatedtests) for Split (#3683)

This PR adds generatedtests for Split. #3459

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoAdd spaceToBatchND gtests to test op for quant8 dataype (#3688)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 26 Nov 2018 11:35:53 +0000 (17:05 +0530)]
Add spaceToBatchND gtests to test op for quant8 dataype (#3688)

This patch adds gtest to test SpaceToBatchND op for quant8 dataype

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoFix tflite_benchmark_model out-of-memory error (#3706)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Nov 2018 11:20:40 +0000 (20:20 +0900)]
Fix tflite_benchmark_model out-of-memory error (#3706)

Previously, benchmark_model created nnapi_delegate every run.
Now, nnapi_delegate build graph only once.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoRemove unused CL Kernels of Reduce Operation (#3702)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 11:13:20 +0000 (20:13 +0900)]
Remove unused CL Kernels of Reduce Operation (#3702)

This commit removes CL Kernels of Reduce Operation that is no longer needed.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoApply CL Kernel of HashtableLookup for PACL (#3701)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 10:55:40 +0000 (19:55 +0900)]
Apply CL Kernel of HashtableLookup for PACL (#3701)

This commit applies CL Kernel of HashtableLookup for PACL.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoAdd generated tests of Mean for 4-D (#3453)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 08:13:44 +0000 (17:13 +0900)]
Add generated tests of Mean for 4-D (#3453)

This commit Add generated tests of Mean for 4-D.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoDo not use info directory in tflkit (#3647)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 07:47:31 +0000 (16:47 +0900)]
Do not use info directory in tflkit (#3647)

Move the *.template files in tflkit into its parent dir
And ignore .info files in tflkit

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoMove lcov-to-cobertura-xml script into externals (#3693)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 26 Nov 2018 06:08:36 +0000 (15:08 +0900)]
Move lcov-to-cobertura-xml script into externals (#3693)

Move lcov-to-cobertura-xml script into externals
Recover script file name to original: lcov_cobertura.py
Change imported_url.txt to README.md

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoUpdate include order and comment in Compiler.cc (#3684)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 26 Nov 2018 05:57:04 +0000 (14:57 +0900)]
Update include order and comment in Compiler.cc (#3684)

Update include order: categorize as
- header for Compiler.cc
- header in same directory
- header in differnt neurun directory
- header in include

Add and update comment
- Update comment for SubTensorAnlyzer
- Add comment for compilation phase (backend independent, lower, backend dependent, codegen)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoFix wrong variable name in test_driver.sh (#3699)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Nov 2018 05:56:46 +0000 (14:56 +0900)]
Fix wrong variable name in test_driver.sh (#3699)

I've found report_dir does not pass properly during investigation of #3420.
Then, I found a typo of a vaiable name in test_driver.sh script.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>