platform/core/ml/nnfw.git
5 years ago[neurun]Merge 2 for-loops of PlanBuilder::finalize (#4118)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 21 Dec 2018 01:06:19 +0000 (04:06 +0300)]
[neurun]Merge 2 for-loops of PlanBuilder::finalize (#4118)

Since these two loops are independent and loop over the same
tensor_builders, better to merge them

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years ago[neurun] CamelCase DotDumper::dump_if_needed (#4117)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 21 Dec 2018 01:01:36 +0000 (04:01 +0300)]
[neurun] CamelCase DotDumper::dump_if_needed (#4117)

Convert style of DotDumper::dump_if_needed to camel case

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoCalculate build depth before script backup (#4107)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 20 Dec 2018 22:19:33 +0000 (07:19 +0900)]
Calculate build depth before script backup (#4107)

Calculate build depth and make depth count text file
Prepare CI update and removing backup

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoCmake for gbs build fix (#4115)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 20 Dec 2018 01:45:14 +0000 (10:45 +0900)]
Cmake for gbs build fix (#4115)

Fix gbs build failure: changed nnapi gtest directory name

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd #ifndef block for VEC_SIZE in comparison op cl kernel (#4109)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 20 Dec 2018 00:55:19 +0000 (06:25 +0530)]
Add #ifndef block for VEC_SIZE in comparison op cl kernel (#4109)

This patch adds #ifndef block for VEC_SIZE in comparison op cl kernel

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoChanges req in Binary Logical op files (#4082)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 20 Dec 2018 00:54:55 +0000 (06:24 +0530)]
Changes req in Binary Logical op files (#4082)

1. Add op_code related comment
2. Initialize op_code variable to have error handling
3. Indentation and correction in already present commnets
   changing #if defined conditions

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd #endif to #ifndef block in comparison_op_quantized cl (#4110)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 20 Dec 2018 00:50:50 +0000 (06:20 +0530)]
Add #endif to #ifndef block in comparison_op_quantized cl (#4110)

This patch adds  #endif to #ifndef block in comparison_op_quantized cl
Else it would be a fatal error stating unterminated #ifndef

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdding runtime asserts in TransposeConv. (#4099)
Devansh Bansal/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 20 Dec 2018 00:49:14 +0000 (06:19 +0530)]
Adding runtime asserts in TransposeConv. (#4099)

This patch adds shape related asserts for transpose_conv.

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years ago[neurun] Refactory call of DotDumper in compile() (#4113)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 20 Dec 2018 00:48:58 +0000 (03:48 +0300)]
[neurun] Refactory call of DotDumper in compile() (#4113)

No need to complicate Compiler::compile with codes, that don't relate to
compilation. So, this change moves env checking DotDumber related
branching into DotDumper

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoRename generated test (#4096)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 19 Dec 2018 00:58:29 +0000 (09:58 +0900)]
Rename generated test (#4096)

* Rename generated test

Rename generated test binary: nnapi_gtest
Rename directory including generated test: tests/nnapi
Revise directory structure

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

5 years agoCorrection of Datatypes supported by SquareDiff op (#4070)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 19 Dec 2018 00:42:50 +0000 (06:12 +0530)]
Correction of Datatypes supported by SquareDiff op (#4070)

This patch will remove S16/S32 validations and comment
since it is not supported as of now by the current
implementation.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoChanges in Reduce op files (#4081)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 19 Dec 2018 00:41:34 +0000 (06:11 +0530)]
Changes in Reduce op files (#4081)

1. Add missing op_code comment
2. Initialise op_code variable to have error handling
3. Indenting kernel code

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoChanges in Comparison op files (#4080)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 19 Dec 2018 00:41:03 +0000 (06:11 +0530)]
Changes in Comparison op files (#4080)

1. Add missing comments for op_code
2. Add #if definition to verify the preprocessors before executing
3. initialise op_code = 0 and changing the op_code values assigned
   to operation to have runtime error handling
4. Indentation of the kernel code.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoUnified ArgMin and ArgMax kernel (#4083)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 19 Dec 2018 00:40:37 +0000 (06:10 +0530)]
Unified ArgMin and ArgMax kernel (#4083)

This patch will create a single kernel which can
handle both ArgMax and ArgMin op, hence reducing the
code redundancy.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[tflite_run] Do not support image inputs (#4098)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 18 Dec 2018 10:44:43 +0000 (19:44 +0900)]
[tflite_run] Do not support image inputs (#4098)

The image file as input is not our way of testing any longer. Since this
only support inception v3 IFM, it would be nicer not to have this
option.

Resolve #1206

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRedefine LogicalOperation as BinaryLogicalOperation in TypesEx and remove NOT (#4089)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 10:14:08 +0000 (15:44 +0530)]
Redefine LogicalOperation as BinaryLogicalOperation in TypesEx and remove NOT (#4089)

This patch renames LogicalOperations as BinaryLogicalOperations in TypesEx.h
Removes NOT from enum.
Reason:
This enum was introduced with an aim of providing unified kernels for LogicalOps
But unified kernel is provided only for BinaryLogicalOps
and hence LogicalNot enum value is never used.
Hence it would be better to rename and remove NOT flag from it,

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Move operation files from graph to model (#4095)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 18 Dec 2018 10:12:13 +0000 (19:12 +0900)]
[neurun] Move operation files from graph to model (#4095)

* [neurun] Move operation files from graph to model

Move pure model related classes from `graph/operaation` to
`model/operation`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Update ifdef guards

* Fix ifdef guards

5 years ago[neurun] Move logging.h to `util` dir (#4087)
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 18 Dec 2018 10:08:33 +0000 (19:08 +0900)]
[neurun] Move logging.h to `util` dir (#4087)

* [neurun] Move logging.h to `util` dir

Move logging.h to `util` dir and update namespace accordingly.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Fix namespace

5 years agoAdd calls to CPU version of SimpleArgMinMax op (#4029)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 07:07:43 +0000 (12:37 +0530)]
Add calls to CPU version of SimpleArgMinMax op (#4029)

This patch will add call to CPU version of ArgMinMax op
and changing SimpleArgMinMax files to use ArgOperation enum

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoMove generated test into tests directory (#4090)
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 18 Dec 2018 06:48:14 +0000 (15:48 +0900)]
Move generated test into tests directory (#4090)

Move generated test in runtimes/tests to tests/runtime directory

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoMaking comparison_op_quantized.cl generic with VEC_SIZE (#4042)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 04:47:17 +0000 (10:17 +0530)]
Making comparison_op_quantized.cl generic with VEC_SIZE (#4042)

This patch makes comparison op quantized.cl more generic based on VEC_SIZE
replacement from 16 -> vec_size
This is done for better scaling of this kernel.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemove CL implementation of Equal & Not Equal (#4069)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 02:45:04 +0000 (08:15 +0530)]
Remove CL implementation of Equal & Not Equal (#4069)

Since CLComparisonOp which is an unified CL for comparison op is merged
the redundant files can be removed.
Related issue: #3851

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoIntroduce Nonius CMake Package (#4068)
박종현/On-Device Lab./Staff Engineer/삼성전자 [Tue, 18 Dec 2018 02:23:06 +0000 (11:23 +0900)]
Introduce Nonius CMake Package (#4068)

This commit integrates nonius benchmark framework as a nnfw
external dependency package.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoFix format and license in include (#4064)
오형석/On-Device Lab./Staff Engineer/삼성전자 [Tue, 18 Dec 2018 02:20:22 +0000 (11:20 +0900)]
Fix format and license in include (#4064)

Fix format of NeuralNetworksEx.h and NeuralNetworksExShim.h
Fix format of NeuralNetworksLoadHelpers.h: minimize diff with upstream code
Fix license of NeuralNetworksLoadHelpers.h: This file is comes from tensorflow, not android
Add comment in NeuralNetworksShim.h and NeuralNetworksLoadHelpers.h: related upstream code
Modify format checker to ignore NeuralNetworks.h

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoFix coverage report script (#4085)
오형석/On-Device Lab./Staff Engineer/삼성전자 [Tue, 18 Dec 2018 02:11:50 +0000 (11:11 +0900)]
Fix coverage report script (#4085)

Fix test tool directory
Remove remove-matching not existed: runtime/nn

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd default block in CLReduceOperation kernel (#4078)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 01:42:11 +0000 (07:12 +0530)]
Add default block in CLReduceOperation kernel (#4078)

This patch adds default block in CLReduceOperation kernel

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd default block to CLComparisonOp CL Kernel (#4077)
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 01:40:48 +0000 (07:10 +0530)]
Add default block to CLComparisonOp CL Kernel (#4077)

This patch adds default block to CLComparisonOp CL Kernel

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Move operand files from graph to model (#4071)
이한종/On-Device Lab./Engineer/삼성전자 [Tue, 18 Dec 2018 01:40:20 +0000 (10:40 +0900)]
[neurun] Move operand files from graph to model (#4071)

Move pure model related classes from `graph/operand` to `model/operand`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRemove Passing logicaOr gtest from skiplist (#3960)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 01:14:48 +0000 (06:44 +0530)]
Remove Passing logicaOr gtest from skiplist (#3960)

Remove Passing logicaOr gtest from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtests to test Pad op for 2D/3D tensors (#3946)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 01:08:00 +0000 (06:38 +0530)]
Add gtests to test Pad op for 2D/3D tensors (#3946)

This patch will add Pad gtest to test for 2D/3D tensors

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtests for ArgMax op to test int32 dataype (#4034)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 01:07:28 +0000 (06:37 +0530)]
Add gtests for ArgMax op to test int32 dataype (#4034)

Since the kernel states it support int32 datatype
So, these test cases will verfiy the same.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd gtests for transposeConv op to test Int32 dataype (#4037)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 18 Dec 2018 01:06:55 +0000 (06:36 +0530)]
Add gtests for transposeConv op to test Int32 dataype (#4037)

This patch will add gtest to test TransposeConv op
for int datatype

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoConfigure ARMCompute correctly (#4066)
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 17 Dec 2018 10:33:34 +0000 (19:33 +0900)]
Configure ARMCompute correctly (#4066)

This commit updates Makefile and ARMComputeConfig.cmake to correctly
configure ARMCompute library targets even for CI build.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
5 years agoCorrection in datatypes supported in NeuralNetworksEx (#4017)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 10:18:48 +0000 (15:48 +0530)]
Correction in datatypes supported in NeuralNetworksEx (#4017)

This patch will add INT32 supported comment in
1. arg_max
2. pack and unpack
3. abs
And remove INT32 supported comment from SquaredDifference

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoOptimising ArgMinMax kernel: remove extra global memeroy access (#4020)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 17 Dec 2018 09:48:49 +0000 (15:18 +0530)]
Optimising ArgMinMax kernel: remove extra global memeroy access (#4020)

This patch will optimise ArgMinMax kernel by remove the extra global memory
access which can done by local variable.

Signed-off-by: shubham <shub98.gupta@samsung.com>
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>