platform/core/ml/nnfw.git
5 years agoAdding assertions block for SpaceToBatch layer (#3269)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 23 Oct 2018 13:21:42 +0000 (18:51 +0530)]
Adding assertions block for SpaceToBatch layer (#3269)

This patch will add assertions for SpaceToBatch layer in visit function to handle exceptions

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Add default generate method (#3293)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 23 Oct 2018 09:37:28 +0000 (18:37 +0900)]
[neurun] Add default generate method (#3293)

Add default generate method for all IInitalizerGenerator. It returns
an empty list - i.e. no-op. Also this makes `Planner::visit` methods
call the initializer generation so all of them are identical. Later,
Planner implementation will be unified.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoAdd GTests for Equal_Ex (#3030)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 23 Oct 2018 09:35:16 +0000 (15:05 +0530)]
Add GTests for Equal_Ex (#3030)

equal_ex_1D_float.mod.py for 1D Tensor Inputs.
    equal_ex_4D_float.mod.py for 4D Tensor Inputs.
    equal_ex_quant.mod.py for QUANT8 Inputs.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix build command script (#3299)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Oct 2018 08:32:49 +0000 (17:32 +0900)]
Fix build command script (#3299)

Fix build command script
- configure: Add home, binary home option
- build-acl: Fix to build-acl before configure

By this, we can build
"[env-set] ./run build-acl & [env-set] ./run configure & ./run build & ./run install"

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoIntroduce ArgMax_EX in NeuralNetworkEx (#3207)
PRAVEEN DORESWAMY NAIDU/System SW /SRI-Bangalore/Staff Engineer/삼성전자 [Tue, 23 Oct 2018 07:48:20 +0000 (13:18 +0530)]
Introduce ArgMax_EX in NeuralNetworkEx (#3207)

Introducing ArgMax operation in NeuralNetworkEx.

Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years ago[neurun] Rename OperandConstraint generators (#3291)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 23 Oct 2018 03:03:43 +0000 (12:03 +0900)]
[neurun] Rename OperandConstraint generators (#3291)

This commit renames OperandConstraint static generator methods to be
natural.

Resolve #3239

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Add missed license to newly added files (#3290)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 23 Oct 2018 01:39:30 +0000 (10:39 +0900)]
[neurun] Add missed license to newly added files (#3290)

This commit adds missed license to newly added files.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoAdd restrictions and comments for several operations applying reducing (#3280)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 23 Oct 2018 00:51:37 +0000 (09:51 +0900)]
Add restrictions and comments for several operations applying reducing (#3280)

This commit adds restrictions and comments for several operations applying reducing.

- Restrictions
  In case of that input rank is 4 and output rank is not 4, supports reducing height and width or reducing depth.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoPAD op in PACL as CPU Fallback (#2857)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 23 Oct 2018 00:09:55 +0000 (05:39 +0530)]
PAD op in PACL as CPU Fallback (#2857)

This patch will add PAD op in PACL as CPU version

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoSupport scalar type for operand rank larger than 0 (#3281)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 22 Oct 2018 09:16:19 +0000 (18:16 +0900)]
Support scalar type for operand rank larger than 0 (#3281)

Support scalar type for operand rank larger than 0
Operand rank can be changed to 1 ~ 4 for broadcast operation

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove conflict helper comments in FeatureLoggingLayer.h (#3282)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 22 Oct 2018 08:12:48 +0000 (17:12 +0900)]
Remove conflict helper comments in FeatureLoggingLayer.h (#3282)

This commit removes conflict helper comments in `FeatureLoggingLayer.h`

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoAdd missed comment in asARMComputeCoordinates function (#3268)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Mon, 22 Oct 2018 06:34:01 +0000 (12:04 +0530)]
Add missed comment in asARMComputeCoordinates function (#3268)

This patch will add missed comments for asARMComputeCoordinates function in Cast.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Change bg color managing and colors in DotDumper (#3257)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 22 Oct 2018 06:32:14 +0000 (15:32 +0900)]
[neurun] Change bg color managing and colors in DotDumper (#3257)

close : #3241

This commit changes bg color managing and color scheme in DotDumper.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoAdd missing Apache License to PACK op. (#3277)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Mon, 22 Oct 2018 05:49:41 +0000 (11:19 +0530)]
Add missing Apache License to PACK op. (#3277)

This patch adds apache license to PACK op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoPatch to remove unused shape variables (#3271)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Mon, 22 Oct 2018 04:53:27 +0000 (10:23 +0530)]
Patch to remove unused shape variables (#3271)

This patch will remove unused shape variables.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCheck url for external source download (#3275)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 22 Oct 2018 02:50:51 +0000 (11:50 +0900)]
Check url for external source download (#3275)

Check url for external source download
If download url is not matched, download again

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoFix line-break automatically in format-checker.sh (#3256)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 22 Oct 2018 01:12:22 +0000 (10:12 +0900)]
Fix line-break automatically in format-checker.sh (#3256)

- CRLF, CR style line break are fixed automatically.
 : Diff can be found in format.patch

- Missed double-quote is added.
It caused the output string printed in one line without "\n".

- Removed `function` keyword that remained.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoRemove modelgen tool (#3263)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 19 Oct 2018 08:47:38 +0000 (17:47 +0900)]
Remove modelgen tool (#3263)

Remove modelgen tool since it can be done with tflchef from nncc.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[Coverage] Remove codes for CPU from CLStridedSlice (#3238)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 19 Oct 2018 07:21:28 +0000 (16:21 +0900)]
[Coverage] Remove codes for CPU from CLStridedSlice (#3238)

This commit Removes codes for CPU from CLStridedSlice.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoIntroduce install script (#3254)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 19 Oct 2018 07:19:49 +0000 (16:19 +0900)]
Introduce install script (#3254)

* Introduce install script

introduce install script
Howto:  On project root, "./run install" with environment variable setting

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Remove ambiguous comment

5 years agoFix neurun build option (#3253)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 19 Oct 2018 02:26:33 +0000 (11:26 +0900)]
Fix neurun build option (#3253)

Fix neurun build option in cmake option setting: BUILD_NEURUN

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Introduce Add operation (#3246)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 19 Oct 2018 01:33:41 +0000 (10:33 +0900)]
[neurun] Introduce Add operation (#3246)

* [neurun] Introduce Add operation

This commit introduces Add operation. For neurun we avoid adding
operations before we fix the API for the backends, however this is an
exception for testing broadcast Add.

Backend implementations are NYI.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Throw `std::runtime_error`

5 years agoinstall all skiplist file (#3209)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 19 Oct 2018 01:21:10 +0000 (10:21 +0900)]
install all skiplist file (#3209)

* install all skiplist file

install all skiplist file when enable building both runtime
User can change skiplist file by copy or rename

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

Fix unittest script ignore *.skip* files

5 years agoAdd CL kernel to provide GPU support for SpaceToDepth op (#3134)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 19 Oct 2018 01:08:32 +0000 (06:38 +0530)]
Add CL kernel to provide GPU support for SpaceToDepth op (#3134)

This patch will provide kernel to execute SpaceToDepth op on GPU

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRevise build script and introduce build-acl script (#3214)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 19 Oct 2018 00:54:42 +0000 (09:54 +0900)]
Revise build script and introduce build-acl script (#3214)

* Revise build script and introduce build-acl script

Revise build script
Introduce build-acl script

Howto : On project root, "./run build-acl" or "./run build" with environment variable setting

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Change all tab to space

* Change all tab to space and remove unnecessary line: build-acl

5 years ago[neurun][dotdumper] Introduce NodeAttr class (#3244)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 19 Oct 2018 00:53:15 +0000 (09:53 +0900)]
[neurun][dotdumper] Introduce NodeAttr class (#3244)

This commit introduces `NodeAttr` class that can be more easier to add attributes of node.

- ASIS
```
_dot << dotinfo.index_str() << " [shape=" << dotinfo.dot_shape() << " "
     << "label=\"" << dotinfo.label() << "\" "
     << "style=\"filled\" "
     << "fillcolor=\"" << dotinfo.bg_color() << "\"];\n";

- TOBE
```
NodeAttr attr;

attr.addAttr("shape", dotinfo.dot_shape())
    .addAttr("label", dotinfo.label())
    .addAttr("style", "filled")
    .addAttr("fillcolor", dotinfo.bg_color());
attr.finish();

_dot << dotinfo.index_str() << attr.attr_stream();
```

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoAdd CL kernel to provide GPU support for DepthToSpace op (#3166)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 19 Oct 2018 00:48:07 +0000 (06:18 +0530)]
Add CL kernel to provide GPU support for DepthToSpace op (#3166)

This patch will provide kernel to execute DepthToSpace op on GPU

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd CL Kernel calls for Equal op from runtime. (#3107)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 19 Oct 2018 00:26:05 +0000 (05:56 +0530)]
Add CL Kernel calls for Equal op from runtime. (#3107)

This patch adds CL Kernel calls for Equal op from runtime.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoInitialize Objects and other variables (#3237)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 19 Oct 2018 00:23:40 +0000 (05:53 +0530)]
Initialize Objects and other variables (#3237)

This patch will initialize Objects and other variables in BatchToSpaceND

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemoving LRN gtest from skiplist (#2782)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 19 Oct 2018 00:22:57 +0000 (05:52 +0530)]
Removing LRN gtest from skiplist (#2782)

With #2643 the 3 LRN cases passed. Removing from skiplist.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoSpelling error in comments (#3247)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 19 Oct 2018 00:22:36 +0000 (05:52 +0530)]
Spelling error in comments (#3247)

This patch will coorect the spelling of the error introduced in comment in Cast.h

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemoving unused variables from layers (#3245)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 22:28:59 +0000 (03:58 +0530)]
Removing unused variables from layers (#3245)

This patch will remove unused buffer variables

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove unused shape variables from visit func (#3221)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 22:28:36 +0000 (03:58 +0530)]
Remove unused shape variables from visit func (#3221)

This patch removes the unused shape variables.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdded assertion in Reshape (#3050)
Vishal Keshav/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 11:44:46 +0000 (17:14 +0530)]
Added assertion in Reshape (#3050)

Assertion verifies if input can be reshaped to output

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoAdding Node for pack operation (#3193)
Vishal Keshav/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 11:42:09 +0000 (17:12 +0530)]
Adding Node for pack operation (#3193)

Adding operation node for pack operation

Signed-off-by: Vishal keshav <vishal.k1@samsung.com>
5 years ago[neurun] Make DotDumper to show backend info for operands (#3240)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 18 Oct 2018 11:22:38 +0000 (20:22 +0900)]
[neurun] Make DotDumper to show backend info for operands (#3240)

Related : #3236

This commit makes `DotDumper` to show backend info for operands.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years ago[cherry-pick] Add comment for doxygen comment (#3242)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Oct 2018 11:19:28 +0000 (20:19 +0900)]
[cherry-pick] Add comment for doxygen comment (#3242)

Add comment for doxygen comment: cherry-pick and squash
Cherry-pick: 4ea8ef6^...2e50d14 811fe2d 9dc33a9 671e570

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove/Change misleading comments from internal/op (#3223)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 08:29:40 +0000 (13:59 +0530)]
Remove/Change misleading comments from internal/op (#3223)

This patch removes/ changes misleading commments from internal/op directory.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd CL Kernel Calls for BatchToSpaceND from runtime. (#3220)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 08:26:15 +0000 (13:56 +0530)]
Add CL Kernel Calls for BatchToSpaceND from runtime. (#3220)

This patch adds CL Kernel Calls for BatchToSpaceND from runtime.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Refine the loop in lower method (#3235)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 18 Oct 2018 07:15:21 +0000 (16:15 +0900)]
[neurun] Refine the loop in lower method (#3235)

Make the loop simpler that assigns backends for model input and outputs.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Fix markTensor implementation (#3233)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 18 Oct 2018 07:12:50 +0000 (16:12 +0900)]
[neurun] Fix markTensor implementation (#3233)

This will fix the issue that operands are set multiple times from
`PlanBuilder::finalize`. Operation based iteration can cause this
problem so this commit changes it to iterate with operands.

Also this commit assigns def backend for constants which were not
assigned.

Fix #3126

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoSuppress `which`'s output from format-checker.sh (#3232)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 18 Oct 2018 06:33:59 +0000 (15:33 +0900)]
Suppress `which`'s output from format-checker.sh (#3232)

- Suppress output from `which` command
- Replace `which` to `command -v` for support builtin command also
- Remove function keywords for better portability

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[neurun][dotdumer] Fix model output naming bug (#3231)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 18 Oct 2018 06:18:42 +0000 (15:18 +0900)]
[neurun][dotdumer] Fix model output naming bug (#3231)

This commit fixes model output naming bug that shows the name with 'obj' prefix.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoIntroduce configure script (#3180)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Oct 2018 06:17:21 +0000 (15:17 +0900)]
Introduce configure script (#3180)

* Introduce configure script

Introduce configure script
- prepare to use this script instead of Makefile
- Howto: On project root, "./run configure" with environment variable setting

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

- Generate install path and alias
- Change variable name for build/install path alias

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix and remove unused variable

- Remove unused variable
- Fix bug: string compare to substring

* Change all tab to space

5 years agoSeparate Declaration and Definition of SimpleCastLayer. (#3191)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 18 Oct 2018 06:12:12 +0000 (11:42 +0530)]
Separate Declaration and Definition of SimpleCastLayer. (#3191)

This patch separates the declaration and definition of functions in SimpleCastLayer.
Purpose: Impose uniformity and better organization.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun][dotdumper] Make each backend shows different bg colors (#3217)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 18 Oct 2018 02:56:30 +0000 (11:56 +0900)]
[neurun][dotdumper] Make each backend shows different bg colors (#3217)

This commit makes each backend shows different bg color when dot dumping.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoApply CRLF check for all regular files (#3179)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 18 Oct 2018 02:01:11 +0000 (11:01 +0900)]
Apply CRLF check for all regular files (#3179)

All regular files under git-control are CRLF checked.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoAdd LRN codes to support both odd & even values (#2906)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 10:38:13 +0000 (16:08 +0530)]
Add LRN codes to support both odd & even values (#2906)

This patch contains RS7-RuntimeNTools/ComputeLibrary#47 PR
Updated license contents for CLNormalizationLayerEx

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd CL Kernels for BatchToSpaceND (#3203)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 10:37:09 +0000 (16:07 +0530)]
Add CL Kernels for BatchToSpaceND (#3203)

This patch adds BatchToSpaceND operation's CL Kernel.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd GTest to test for the enabled Broadcast feature in SquaredDifference op (#3185)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 10:36:16 +0000 (16:06 +0530)]
Add GTest to test for the enabled Broadcast feature in SquaredDifference op (#3185)

This patch adds GTest to test for the enabled Broadcast feature in SquaredDifference op.
Added GTests:
```
squared_difference_ex_broadcast
squared_difference_ex_broadcast_4D_2D
```
Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdd CL Kernels for Equal op (#3029)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 10:36:03 +0000 (16:06 +0530)]
Add CL Kernels for Equal op (#3029)

This patch adds CL Kernels for Equal op.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Make TensorBuilder on CPU have MemoryAllocator (#3215)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 07:06:14 +0000 (16:06 +0900)]
[neurun] Make TensorBuilder on CPU have MemoryAllocator (#3215)

* [neurun] Make TensorBuilder have MemoryAllocator

Makes TensorBuilder have MemoryAllocator as its member. Now there is no
resolution to access MemoryAllocator globally.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Fix format-checker fail

5 years agoIntroduce UNPACK_EX in NeuralNetworkEx (#3189)
Vishal Keshav/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 06:53:53 +0000 (12:23 +0530)]
Introduce UNPACK_EX in NeuralNetworkEx (#3189)

Introduced upack_ex in neural network ex

Signed-off-by: Vishal keshav <vishal.k1@samsung.com>
5 years ago[neurun] Remove Source/Sink codes divided to dimensions (#3213)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 06:01:53 +0000 (15:01 +0900)]
[neurun] Remove Source/Sink codes divided to dimensions (#3213)

Related : #2874

Part of : #3178

Because #3208 and #3187 are merged, we can remove `Source`/`Sink` codes divided to dimensions.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoAdd NNAPI_Delegation for SQUEEZE (#3065)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 05:48:33 +0000 (11:18 +0530)]
Add NNAPI_Delegation for SQUEEZE (#3065)

This patch adds NNAPI Delegation for SQUEEZE op.
Related issue: #2891 #2884

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix offset bug for BatchToSpace (#3204)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 05:19:14 +0000 (10:49 +0530)]
Fix offset bug for BatchToSpace (#3204)

For issue #3105

This patch will fix offset bug from BatchToSpace

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[neurun] Get only CPU shape as Input/Output (#3208)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 05:14:31 +0000 (14:14 +0900)]
[neurun] Get only CPU shape as Input/Output (#3208)

This commit gets only CPU shape as Input/Output(it would insert Permute ops).

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoRemove Unsupported Datatype Cases in DepthToSpace (#3202)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 04:36:37 +0000 (10:06 +0530)]
Remove Unsupported Datatype Cases in DepthToSpace (#3202)

NN api defines only for U8 and F32 dataype for DepthToSpace op.
Hence, leaving code only for supported dataypes.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemove passed GTest from Skiplist (#3200)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 17 Oct 2018 04:04:52 +0000 (09:34 +0530)]
Remove passed GTest from Skiplist (#3200)

This patch removes passed GTests batch_to_space* from skip_list.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Introduce OperandConstraint (#3182)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 01:15:24 +0000 (10:15 +0900)]
[neurun] Introduce OperandConstraint (#3182)

Introduce OperandConstraint to simplify implementation of
setInputs/Outputs. They were virtual methods but this commit makes it
non-virtual to make the code simpler. Instead `Node` class now uses
`OperandConstraint` which limits the number of input operands(and
possibly output operands).

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Workaround for operand::Set iteration (#3196)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 01:14:51 +0000 (10:14 +0900)]
[neurun] Workaround for operand::Set iteration (#3196)

`OperandPass` sometimes manipulate the set while iteration, this
workaround forces the `iterate` method to iterate only elements that
has been existed from the beginning of the iteration.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Fix use of static var in BackendResolver (#3195)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 01:14:37 +0000 (10:14 +0900)]
[neurun] Fix use of static var in BackendResolver (#3195)

Using static local variable can cause when compilation multiple times in
a run. This was first known by #3178(Not because of this, but it is
shown with this PR).

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Introduce IMemoryAllocator (#3190)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 01:13:51 +0000 (10:13 +0900)]
[neurun] Introduce IMemoryAllocator (#3190)

Introduces IMemoryAllocator as an interface of memory allocator. Now
BumpAllocator inherits to it.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
5 years ago[neurun] Refine BackendManager ctor (#3206)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 17 Oct 2018 01:13:21 +0000 (10:13 +0900)]
[neurun] Refine BackendManager ctor (#3206)

This commit makes the local variables more readable. The prefix can be
removed since we have two different blocks and fix the wrong name
`backend_initializer to be `config`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRemove duplicated header inclusion in ARMComputeEx (#3160)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 17 Oct 2018 00:55:26 +0000 (09:55 +0900)]
Remove duplicated header inclusion in ARMComputeEx (#3160)

CLHelpers.h is included twice so it is removed.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[cherry-pick] Build tflite_benchmark on gbs build (#3176)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Oct 2018 00:54:51 +0000 (09:54 +0900)]
[cherry-pick] Build tflite_benchmark on gbs build (#3176)

Enable building tflite_benchmark on gbs build
Catch exception in main to remove warning
Change makefile to build tflite_benchmark on testbuild

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove duplicated header inclusion (#3168)
PRAVEEN DORESWAMY NAIDU/System SW /SRI-Bangalore/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 11:04:03 +0000 (16:34 +0530)]
Remove duplicated header inclusion (#3168)

Multiple inclusions in the same file -<memory>
<cassert> present in model.h.

Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years agoEnable SquaredDifference to support BroadCast (#3183)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 10:42:38 +0000 (16:12 +0530)]
Enable SquaredDifference to support BroadCast (#3183)

This patch enables SquaredDifference CL Kernel to support broadcasting.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tfltool] OP selector: Support more operators (#3099)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 10:40:28 +0000 (16:10 +0530)]
[tfltool] OP selector: Support more operators (#3099)

This patch add support for SpaceToDepth and PAD operators in select_opertor.py

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoImplement BATCH_TO_SPACE_ND in runtime (#3101)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 10:29:10 +0000 (15:59 +0530)]
Implement BATCH_TO_SPACE_ND in runtime (#3101)

This patch implements BATCH_TO_SPACE_ND in runtime.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[neurun] Support to permute for all other dimensions (#3187)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 09:58:09 +0000 (18:58 +0900)]
[neurun] Support to permute for all other dimensions (#3187)

Related : #3106, #2874

Part of : #3178 PR

This commit supports to permute for all other dimensions.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoIntroducing PACK_EX operation (#3181)
Vishal Keshav/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 08:40:41 +0000 (14:10 +0530)]
Introducing PACK_EX operation (#3181)

Added the missing comma in ABS_EX line

Signed-off-by: Vishal keshav <vishal.k1@samsung.com>
5 years agoRemove un-necessary header file <iostream> from SimpleNeg.cc (#3177)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 07:30:14 +0000 (13:00 +0530)]
Remove un-necessary header file <iostream> from SimpleNeg.cc (#3177)

This patch removes un-necessary header file <iostream> from SimpleNeg.cc.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix padding bug of some kernels. (#3161)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 06:14:46 +0000 (15:14 +0900)]
Fix padding bug of some kernels. (#3161)

This commit Fixes padding bug of some kernels used by Coordinates of ACL.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[neurun] Apply BumpAllocator to TensorBuilder (#3172)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 06:12:50 +0000 (15:12 +0900)]
[neurun] Apply BumpAllocator to TensorBuilder (#3172)

Applies BumpAllocator to TensorBuilder so that now one memory allocator
has started allocating tensors.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
5 years agoversion update to 0.2 on gbs spec file (#2735) (#3156)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 06:07:54 +0000 (15:07 +0900)]
version update to 0.2 on gbs spec file (#2735) (#3156)

- version update to 0.2 on gbs spec file

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoAdd a generated test for testing broadcast SUB (#3144)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 06:00:40 +0000 (11:30 +0530)]
Add a generated test for testing broadcast SUB (#3144)

This test is for testing broadcast sub with tensors of 4D & 2D shape.
Added GTest: sub_broadcast_4D_2D_float_nnfw.
Related issue: #3143

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoFix CRLF to LF in Abs.cpp (#3175)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 16 Oct 2018 05:57:33 +0000 (14:57 +0900)]
Fix CRLF to LF in Abs.cpp (#3175)

Fix wrong line break in Abs.cpp.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years ago[cherry-pick] Remove debug files in package (#2778) (#3158)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 04:37:53 +0000 (13:37 +0900)]
[cherry-pick] Remove debug files in package (#2778) (#3158)

Remove debug files in nnfw & nnfw-test package

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[cherry-pick] Remove unused module on gbs build (#2755) (#3157)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 04:11:18 +0000 (13:11 +0900)]
[cherry-pick] Remove unused module on gbs build (#2755) (#3157)

Remove unused module on gbs build

- tools (except nnapi_test)
- benchmark
- contrib
- template & logging in runtime

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agotflite_benchmark custom op on tizen (#3170)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 01:53:17 +0000 (10:53 +0900)]
tflite_benchmark custom op on tizen (#3170)

On tizen, custom op is not found when runnning tflite_benchmark.
This patch changes link order for tflite_benchmark.
cf) This bug is not found on arm-ubuntu(IDK why)

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years agoAdd a generated test for broadcast add (#3125)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 01:50:46 +0000 (10:50 +0900)]
Add a generated test for broadcast add (#3125)

This test is consist of an ADD, a CONCATENATION and a RESHAPE operation.
CONCATENATION and RESHAPE are NOP just copy the value to the output.
They are exist for making test easier with different layouts(NCHW/NHWC)
on neurun.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[tfltool] OP selector: Support more operators (#3096)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 01:49:47 +0000 (10:49 +0900)]
[tfltool] OP selector: Support more operators (#3096)

Supports BATCH_TO_SPACE_ND and SPACE_TO_BATCH_ND operators

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[neurun] Introduce BumpAllocator (#3149)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 01:43:11 +0000 (10:43 +0900)]
[neurun] Introduce BumpAllocator (#3149)

* [neurun] Introduce BumpAllocator

Introduces BumpAllocator an early version of MemoryAllocator.
The BumpAllocator only allocates memory without any deallocating.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Adds unit test of BumpAllocator

* Remove capacity()

5 years ago[tfltool] OP selection: Add support for L2Norm and Split (#3109)
PRAVEEN DORESWAMY NAIDU/System SW /SRI-Bangalore/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 01:42:36 +0000 (07:12 +0530)]
[tfltool] OP selection: Add support for L2Norm and Split (#3109)

This patch will add support for L2Norm and Split operators
in tfltool select_operator.
Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years agonnfw: RSQRT PACL Changes for RSQRT Support (#3040)
TANUJ TEKRIWAL/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:40:49 +0000 (07:10 +0530)]
nnfw: RSQRT PACL Changes for RSQRT Support (#3040)

This patch adds support for RSQRT in PACL Codebase(compilation.cc)

Signed-off-by: Tanuj Tekriwal <tanuj.tekri@samsung.com>
5 years agoRemove old ACL temp files from gitignore (#3115)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 16 Oct 2018 01:34:45 +0000 (10:34 +0900)]
Remove old ACL temp files from gitignore (#3115)

This will remove ACL generated files that don't need anymore in gitignore
- /externals/acl itself is ignored now

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years ago[tftool] OP selector: Support TransposeConv op (#3133)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:32:51 +0000 (07:02 +0530)]
[tftool] OP selector: Support TransposeConv op (#3133)

For issue #3093
This patch will add support for transposeconv in tfltool selec_operator.py

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[tfltool] OP selector: Support more operator (#3094)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 01:32:34 +0000 (10:32 +0900)]
[tfltool] OP selector: Support more operator (#3094)

This commit supports SQUEEZE option in op selector

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[neurun] Fix operation::Concat input assertion (#3164)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 01:28:24 +0000 (10:28 +0900)]
[neurun] Fix operation::Concat input assertion (#3164)

Just like the comment says, it should be equal or greater than 2.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoRemove passed GTest from skiplist (#3165)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:26:18 +0000 (06:56 +0530)]
Remove passed GTest from skiplist (#3165)

This patch removes sub_broadcast_float GTest from skiplist.

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years ago[tfltool] OP selection: Enable for EqualOptions (#3112)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:25:41 +0000 (06:55 +0530)]
[tfltool] OP selection: Enable for EqualOptions (#3112)

This patch will enable EqualOptions in tfltool select_operator.
Related issue: #2610 #2822

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemoving function overhead of pow in Squarediff kernel (#3130)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:23:26 +0000 (06:53 +0530)]
Removing function overhead of pow in Squarediff kernel (#3130)

This patch will remove function overhead of pow since pow(x,2) can be wirtten as x*x

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCorrection in reduction mean kernel (#3131)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:18:52 +0000 (06:48 +0530)]
Correction in reduction mean kernel (#3131)

This patch removes unnecessary temp varaible and modifies comments

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoOffset function not required (#3132)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 16 Oct 2018 01:15:22 +0000 (06:45 +0530)]
Offset function not required (#3132)

This patch will remove unused offset4D function from CLReduceSum.cpp

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoUse dlopen for generated test (#3154)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Oct 2018 01:14:33 +0000 (10:14 +0900)]
Use dlopen for generated test (#3154)

Use dlopen instead of static link for generated test

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemove duplicated codes from SimpleEmbeddingLookup (#3159)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 16 Oct 2018 01:08:57 +0000 (10:08 +0900)]
Remove duplicated codes from SimpleEmbeddingLookup (#3159)

This commit removes duplicated codes from SimpleEmbeddingLookup.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoAdd CRLF detect in format-checker (#3162)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 16 Oct 2018 00:33:55 +0000 (09:33 +0900)]
Add CRLF detect in format-checker (#3162)

This will add CRLF newline check in format-checker script

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
5 years agoInitialize Objects and other variables (#3129)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Mon, 15 Oct 2018 11:09:34 +0000 (16:39 +0530)]
Initialize Objects and other variables (#3129)

This patch will initialize class objects and variables

Signed-off-by: Shubham <shub98.gupta@samsung.com>
5 years agoRemove unnecessary Headerfile <iostream> from op BatchToSpaceNd (#3108)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Mon, 15 Oct 2018 09:42:47 +0000 (15:12 +0530)]
Remove unnecessary Headerfile <iostream> from op BatchToSpaceNd (#3108)

This patch removes unnecessary headerfile <iostream> from op/BatchToSpaceNd.cc

Signed-off-by: prasannar <prasanna.r@samsung.com>