platform/core/ml/nnfw.git
5 years agoMove libs/support/tflite to libs/tflite (#3920)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 10 Dec 2018 06:40:20 +0000 (15:40 +0900)]
Move libs/support/tflite to libs/tflite (#3920)

Move libs/support/tflite to libs/tflite
Update header include path

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoChange nnapi library name and update cmake (#3956)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 10 Dec 2018 06:32:43 +0000 (15:32 +0900)]
Change nnapi library name and update cmake (#3956)

Chane nnapi library name: nnfw_support_nnapi -> nnfw_lib_nnapi
Specify library type as static
Remove unused nnapi library link

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove redundant .cl files regarding reduce operations (#3952)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 06:26:02 +0000 (11:56 +0530)]
Remove redundant .cl files regarding reduce operations (#3952)

This patch removes redundant .cl files regarding reduce operations
In issue: #3448
Since Unification of reduce kernel is merged,
      removal of existing implementation can be removed
Hence removing the same.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoUpdate skiplist for tizen (#3953)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 10 Dec 2018 06:02:11 +0000 (15:02 +0900)]
Update skiplist for tizen (#3953)

Now, the skiplist of tizen is the same as linux's

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoAdd PReLU CL Kernel calls from PACL (#3916)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 05:13:42 +0000 (10:43 +0530)]
Add PReLU CL Kernel calls from PACL (#3916)

This patch adds PReLU CL Kernel calls from PACL.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd 3D 4D Gtests for SquaredDifferenceEx op (#3933)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 05:07:17 +0000 (10:37 +0530)]
Add 3D 4D Gtests for SquaredDifferenceEx op (#3933)

This patch adds 3D 4D Gtests for SquaredDifferenceEx op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd GTests for SQRT_EX 3D 4D case (#3934)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:58:05 +0000 (07:28 +0530)]
Add GTests for SQRT_EX 3D 4D case (#3934)

This patch GTests for SQRT_EX 3D 4D case

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd validations for Neg op in CLKernel.cpp (#3931)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:56:28 +0000 (07:26 +0530)]
Add validations for Neg op in CLKernel.cpp (#3931)

This patch will add validations req to be tested
before executing neg op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove unwanted apache license from RSQRT Gtest (#3937)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:55:18 +0000 (07:25 +0530)]
Remove unwanted apache license from RSQRT Gtest (#3937)

This patch removes unwanted apache license from RSQRT Gtest ```rsqrt_ex_float1.mod.py```

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoImplement LogicalOr op in PACL (#3944)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:53:41 +0000 (07:23 +0530)]
Implement LogicalOr op in PACL (#3944)

This patch will add implementation of LogicalOr op
in PACL

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtest to test quant8 datatype for NotEqual Op (#3757)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:44:09 +0000 (07:14 +0530)]
Add gtest to test quant8 datatype for NotEqual Op (#3757)

This patch will add gtest to test quant8 datatype for NotEqual Op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd NNAPI delegation for LOGICAL_OR (#3904)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:42:50 +0000 (07:12 +0530)]
Add NNAPI delegation for LOGICAL_OR (#3904)

This patch adds NNAPI delegation for LOGICAL_OR.
Related issue: #3459

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoGeneric EmbeddingLookup kernel to handle tensors upto rank=4 (#3794)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:28:33 +0000 (06:58 +0530)]
Generic EmbeddingLookup kernel to handle tensors upto rank=4 (#3794)

This patch unifies the 3 different embedding lookup kernel into
one kernel so as to make a generic cl to support upto 4d tensors.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoDefining default constructor in Pack and Unpack layer (#3907)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:28:15 +0000 (06:58 +0530)]
Defining default constructor in Pack and Unpack layer (#3907)

This patch will define default constructor in Pack and
Unpack Layers

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoGeneric HashTableLookup kernel to handle tensors upto rank=4 (#3798)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:27:55 +0000 (06:57 +0530)]
Generic HashTableLookup kernel to handle tensors upto rank=4 (#3798)

This patch unifies the 3 different hashtable lookup kernel into
one kernel so as to make a generic cl to support upto 4d tensors.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtest to test Argmax op for tensors of QASYMM8 dataype (#3802)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:26:14 +0000 (06:56 +0530)]
Add gtest to test Argmax op for tensors of QASYMM8 dataype (#3802)

This patch will add gtest for Argmax to test for tensors of
QASYMM8 dataype

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove passing gtests from skiplist (#3908)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:23:18 +0000 (06:53 +0530)]
Remove passing gtests from skiplist (#3908)

This patch will remove all passing gtests from skiplist
- local_response_norm_float_4
- GeneratedTests.unpack*

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd license comments in SimpleUnpackLayer* (#3905)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:22:13 +0000 (06:52 +0530)]
Add license comments in SimpleUnpackLayer* (#3905)

This patch will add license commnets in SimpleUnpackLayer.cc
andSimpleUnpackLayer.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtest for split with negative axis. (#3915)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 10 Dec 2018 01:21:57 +0000 (06:51 +0530)]
Add gtest for split with negative axis. (#3915)

This patch adds a test case for split with negative axis.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoRemove generated test cpp (#3921)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 10 Dec 2018 00:59:59 +0000 (09:59 +0900)]
Remove generated test cpp (#3921)

Remove generated test cpp as these files are unused since #3874.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoMove Padding module from `internal` to `util`. (#3882)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 7 Dec 2018 07:48:57 +0000 (16:48 +0900)]
Move Padding module from `internal` to `util`. (#3882)

Move Padding module from `internal` to `util`.

Part of #3764

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoAdd NNAPI delegation for LOGICAL_AND (#3903)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 07:48:06 +0000 (13:18 +0530)]
Add NNAPI delegation for LOGICAL_AND (#3903)

This patch adds NNAPI delegation for LOGICAL_AND.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoValidation check for addOperation (#3911)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 7 Dec 2018 07:46:20 +0000 (16:46 +0900)]
Validation check for addOperation (#3911)

- Check operation type is validate
- Add try-catch exception and return ANEURALNETWORKS_BAD_STATE when exception is raised
- Set return value when addOperationEx is not failed

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd ExtendCMakeFunction module and add_subdirectories function (#3912)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 7 Dec 2018 07:15:23 +0000 (16:15 +0900)]
Add ExtendCMakeFunction module and add_subdirectories function (#3912)

- Add ExtendCMakeFunction module to simplify cmake
- Introduce add_subdirectories function to support adding all subdirectories at once.  (It's comes from nncc repo)
- Use add_subdirectories function in libs

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoUnify REDUCE_SUM and REDUCE_MAX operation in CL kernel (#3885)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 07:06:03 +0000 (12:36 +0530)]
Unify REDUCE_SUM and REDUCE_MAX operation in CL kernel (#3885)

This patch unifies REDUCE_SUM and REDUCE_MAX operation in CL kernel
This is done to reduce code redundancy.
Related issue: #3771

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd comments to define alpha input in internal/op/PReLU.cc (#3900)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 06:44:13 +0000 (12:14 +0530)]
Add comments to define alpha input in internal/op/PReLU.cc (#3900)

This patch adds comments to define alpha input in internal/op/PReLU.cc.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoChange in kernel name for LogicalBinaryOp (#3913)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 06:44:04 +0000 (12:14 +0530)]
Change in kernel name for LogicalBinaryOp (#3913)

This patch corrects the change in kernel name for LogicalBinaryOps (AND & OR)

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd PReLU layer in PACL (#3901)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 06:43:21 +0000 (12:13 +0530)]
Add PReLU layer in PACL (#3901)

This patch adds PReLU layer in PACL.
Issue: #3459 for Epic4

PReLU implemented as,
      f(x) = Relu(x) + (negative_alpha * Neg(x, activation=Relu))

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoMove libs/support/nnapi to libs/nnapi (#3895)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 7 Dec 2018 03:24:37 +0000 (12:24 +0900)]
Move libs/support/nnapi to libs/nnapi (#3895)

Move libs/support/nnapi to libs/nnapi
Update header include path

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoUpdate namespace and header define for cpp14 library (#3896)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 7 Dec 2018 02:13:20 +0000 (11:13 +0900)]
Update namespace and header define for cpp14 library (#3896)

Update namespace to nnfw::cpp14
Update define to __NNFW_CPP14_xxx__
Update usage of cpp14 library to updated namespace

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove unused headers from Unpack op in internal/layers (#3906)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 01:20:10 +0000 (06:50 +0530)]
Remove unused headers from Unpack op in internal/layers (#3906)

This patch will remove unused headers included in Unpack
related files in internal/layers

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd GTests for PReLU op (#3899)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 01:14:24 +0000 (06:44 +0530)]
Add GTests for PReLU op (#3899)

This patch adds GTest for PReLU op
Issue: #3459.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdding assertions in TransposeConv op. (#3887)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 7 Dec 2018 00:51:47 +0000 (06:21 +0530)]
Adding assertions in TransposeConv op. (#3887)

This patch adds necessary assertions in TransposeConv.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoReturn error for not finished model compile (#3897)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 7 Dec 2018 00:50:43 +0000 (09:50 +0900)]
Return error for not finished model compile (#3897)

When NNAPI call try to compile model not finished, return BAD_STATE error

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove template runtime (#3845)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 6 Dec 2018 09:08:34 +0000 (18:08 +0900)]
Remove template runtime (#3845)

Remove experimental template runtime in runtimes/template

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoImplementation of CUSTOM Unpack op (#3669)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 08:27:47 +0000 (13:57 +0530)]
Implementation of CUSTOM Unpack op (#3669)

ACL implementation
Used CLSubtensor and CLReshape
CLPermute to overcome backward swizzle

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoDefine GENERATE_FILES for test generation (#3890)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 6 Dec 2018 08:11:38 +0000 (17:11 +0900)]
Define GENERATE_FILES for test generation (#3890)

Introduce GENERATE_FILES environment variable to skip running generate_test.sh
If you set GENERATE_FILES 0, makefile skip running generate_test.sh. Default is 1 (run generate_test.sh default)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoMove include/nnfw/std (#3892)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 6 Dec 2018 08:09:41 +0000 (17:09 +0900)]
Move include/nnfw/std (#3892)

Move include/nnfw/std to libs/cpp14/
Update include path
Update cmake to include cpp14 library using interface

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Move Swizzle.h to acl backend dir (#3893)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 6 Dec 2018 08:08:54 +0000 (17:08 +0900)]
[neurun] Move Swizzle.h to acl backend dir (#3893)

Move Swizzle.h to acl backend dir since it is only used there.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Remove backend/cpu dependancy from PermutateSource/Sink (#3889)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 6 Dec 2018 07:25:33 +0000 (10:25 +0300)]
[neurun] Remove backend/cpu dependancy from PermutateSource/Sink (#3889)

Related issue: #3888
Remove backend/cpu dependancy from PermutateSource/Sink

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoFix wrong radius of LRN cl kernel (#3861)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 6 Dec 2018 06:39:36 +0000 (15:39 +0900)]
Fix wrong radius of LRN cl kernel (#3861)

* Fix wrong radius setting of LRN cl kernel

Fix wrong radius setting for LRN

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Remove unused variables

5 years agoChange the order of Unpack Input parameter in NeuralNetworksEx.h (#3865)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 06:07:22 +0000 (11:37 +0530)]
Change the order of Unpack Input parameter in NeuralNetworksEx.h (#3865)

This patch changes the order of Unpack Input parameter in NeuralNetworksEx.h
The num is seconds and axis is third param.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRedefine PACK_EX in NeuralNetworksEx.h (#3864)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 06:06:56 +0000 (11:36 +0530)]
Redefine PACK_EX in NeuralNetworksEx.h (#3864)

As per @hseok82-oh's words

>I found out runtime is updated to use additional parameter num and this PR will use this change. Please update comment PACK_EX in NeuralNetworksEx.h using another PR.

This patch redefines PACK_EX in NeuralNetworksEx.h.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Do backends as shared and update BackendManager to support plugin (#3793)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 6 Dec 2018 06:06:23 +0000 (09:06 +0300)]
[neurun] Do backends as shared and update BackendManager to support plugin (#3793)

Related issue: #3703
This is the initial step of converting backends to plugins
Update BackendManager to creage a map using plugins

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoRemove #failed comment from skiplist (#3878)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 06:04:19 +0000 (11:34 +0530)]
Remove #failed comment from skiplist (#3878)

This pacth will remove #failed comment from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoIntroduce enum for EQUALITY op. (#3853)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 05:13:31 +0000 (10:43 +0530)]
Introduce enum for EQUALITY op. (#3853)

This patch introduces an enum for EQUALITY operations
like EQUAL, NOT_EQUAL.
This is related to #3851.
This is reduce code redundancy to a good extent in future.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoDisable nnapi_test of Custom/TensorflowMax (#3850)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 04:37:23 +0000 (10:07 +0530)]
Disable nnapi_test of Custom/TensorflowMax (#3850)

This patch disables nnapi_test of Custom/TensorflowMax.
Since TensorFlowMax is builtin op as REDUCE_MAX from V1.12,
      we are removing the trace of TensorFlowMax as a custom op.

This is required for PRs #3849 #3846

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemove UPDATE_MODULE in makefile (#3891)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 6 Dec 2018 01:49:02 +0000 (10:49 +0900)]
Remove UPDATE_MODULE in makefile (#3891)

Remove UPDATE_MODULE environment variable to ignore submodule update: deprecated feature because we don't use submodule

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[tfltool] Enable select operator for Pack op (#3817)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 00:57:36 +0000 (06:27 +0530)]
[tfltool] Enable select operator for Pack op (#3817)

This patch will enable select operator tflitetool for pack op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[tfltool] Enable select operator for transpose op (#3811)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 00:57:23 +0000 (06:27 +0530)]
[tfltool] Enable select operator for transpose op (#3811)

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

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd unified CL Kernels for Binary LOGICAL OPS (AND & OR) (#3752)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 6 Dec 2018 00:56:50 +0000 (06:26 +0530)]
Add unified CL Kernels for Binary LOGICAL OPS (AND & OR) (#3752)

This issue tracks the implementation of unified CL Kernels for Binary LOGICAL OPS (AND & OR).

Unified CL kernel can be implemented.

This patch is an implementation of unified CL Kernel for Binary LOGICAL OPS (AND & OR).

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Fix wrong ifdef guard in Sink (#3883)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 6 Dec 2018 00:21:33 +0000 (09:21 +0900)]
[neurun] Fix wrong ifdef guard in Sink (#3883)

This commit fixes wrong ifdef guard in `Sink`.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years ago Generate generated test cpp files on configuration (#3874)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 6 Dec 2018 00:21:21 +0000 (09:21 +0900)]
 Generate generated test cpp files on configuration (#3874)

* Rename generated dir to generated_remove

`generated` dir will be used for generated cpp files by
`generate_test.sh`. And `generated_remove` will be removed later.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Generate generated tests on demand

Generate generated tests on demand

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoFix include dir setting in cmake (#3881)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 5 Dec 2018 07:29:41 +0000 (16:29 +0900)]
Fix include dir setting in cmake (#3881)

Remove libs/util/include in NNFW_INCLUDE_DIR list
Fix cmake include for libs/util
Fix cmake link for neurun cpu kernel

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoFix header files format in libs (#3879)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 5 Dec 2018 07:29:18 +0000 (16:29 +0900)]
Fix header files format in libs (#3879)

Fix header files format in libs except comes from public tensorflow

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoUnify REDUCE_MIN and REDUCE_MAX kernels (#3859)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 07:21:00 +0000 (12:51 +0530)]
Unify REDUCE_MIN and REDUCE_MAX kernels (#3859)

This patch unifies reduce_min and reduce_max cl kernels
Related issue: #3771

Done to reduce code redundancy.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoUse asPadstrideInfo utility to calc pad values in TransposeConv op (#3705)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 07:14:35 +0000 (12:44 +0530)]
Use asPadstrideInfo utility to calc pad values in TransposeConv op (#3705)

This patch removes the internal calc of pad values during execution and uses asPadstrideInfo
utility to calc the same.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Remove internal/nnapi (#3880)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 5 Dec 2018 07:13:44 +0000 (16:13 +0900)]
[neurun] Remove internal/nnapi (#3880)

Now that we removed the use of classes in `internal::nnapi::kernel`, we
can remove this directory.

Related PR : #3862

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoMove include/support (#3876)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 5 Dec 2018 06:24:07 +0000 (15:24 +0900)]
Move include/support (#3876)

Move include/support to libs/support/include/support
Update cmake for include
Add .FORMATDENY to avoid format checking

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove un-necessary header files from Equal CL kernel config files (#3875)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 06:08:35 +0000 (11:38 +0530)]
Remove un-necessary header files from Equal CL kernel config files (#3875)

This patch removes un-necessary header files from Equal CL kernel config files

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoChanges in PACK GTest as per specifications in NNAPI (#3866)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 06:08:02 +0000 (11:38 +0530)]
Changes in PACK GTest as per specifications in NNAPI (#3866)

This patch makes changes in PACK GTests as per specification in NNAPI.
Refer #3864 for specification.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoMove include/util (#3872)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 5 Dec 2018 05:47:14 +0000 (14:47 +0900)]
Move include/util (#3872)

* Move include/util

Move include/util to libs/util/include/util
Update cmake for include

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Add .FORMATDENY file

Format for header will be fixed later

5 years ago[neurun] Remove usage of internal/nnapi/kernel (#3862)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 5 Dec 2018 04:25:53 +0000 (13:25 +0900)]
[neurun] Remove usage of internal/nnapi/kernel (#3862)

Now that feature is 4D, so this commit removes kernel usage for unifying
kernel and feature. This commit includes removal of dynamic_cast to
backend implementations, which had to be done with this work.

Removing files in `internal/nnapi/kernel` will be done in another
commit.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoChange operator TENSORFLOW_SUM name (#3747)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 5 Dec 2018 03:08:23 +0000 (12:08 +0900)]
Change operator TENSORFLOW_SUM name (#3747)

Change operator ANEURALNETWORKS_TENSORFLOW_SUM_EX name to ANEURALNETWORKS_REDUCE_SUM_EX

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoCorrection in gtests for unpack op (#3869)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 01:47:01 +0000 (07:17 +0530)]
Correction in gtests for unpack op (#3869)

This patch corrects the gtests for unpack op.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoCorrecting the order of input in unpack op (#3868)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 01:46:05 +0000 (07:16 +0530)]
Correcting the order of input in unpack op (#3868)

This patch corrects the order in which the unpack op takes the input as suggested in #3787.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoRemove Mobilenet_quantized gtest from skiplist (#3836)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 01:01:23 +0000 (06:31 +0530)]
Remove Mobilenet_quantized gtest from skiplist (#3836)

This patch will remove Mobilenet_quantized gtest from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCode realignment for namespace to seperate it from CLass func (#3792)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 01:00:36 +0000 (06:30 +0530)]
Code realignment for namespace to seperate it from CLass func (#3792)

This patch will realign the code in the namespace so as to have
greater readablity and clear seperation from the class member funcs.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove deperecated kernel header (#3860)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 5 Dec 2018 00:48:32 +0000 (09:48 +0900)]
Remove deperecated kernel header (#3860)

Remove deperecated kernel header in include/kernel/acl

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[tfltool] Enable select operator for LogicalNot op (#3819)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 00:21:42 +0000 (05:51 +0530)]
[tfltool] Enable select operator for LogicalNot op (#3819)

This patch enables LogicalNot in tflitetool in select_operator.py

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd generatedtests for TransposeConv (#3710)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 5 Dec 2018 00:17:31 +0000 (05:47 +0530)]
Add generatedtests for TransposeConv (#3710)

This patch adds generatedtests for TransposeConv.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoRemove space_to_batch_quant gtests from skiplist (#3780)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 11:04:26 +0000 (16:34 +0530)]
Remove space_to_batch_quant gtests from skiplist (#3780)

this patch will remove space_to_batch_quant gtests from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCorrection in the commnets in gtest filees (#3834)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 11:03:52 +0000 (16:33 +0530)]
Correction in the commnets in gtest filees (#3834)

This patch will correct the commnets for number of values for input
and output in the gtests.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoReplace ambiguous comments in Gather GTests (#3832)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 11:02:49 +0000 (16:32 +0530)]
Replace ambiguous comments in Gather GTests (#3832)

This patch replaces ambiguous comments in Gather GTests

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tfltool] Correction in select operator for ArgMax op (#3854)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 11:01:36 +0000 (16:31 +0530)]
[tfltool] Correction in select operator for ArgMax op (#3854)

This patch removes "not supported" for ArgMax in tflitetool in select_operator.py

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoRedefining ArgMinMax CPU implementation as SimpleArgMinMax (#3812)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 10:57:06 +0000 (16:27 +0530)]
Redefining ArgMinMax CPU implementation as SimpleArgMinMax (#3812)

This patch redefines ArgMinMax CPU implementation as SimpleArgMinMax,
     Since we follow adding 'Simple' as prefix for CPU implementation as a naming convention.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoUpdate Dockerfile (#3856)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 10:50:42 +0000 (19:50 +0900)]
Update Dockerfile (#3856)

Update Dockerfile to have python3 in the docker image.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRevise nnfw.spec for tizen (#3857)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 10:49:00 +0000 (19:49 +0900)]
Revise nnfw.spec for tizen (#3857)

Add a required package python 3.
This is for test generation on build time.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRedefine HashTableLookup CPU implementation as SimpleHashTableLookup (#3804)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 10:47:57 +0000 (16:17 +0530)]
Redefine HashTableLookup CPU implementation as SimpleHashTableLookup (#3804)

This patch redefines HashTableLookup CPU implementation as SimpleHashTableLookup.
Since we follow a naming convention for CPU implementation with prefix 'Simple'.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tflkit] Fix bug tflite_convert.sh for version<2 (#3704)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 10:40:07 +0000 (19:40 +0900)]
[tflkit] Fix bug tflite_convert.sh for version<2 (#3704)

Fix bug tflite_convert.sh for version<2 setting allow_custom_ops

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRevise build flags for contrib (#3855)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 10:39:18 +0000 (19:39 +0900)]
Revise build flags for contrib (#3855)

Revise build flags order for contrib in CfgOptionFlags.cmake
Introduce build flag for tf_test
Use build flag BUILD_LAB for opencl_test build
Change build flags' default for contrib off

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[tfltool] Correction in select operator for RNN op (#3852)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 08:58:05 +0000 (14:28 +0530)]
[tfltool] Correction in select operator for RNN op (#3852)

This patch rectifies RNN in tflitetool in select_operator.py

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years ago[neurun] Remove backend dependency in View (#3821)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 08:14:35 +0000 (17:14 +0900)]
[neurun] Remove backend dependency in View (#3821)

* [neurun] Remove backend dependency in View

This commit removes `backend dependency` in `View` classes.

- Add `offset_element_in_bytes` abstract function to `ITensor`
- Make `View` gets `ITensor`

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Change offset_element_in_bytes to calcOffset

5 years agoDefine Gather_Ex op in NeuralNetworkEx.h (#3756)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 08:00:28 +0000 (13:30 +0530)]
Define Gather_Ex op in NeuralNetworkEx.h (#3756)

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

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd nnapi_delegation for PACK n UNPACK (#3787)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 07:58:30 +0000 (13:28 +0530)]
Add nnapi_delegation for PACK n UNPACK (#3787)

This patch adds nnapi_delegation for pack and unpack op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoUpdate pack input parameters (#3848)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 06:46:20 +0000 (15:46 +0900)]
Update pack input parameters (#3848)

The values_count is added by nnapi_delegate
but it is not necessary because it can be replaced with ifm_indexes.size()
So it will be ignored

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoRemove deprecated contrib directories (#3844)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 05:38:32 +0000 (14:38 +0900)]
Remove deprecated contrib directories (#3844)

Remove example, bindacl, and convacl directories

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd nnapi delegates for reduce_xx ops (#3786)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 05:21:31 +0000 (14:21 +0900)]
Add nnapi delegates for reduce_xx ops (#3786)

Add delegates for tflite::BuiltinOperator_SUM,
tflite::BuiltinOperator_REDUCE_MAX, and tflite::BuiltinOperator_REDUCE_MIN

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoRemove Reduce Min GTest from skiplist (#3842)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 04:45:09 +0000 (10:15 +0530)]
Remove Reduce Min GTest from skiplist (#3842)

This patch removes Reduce Min GTest from skiplist.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd tf_classify reference application (#3642)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 04:44:49 +0000 (13:44 +0900)]
Add tf_classify reference application (#3642)

* Add tf_classify reference application

This patch creates an `example` directory
The tf_classify application is based on TendofFlow Android Camera Demo.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Change application name and move the location

Use tflite_classify instead of tf_classify
Move application under contrib directory
Do not support to download files

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Add const keyword and remove unnecessary library link

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Use std::vector instead of c-style array

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Use OpenCV C++ apis

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
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>