platform/core/ml/nnfw.git
5 years agoDefine compile state (#4055)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 17 Dec 2018 09:47:56 +0000 (18:47 +0900)]
Define compile state (#4055)

* Define compile state

- Define 4 compile state getter/setter in plan
- Set compiled state when compile finished

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Rename getter & setter

* Use class enum instead of enum

5 years agoMove test-related codes in tools into tests (#4058)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 17 Dec 2018 09:47:44 +0000 (18:47 +0900)]
Move test-related codes in tools into tests (#4058)

Move test-related codes in tools into tests
- nnapi_test
- tflite_run
- tflite_benchmark
- tflite_benchmark_model

Update cmake, root makefile, and spec file

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd gtests to test pack and unpack op for int daatypes (#4038)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 09:34:06 +0000 (15:04 +0530)]
Add gtests to test pack and unpack op for int daatypes (#4038)

This patch will add gtests to test pack and unpack
op for int32 datatypes

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRearranging non-class func to seperate from CLass func (#4051)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 09:33:44 +0000 (15:03 +0530)]
Rearranging non-class func to seperate from CLass func (#4051)

It will be better to put non-class func in namespace
to have clear seperation of class and non-class func

This patch will rearrange the val_arg func so as to
have that in a namespace.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCollect implementation test code into contrib/labs (#4025)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 17 Dec 2018 08:06:22 +0000 (17:06 +0900)]
Collect implementation test code into contrib/labs (#4025)

Collect contribs build by BUILD_LABS into contrib/labs
Move tools/tflite_examples into contrib/labs

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Remove backend depenency in Permute (#4011)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 17 Dec 2018 06:27:08 +0000 (15:27 +0900)]
[neurun] Remove backend depenency in Permute (#4011)

This commit removes backend dependency in `Permute` such as `Window`, `Iterator` and `ICLTensor`...

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoRemove environment checking in profiling library (#4053)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 17 Dec 2018 04:21:57 +0000 (13:21 +0900)]
Remove environment checking in profiling library (#4053)

* Remove environment checking in profiling library

Remove Sync class
Define boolean sync field and setter in Context
Remove environment checking in profiling library

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Rename env: PROFILING_OP_SYNC

5 years agoMove build flag for benchmark model tool checking (#4056)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 17 Dec 2018 04:20:41 +0000 (13:20 +0900)]
Move build flag for benchmark model tool checking (#4056)

Move build flag BUILD_TFLITE_BENCHMARK_MODEL checking into tool's cmake

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove PReLU Layer from internal/layers (#4043)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 01:56:25 +0000 (07:26 +0530)]
Remove PReLU Layer from internal/layers (#4043)

This patch removes PReLU layer from internal/layers
Since cl kernel for the same has been implemented and merged.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRealignment of doxygen comments in various CL Host files (#4052)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 01:39:46 +0000 (07:09 +0530)]
Realignment of doxygen comments in various CL Host files (#4052)

In order to have uniformity and similarity to ACL
and NeuralNetworks.h's style of doxygen comments,
this patch realigns the comments.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd CLKernel calls for Comparison operators (#4044)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 01:05:23 +0000 (06:35 +0530)]
Add CLKernel calls for Comparison operators (#4044)

This patch adds CLKernel calls for comparison operators
- Equal
- Not Equal

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoChanges in DataType supported by CL and host files of SquaredDifference and Neg ...
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 07:11:48 +0000 (12:41 +0530)]
Changes in DataType supported by CL and host files of SquaredDifference and Neg (#4013)

This patch adds changes in DataType supported by CL and host files of SquaredDifference and Neg
Reference NeuralNetworksEx.h

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Replace EnvVar with ConfigManager (#4045)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 14 Dec 2018 07:09:43 +0000 (16:09 +0900)]
[neurun] Replace EnvVar with ConfigManager (#4045)

Replace EnvVar with ConfigManager. Some default values are revised to
work in the same way as before.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoCorrection in various gtests (#4036)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 06:40:16 +0000 (12:10 +0530)]
Correction in various gtests (#4036)

1.correction in datatype for shape
2.correction in input and output values based on datatype
3.renaming files based on the datatype they are testing for.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Remove backend/acl_cl/kernel/View.h (#4003)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 14 Dec 2018 06:25:01 +0000 (15:25 +0900)]
[neurun] Remove backend/acl_cl/kernel/View.h (#4003)

Related : #3983

This commit removes `backend/acl_cl/kernel/View.h` that is duplicated with other `View` classes.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoAdd missing assertions in TransposeConv visit func (#4027)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 02:22:47 +0000 (07:52 +0530)]
Add missing assertions in TransposeConv visit func (#4027)

This patch will add assertions for tensors rank in TransposeConv
visit func

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRenaming of gtests to provide the datatype info they are testing (#4035)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 02:10:25 +0000 (07:40 +0530)]
Renaming of gtests to provide the datatype info they are testing (#4035)

Since many of the gtests have datatype in their name which they are
testing. Moreover, having datatype in the names will give more clear
distinction in gtests, this patch renames the gtest files to do the
same.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Move template specializations (#4039)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 14 Dec 2018 01:37:20 +0000 (10:37 +0900)]
[neurun] Move template specializations (#4039)

Move template specializations to source file to avoid duplicated
definition error.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Create a singleton for ConfigManager (#4040)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 14 Dec 2018 01:37:05 +0000 (10:37 +0900)]
[neurun] Create a singleton for ConfigManager (#4040)

Create a singleton for ConfigManager. Restrict ctor to be private so it
does not instantiated by code from other places.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRemove unnecessary switch case from ArgMinMax kernel (#4033)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 01:35:50 +0000 (07:05 +0530)]
Remove unnecessary switch case from ArgMinMax kernel (#4033)

Since axis is always less than input rank and in Host file
there is already an assertion of axis<rank.
this switch case is not req and hence reducing the unnecessary
switch arithematic.

This patch will remove this unnecessary switch case and reducing code
redundancy.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove dependece of data format(NHWC) of PACL runtime from kernels of SPACE_TO_BATCH_...
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 14 Dec 2018 01:17:27 +0000 (10:17 +0900)]
Remove dependece of data format(NHWC) of PACL runtime from kernels of SPACE_TO_BATCH_ND (#4024)

This commit removes dependece of data format(NHWC) of PACL runtime from kernels of SPACE_TO_BATCH_ND.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoAdding float gtests for split (#4028)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 01:17:12 +0000 (06:47 +0530)]
Adding float gtests for split (#4028)

This patch adds float gtests for split.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoImplementation for CL to support padding for tensors upto rank<=4 (#3945)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 01:16:01 +0000 (06:46 +0530)]
Implementation for CL to support padding for tensors upto rank<=4 (#3945)

This patch will enable pad op to support padding of tensors having
rank <=4

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove AND GTests from skiplist (#3982)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 01:15:15 +0000 (06:45 +0530)]
Remove AND GTests from skiplist (#3982)

This patch removes AND GTests from skiplists.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd DataTypes supported by BinaryLogicalOp CL Kernel (#4012)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 01:13:54 +0000 (06:43 +0530)]
Add DataTypes supported by BinaryLogicalOp CL Kernel (#4012)

This patch adds DataType supported by BinaryLogicalOp CL Kernel

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd CL Kernel for PRELU (#3961)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 01:13:29 +0000 (06:43 +0530)]
Add CL Kernel for PRELU (#3961)

This patch adds single CL Kernel for PReLU implemented as,

f(x) = alpha * x for x < 0, f(x) = x for x >= 0.

As of now (#3901 ) PReLU implemented as,

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

Scope:

- Optimization
- No switch between CPU & GPU

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd tests for LogicalNot (#3600)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 14 Dec 2018 01:02:43 +0000 (04:02 +0300)]
Add tests for LogicalNot (#3600)

This commit adds tests for LogicalNot op

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoPropose unified kernel for Comparison operators and bug fix (#3914)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 14 Dec 2018 00:58:59 +0000 (06:28 +0530)]
Propose unified kernel for Comparison operators and bug fix (#3914)

This patch proposed unified CL Kernel for Comparison operator
This patch includes:
- CL kernel for EQUAL/NOT_EQUAL
- TRUTH value bug fix
- CL Kernel that can be easily extended for GT, LT, GE, LE

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoUpdate namespace and ifdef for libs/misc (#4022)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 10:14:56 +0000 (19:14 +0900)]
Update namespace and ifdef for libs/misc (#4022)

Update ifdef for libs/misc
Update namespace libs/misc as nnfw::misc

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoMove tools/test_driver to tests/scripts (#4019)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 09:42:59 +0000 (18:42 +0900)]
Move tools/test_driver to tests/scripts (#4019)

* Move tools/test_driver to tests/scripts

Move tools/test_driver to tests/scripts
Update test path
Workaround for CI

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Comment in Makefile for workaround

5 years ago[neurun] Introduce ConfigManager (#4021)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 13 Dec 2018 09:39:44 +0000 (18:39 +0900)]
[neurun] Introduce ConfigManager (#4021)

Introduce ConfigManager that manages global configuration data.
The values are from Environment Variables.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoCorrection in GTests of Equal_Ex with truth value as 0xff (255) (#3927)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 13 Dec 2018 09:36:13 +0000 (15:06 +0530)]
Correction in GTests of Equal_Ex with truth value as 0xff (255) (#3927)

This patch corrects GTests of Equal_Ex with truth value as 0xff (255)
Related issue: #3823 #3851

As quoted by @hseok82-oh

>IMO, use 0xff (255) for true, and 0x00 (0) for false in test.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd gtest to test broadcasting in Notequal op (#3717)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 13 Dec 2018 09:27:16 +0000 (14:57 +0530)]
Add gtest to test broadcasting in Notequal op (#3717)

This patch will test broadcasting in notequal op

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoUpdate namespace in libs/tflite/ext (#4015)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 07:37:15 +0000 (16:37 +0900)]
Update namespace in libs/tflite/ext (#4015)

Update namespace in libs/tflite/ext to nnfw::tflite
Reduce namespace depth for custom op

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Use IObject in PermuteLayer (#4005)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 13 Dec 2018 04:02:25 +0000 (13:02 +0900)]
[neurun] Use IObject in PermuteLayer (#4005)

This commit uses `IObject` insted of `ITensor` in `PermuteLayer`, since we don't want to use `map/unmap` functions explicitly and to get any `ACL` dependencies.

Related : #3279
Part of : #3873

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoFix external tensorflow lite build cmake (#4007)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 03:21:05 +0000 (12:21 +0900)]
Fix external tensorflow lite build cmake (#4007)

- Remove BUILD_TFLITE_BENCHMARK_MODEL check for profiling source code
- Fix typo

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRename tensorflow lite interpreter test (#4009)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 03:20:41 +0000 (12:20 +0900)]
Rename tensorflow lite interpreter test (#4009)

* Rename tensorflow lite interpreter test

Rename tensorflow lite interpreter test by comparing with result of tensorflow
: tf_test -> tflite_test

* Fix build option description

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoMove how to run guideline into readme file (#3987)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 13 Dec 2018 02:14:31 +0000 (11:14 +0900)]
Move how to run guideline into readme file (#3987)

This patch moves the how to run guideline into readme file

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoAdd argmax quant8 to skiplist (#4004)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 01:43:53 +0000 (10:43 +0900)]
Add argmax quant8 to skiplist (#4004)

Add argmax quant8 to skiplist: test fail

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoMove libs/misc/profiling to libs/profiling (#3997)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 01:35:01 +0000 (10:35 +0900)]
Move libs/misc/profiling to libs/profiling (#3997)

Move libs/misc/profiling to libs/profiling for profiling library
Update cmake to link profiling library
Update header path for profiling
Update cmake for tensorflow build to support build with BUILD_TFLITE_BENCHMARK_MODEL option

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoArgMinMax CL kernel for ArgMax and ArgMin (#3867)
PRAVEEN DORESWAMY NAIDU/SNAP /SRI-Bangalore/Staff Engineer/삼성전자 [Thu, 13 Dec 2018 00:58:06 +0000 (06:28 +0530)]
ArgMinMax CL kernel for ArgMax and ArgMin (#3867)

The changes introduce the argmax and argmin CL kernel in one cl file.

Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years agoAdd gtest to test LogicalAnd op for 2D and 3D tensors (#3938)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 13 Dec 2018 00:53:26 +0000 (06:23 +0530)]
Add gtest to test LogicalAnd op for 2D and 3D tensors (#3938)

This patch will add gtests to test logicalAnd op for 2D and 3D tensors

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtest to test LogicalOr for 2D and 3D tensors (#3939)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 13 Dec 2018 00:53:06 +0000 (06:23 +0530)]
Add gtest to test LogicalOr for 2D and 3D tensors (#3939)

This patch will add gtests to test logicalOr for 2d and 3d tensors

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoPass explicitly local workgroup size to enqueue in acl (#3996)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 13 Dec 2018 00:51:13 +0000 (09:51 +0900)]
Pass explicitly local workgroup size to enqueue in acl (#3996)

This patch allows the local workgroup size(_lws_hint) value pass to enqueue function

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[neurun] Introduce Config.lst (#3999)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 13 Dec 2018 00:17:01 +0000 (09:17 +0900)]
[neurun] Introduce Config.lst (#3999)

Config.lst is a macro list with fields "Name", "Type", "Default value".

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Fix wrong size calculation when permuting (#3998)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 12 Dec 2018 11:16:02 +0000 (20:16 +0900)]
[neurun] Fix wrong size calculation when permuting (#3998)

This commit fixes wrong size calculation when permuting.
It should be data size not pointer size.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoApply dim correction to neg operator (#3986)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 12 Dec 2018 10:42:03 +0000 (19:42 +0900)]
Apply dim correction to neg operator (#3986)

This allows to apply dim correction to Neg operator

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[neurun] Change ifdef guard in Convert.h (#3990)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 12 Dec 2018 10:13:08 +0000 (19:13 +0900)]
[neurun] Change ifdef guard in Convert.h (#3990)

This commit changes ifdef guard in `Convert.h` to correct.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years ago[neurun] Use host memory in acl_cl (#3974)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 12 Dec 2018 10:10:56 +0000 (13:10 +0300)]
[neurun] Use host memory in acl_cl (#3974)

Related issue:3735
Add CLTensor::setBuffer to be able to use host memory from the acl_cl

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoAdd GTests to test broadcast of LogicalAND op (#3950)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 09:02:19 +0000 (14:32 +0530)]
Add GTests to test broadcast of LogicalAND op (#3950)

This patch adds GTests to test broadcast of LogicalAND op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoADD 1D, 2D, 3D, 4D GTests for RSQRT (#3932)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 09:02:02 +0000 (14:32 +0530)]
ADD 1D, 2D, 3D, 4D GTests for RSQRT (#3932)

This patch adds 1D, 2D, 3D, 4D GTests for RSQRT

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix build bug by tflite library namespace (#3993)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 12 Dec 2018 08:56:23 +0000 (17:56 +0900)]
Fix build bug by tflite library namespace (#3993)

Fix build bug by tflite library namespace change

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoUpdate namespace and ifdef for tflite library (#3968)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 12 Dec 2018 08:39:07 +0000 (17:39 +0900)]
Update namespace and ifdef for tflite library (#3968)

* Update namespace and ifdef for tflite library

Make tflite/extend directory for ported codes from public tensorflow
Update namespace except extended directory
Update ifdef in header

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Rename tflite/extend to tflite/ext

* Fix format

* Update ifdef in ext

* Flatten namespace nnfw::tflite::interp to nnfw::tflite

* Add comment for endif

5 years agoAdd missing axises comment (#3979)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 08:38:08 +0000 (14:08 +0530)]
Add missing axises comment (#3979)

This patch will add missing axises comment.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoFix wrong radius of LRN in NENormalization (#3977)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 08:27:54 +0000 (13:57 +0530)]
Fix wrong radius of LRN in NENormalization (#3977)

Fix wrong radius setting for LRN

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoMake TestGenerated file for each version (#3975)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 12 Dec 2018 07:38:50 +0000 (16:38 +0900)]
Make TestGenerated file for each version (#3975)

* Make TestGenerated file for each version

On coverage build, build have failed since all_generated_tests.cpp is too
large. This patch will generate a test file for each NNAPI version.

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Extract common code from TestGenerated_XX.cpp

- Extract common code from TestGenerated_XX.cpp

5 years agoSupport boolean input param in tflite_run (#3958)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 12 Dec 2018 05:13:21 +0000 (14:13 +0900)]
Support boolean input param in tflite_run (#3958)

This patch assigns random boolean value to boolean input param.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoAdd gtest to test Exp op for 3D/4D tesnors (#3797)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 04:03:42 +0000 (09:33 +0530)]
Add gtest to test Exp op for 3D/4D tesnors (#3797)

This patch will add gtest to test Exp op for tesnors having
dimensions other than 4

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd CL Kernel calls for LogicalAnd op (#3970)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 02:00:35 +0000 (07:30 +0530)]
Add CL Kernel calls for LogicalAnd op (#3970)

This patch adds CL Kernel calls for LogicalAnd op

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemove setting of false to apply_dim_correction in compilation,cc for Broadcast suppo...
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 01:59:53 +0000 (07:29 +0530)]
Remove setting of false to apply_dim_correction in compilation,cc for Broadcast support ops (#3976)

This patch removes setting of false to apply_dim_correction in compilation,cc for Broadcast support ops.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd GTests to test broadcast of LogicalOR (#3949)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 01:52:17 +0000 (07:22 +0530)]
Add GTests to test broadcast of LogicalOR (#3949)

This patch adds GTests to test broadcast of LogicalOR.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago Redefine REDUCE_MIN in NeuralNetworkEx.h (#3925)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 01:14:51 +0000 (06:44 +0530)]
Redefine REDUCE_MIN in NeuralNetworkEx.h (#3925)

This patch redefines REDUCE_MIN in NeuralNetworkEx.h
    explaining it supports INT32 also
    Reference tf.reduce_min
    input_tensor: The tensor to reduce. Should have numeric type.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago Redefine REDUCE_MIN in NeuralNetworkEx.h (#3926)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 01:14:03 +0000 (06:44 +0530)]
Redefine REDUCE_MIN in NeuralNetworkEx.h (#3926)

This patch redefines REDUCE_MIN in NeuralNetworkEx.h
    explaining it supports INT32 also
    Reference tf.reduce_max
    ```
    input_tensor: The tensor to reduce. Should have numeric type.
    ```

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd gtest to test neg op for int datatype (#3930)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 01:13:43 +0000 (06:43 +0530)]
Add gtest to test neg op for int datatype (#3930)

This patch will add gtest to test neg for int datatype

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCorrection in GTests of NotEqual_Ex with truth value as 0xff (255) (#3929)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 12 Dec 2018 01:11:20 +0000 (06:41 +0530)]
Correction in GTests of NotEqual_Ex with truth value as 0xff (255) (#3929)

This patch corrects GTests of NotEqual_Ex with truth value as 0xff (255)
Related issue: #3823 #3851

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoFix Typo in internal/op/* files (#3973)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 11 Dec 2018 07:04:53 +0000 (12:34 +0530)]
Fix Typo in internal/op/* files (#3973)

This patch fixes typo issues in internal/op/*.h files
changes:
```defualt -> default```

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix typo on SimpleArgMinMax.cc (#3972)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 11 Dec 2018 06:15:18 +0000 (15:15 +0900)]
Fix typo on SimpleArgMinMax.cc (#3972)

fix typo : defualy -> default

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoUse TFLiteConverter instead of deprecated API in tensorflow_model_freezer (#3917)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 11 Dec 2018 05:15:19 +0000 (14:15 +0900)]
Use TFLiteConverter instead of deprecated API in tensorflow_model_freezer (#3917)

Add prerequires section in readme
Use tflite v1.12 tool to support the extended operators
Fix some tc errors

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoAdd sample py example for some operator (#3919)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 11 Dec 2018 04:35:50 +0000 (13:35 +0900)]
Add sample py example for some operator (#3919)

Added operators:
ARGMAX, ARGMIN, LOGICAL_AND, LOGICAL_NOT, LOGICAL_OR, STACK, UNSTACK

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoUpdate tflite library name in cmake (#3967)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 11 Dec 2018 02:41:31 +0000 (11:41 +0900)]
Update tflite library name in cmake (#3967)

Update tflite library name in cmake to nnfw_lib_tflite

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Remove default values in View.h (#3966)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 11 Dec 2018 02:08:18 +0000 (11:08 +0900)]
[neurun] Remove default values in View.h (#3966)

This commit removes default values of `feature_index_to_byte_offset`'s parameter in `View.h`.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoUpdate namespace of nnapi library (#3965)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 11 Dec 2018 00:39:06 +0000 (09:39 +0900)]
Update namespace of nnapi library (#3965)

Update namespace of nnapi library: nnfw::support::nnapi to nnfw::nnapi
Update header ifdef

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Fix wrong parameter in nchw View.h (#3963)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 10 Dec 2018 11:26:29 +0000 (20:26 +0900)]
[neurun] Fix wrong parameter in nchw View.h (#3963)

This commit fixes wrong parameter for 3 rank in nchw `View.h`.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoRename libs/util to libs/misc and update cmake (#3962)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 10 Dec 2018 11:23:19 +0000 (20:23 +0900)]
Rename libs/util to libs/misc and update cmake (#3962)

Rename libs/util to libs/misc
Use static build only

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoResolve inconsistencies in the boolean data values (#3957)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 10 Dec 2018 08:26:57 +0000 (17:26 +0900)]
Resolve inconsistencies in the boolean data values (#3957)

* Resolve inconsistencies in the boolean data values

Since the data is stored in the index value of the input/output tensors,
it is modified to use the index value when it accesses the data.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Use meaningful variable names

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