platform/core/ml/nnfw.git
5 years agoCorrection in SpaceToBatch CPU version for quant8 datatype (#3686)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 02:07:32 +0000 (07:37 +0530)]
Correction in SpaceToBatch CPU version for quant8 datatype (#3686)

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

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

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

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

This patch will remove pad_quant8 gtest from skiplist

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

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

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

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

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

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

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

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

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

This file includes headers of all the nodes

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This commit applies CL Kernel of SpaceToBatchND to PACL.

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

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

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

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

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

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

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

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

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

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

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

Related : #3273
Part of : #3700

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

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

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

In the same manner with #3721

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

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

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

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

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

This commit implements CL kernel of SpaceToBatchND for NCHW.

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

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

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

* [neurun] Introduce ITensor/ICLTensor

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

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

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

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

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

* Add 4 tflite models for framework test

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

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

since delegates for SQRT and RSQRT are not prepared

* Remove comments

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

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

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

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

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

There was a typo on sciprt path for lcov_cobertura.py

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

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

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

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

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

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

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

This PR adds generatedtests for Split. #3459

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

This patch adds gtest to test SpaceToBatchND op for quant8 dataype

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

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

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

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

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

This commit applies CL Kernel of HashtableLookup for PACL.

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

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agotflite_benchmark_model is updated to v1.12.0. (#3660)
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Nov 2018 05:56:12 +0000 (14:56 +0900)]
tflite_benchmark_model is updated to v1.12.0. (#3660)

Most files are not changed from v1.12.0.
My modification is to support multiple kernel expansion operators.
You can find the changes from stats_calculator.cc and profile_summarizer.cc.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
5 years agoApply CL Kernel of ReduceOperation to PACL. (#3673)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 05:43:58 +0000 (14:43 +0900)]
Apply CL Kernel of ReduceOperation to PACL. (#3673)

This commit applies CL Kernel of ReduceOperation to PACL.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoImplement CL kernel of HashtableLookup (#3500)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 05:40:36 +0000 (14:40 +0900)]
Implement CL kernel of HashtableLookup (#3500)

This commit implements CL kernel of HashtableLookup op.
  - Add an IFunction class for HashtableLookup.
  - Add an ICLKernel class for HashtableLookup.
  - Add cl kernel functions for HashtableLookup.
  - Append the cl functions to kernel_program_map.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years ago[neurun] Remove ptr_to_element in ConstantInitializer (#3696)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 02:38:29 +0000 (11:38 +0900)]
[neurun] Remove ptr_to_element in ConstantInitializer (#3696)

Related : #3273

This commit remove using `ptr_to_element` in `ConstantInitializer` for removing `arm_compute` dependency.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years ago[model_parser] Print memory size of each tensor (#3677)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 01:19:28 +0000 (10:19 +0900)]
[model_parser] Print memory size of each tensor (#3677)

Now model_parser prints memory size of each tensor. In addition,
expected allocating memory also prints.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
5 years ago[neurun] Simplify SubTensorAnalyzer (#3690)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Nov 2018 01:19:01 +0000 (10:19 +0900)]
[neurun] Simplify SubTensorAnalyzer (#3690)

Make SubTensorAnalyzer to Override only ConcatNode.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoMake script/config directory (#3692)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 26 Nov 2018 01:12:25 +0000 (10:12 +0900)]
Make script/config directory (#3692)

Make script/config directory and move configuration files for script into script/config

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoCorrection in Padding_Same untility function (#3629)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 26 Nov 2018 01:11:57 +0000 (06:41 +0530)]
Correction in Padding_Same untility function (#3629)

This patch will correct the Paddin_Same function logic.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoDelete docker_helper file (#3689)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 26 Nov 2018 01:06:56 +0000 (10:06 +0900)]
Delete docker_helper file (#3689)

Delete docker_helper script file: not used any more

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Add PermutationEliminationPass to eliminate permutation of I/O (#3552)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 23 Nov 2018 07:30:07 +0000 (10:30 +0300)]
[neurun] Add PermutationEliminationPass to eliminate permutation of I/O (#3552)

Eliminates permutation after model's input and before output
This is just for NHWC_TO_NCHW in input and NCHW_TO_NHWC in output.
Permutation of input/output will be done during source/sink in next commit

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years ago[neurun] Auto-generate NodeVisitor headers (#3685)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 23 Nov 2018 06:05:32 +0000 (15:05 +0900)]
[neurun] Auto-generate NodeVisitor headers (#3685)

Auto-generate NodeVisitor headers with macro.

Resolve #3664

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Doxygen comments for MemoryPlanner on CPU (#3679)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 23 Nov 2018 06:01:12 +0000 (15:01 +0900)]
[neurun] Doxygen comments for MemoryPlanner on CPU (#3679)

* [neurun] Doxygen comments for MemoryPlanner on CPU

Doxygen comments for MemoryPlanner on CPU

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Remove @ingroup

* Fix typo. opernad -> operand

5 years agoFixed the test cases for CUSTOM pack operations (#3640)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 23 Nov 2018 02:38:54 +0000 (08:08 +0530)]
Fixed the test cases for CUSTOM pack operations (#3640)

Input tensors are treated as buffer, and packing
will be done with strides determined by axis.

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoDefined CUSTOM pack operation (#3648)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 23 Nov 2018 02:38:40 +0000 (08:08 +0530)]
Defined CUSTOM pack operation (#3648)

Added details for pack operation

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoCorrection in pad_quant gtest (#3680)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 23 Nov 2018 02:38:02 +0000 (08:08 +0530)]
Correction in pad_quant gtest (#3680)

This patch will correct the output buffer values and name of the pad_quant gtest.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRevise coverage build and report script (#3661)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 23 Nov 2018 01:38:33 +0000 (10:38 +0900)]
Revise coverage build and report script (#3661)

Revise docker_cross_test_coverage_build.sh and docker_coverage_report.sh
- Remove using nnfw_docker file
- Remove deprecated environment variable setting
- Use docker-run-user command

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Extend Op.lst macro (#3681)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 23 Nov 2018 01:21:10 +0000 (10:21 +0900)]
[neurun] Extend Op.lst macro (#3681)

Make `Op.lst` always keep the full list of operations. Add a boolean
parameter to determine if it is from NN API or internally used node.
Later, this list will be used for auto generation of visitor code.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Add remove() for operand::Set and operation::Set and Graph (#3678)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 23 Nov 2018 00:58:41 +0000 (03:58 +0300)]
[neurun] Add remove() for operand::Set and operation::Set and Graph (#3678)

These changes are needed to remove some layers from a graph

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years ago[neurun] Introduce internal TensorInfo class (#3674)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Nov 2018 09:25:38 +0000 (18:25 +0900)]
[neurun] Introduce internal TensorInfo class (#3674)

Related : #3273
Part of : #3484

This commit introduces internal `TensorInfo` class that has just `Shape` and `TypeInfo`.
Entire dependency of `arm_compute::TensorInfo` for `cpu` backend will be reduced after cpu `Tensor` class revised in another PR.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
5 years agoMove Plan and related codes into compiler (#3676)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 22 Nov 2018 09:25:26 +0000 (18:25 +0900)]
Move Plan and related codes into compiler (#3676)

Move Plan and related codes into compiler
Update namespace and comments

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Introduce internal IFunction class (#3672)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Nov 2018 08:21:34 +0000 (17:21 +0900)]
[neurun] Introduce internal IFunction class (#3672)

* [neurun] Introduce internal IFunction class

Related : #3273
Part of : #3484

This commit introduces internal `IFunction` class.

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

5 years agoSupport generate rootfs for target os ubuntu 18.04 (#3675)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 22 Nov 2018 08:20:35 +0000 (17:20 +0900)]
Support generate rootfs for target os ubuntu 18.04 (#3675)

Support generate rootfs for target os ubuntu 18.04 (ex. xu4 ubuntu mate 18.04)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoFixed unpack node inputs (#3639)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 22 Nov 2018 04:59:12 +0000 (10:29 +0530)]
Fixed unpack node inputs (#3639)

The inputs buffer contains number of splits
Following tf_ops_compatibility

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoMove BackendResolver into compiler (#3671)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 22 Nov 2018 04:45:19 +0000 (13:45 +0900)]
Move BackendResolver into compiler (#3671)

Move BackendResolver into compiler and fix namespace

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Rename operation Node files (#3668)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Nov 2018 04:41:08 +0000 (13:41 +0900)]
[neurun] Rename operation Node files (#3668)

Rename operation Nodes from `{NodeName}.h` to `{NodeName}Node.h` so
they can match with their class names.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoMove ConstantInitializer into compiler (#3670)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 22 Nov 2018 03:49:23 +0000 (12:49 +0900)]
Move ConstantInitializer into compiler (#3670)

Move ConstantInitializer into compiler and fix namespace

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoIntroduce an enum class declaration for logical operations (#3624)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 22 Nov 2018 03:07:51 +0000 (08:37 +0530)]
Introduce an enum class declaration for logical operations (#3624)

To have unified cl kernels for logical operations,
This commit introduces a enum declaration for logical operations.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoUpdate nnfw's register.cc to v1.12.0 (#3607)
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 22 Nov 2018 01:45:57 +0000 (10:45 +0900)]
Update nnfw's register.cc to v1.12.0 (#3607)

- Add v1.12 missing operators into register.cc
- FIXME: In obs build, do not apply this patch

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
5 years ago[neurun] Remove NOP node (#3665)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Nov 2018 01:45:34 +0000 (10:45 +0900)]
[neurun] Remove NOP node (#3665)

NOP node was first introduced for general testing purpose but it does
not used or necessary any longer.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] Define PermutationEliminationPass class (#3652)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 22 Nov 2018 01:45:16 +0000 (04:45 +0300)]
[neurun] Define PermutationEliminationPass class (#3652)

This class eliminates permutation of input/output
just for NHWC_TO_NCHW in input and NCHW_TO_NHWC in output.

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoImplement unified CL Kernel of Reduce operations into ARMComputeEx (#3490)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Nov 2018 00:56:44 +0000 (09:56 +0900)]
Implement unified CL Kernel of Reduce operations into ARMComputeEx (#3490)

This commit implements unified CL Kernel of Reduce operations into ARMComputeEx.
  - Introduce class CLReduceOperation.
  - Introduce class CLReduceOperationKernel.
  - Add cl functions for Reduce operations to reduce_operation.cl.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoRemove transpose gtests from skiplist (#3471)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Thu, 22 Nov 2018 00:54:16 +0000 (06:24 +0530)]
Remove transpose gtests from skiplist (#3471)

This patch will remove transpose gtests from skiplist

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoMove PlanBuilder into compiler (#3667)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 21 Nov 2018 10:29:56 +0000 (19:29 +0900)]
Move PlanBuilder into compiler (#3667)

Move PlanBuilder.cc/h into compiler and fix namespace
Remove IPlanBuilder interface

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoMove SubTensorInfo into compiler (#3666)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 21 Nov 2018 09:32:25 +0000 (18:32 +0900)]
Move SubTensorInfo into compiler (#3666)

Move SubTensorInfo.h into compiler and fix namespace
Remove acl dependency header from SubTensorInfo.h

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdded defenition for CUSTOM unpack ops (#3650)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 21 Nov 2018 09:15:26 +0000 (14:45 +0530)]
Added defenition for CUSTOM unpack ops (#3650)

Defined the constraints for unpack ops

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoMove OperationValidator into compiler (#3662)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 21 Nov 2018 08:27:17 +0000 (17:27 +0900)]
Move OperationValidator into compiler (#3662)

Move OperationValidator into compiler directory
Fix namespace

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Graph holds Model as pointer (#3663)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 21 Nov 2018 08:00:55 +0000 (17:00 +0900)]
[neurun] Graph holds Model as pointer (#3663)

Graph holds Model as pointer. This is for the next work that `_model` is moved
to Linear.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoMerge middleend into compiler directory (#3658)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 21 Nov 2018 06:29:26 +0000 (15:29 +0900)]
Merge middleend into compiler directory (#3658)

Move SubTensorAnalyzer.cc/h into compiler directory
Fix namespace and cmake

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoRemoving unused variables and rearranging by name in TransposeConv (#3656)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 21 Nov 2018 06:27:35 +0000 (11:57 +0530)]
Removing unused variables and rearranging by name in TransposeConv (#3656)

This patch will remove unused variables and rearranges the variables by their name

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoIntroduce Compiler class (#3632)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 21 Nov 2018 01:41:19 +0000 (10:41 +0900)]
Introduce Compiler class (#3632)

Introduce neurun::compiler::Compiler class to hide compilation phase from frontend
Introduce src/compiler directory for compile phases

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdded generated test data for CUSTOM unpack ops (#3638)
Vishal Keshav/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 21 Nov 2018 01:26:50 +0000 (06:56 +0530)]
Added generated test data for CUSTOM unpack ops (#3638)

The input tensor data is treated as buffer.
Along any given axis, the output buffer are to be generated
according to the strides (determined by axis and num_splits)

Signed-off-by: Vishal Keshav <vishal.k1@samsung.com>
5 years agoIntroduce LOGICAL_OR_EX in NeuralNetworksEx.h (#3618)
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Wed, 21 Nov 2018 01:01:17 +0000 (06:31 +0530)]
Introduce LOGICAL_OR_EX in NeuralNetworksEx.h (#3618)

This patch Introduces LOGICAL_AND_EX in NeuralNetworksEx.h.
Related issue: #3459

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoGenerate text file to save build path depth in coverage build (#3651)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 20 Nov 2018 10:09:36 +0000 (19:09 +0900)]
Generate text file to save build path depth in coverage build (#3651)

Generate text file tools/test_driver/build_path_depth.txt to save build path depth.
gcov for cross build need directory strip to match build host directory and target directory.
Build path depth will be used to set GCOV_PREFIX_STRIP environment variable on target.

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoFix comment for argmax_ex in NeuralNetworksEx.h (#3606)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 20 Nov 2018 10:09:14 +0000 (19:09 +0900)]
Fix comment for argmax_ex in NeuralNetworksEx.h (#3606)

Fix incorrect comment for output of argmax_ex in NeuralNetworksEx.h
- Output rank should be same rank with input
- Reduced axes are retained with length 1

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoNeuralNetworkEx code cleanup (#3649)
TANUJ TEKRIWAL/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 07:24:30 +0000 (12:54 +0530)]
NeuralNetworkEx code cleanup (#3649)

Just little code cleanup for NeuralNetworkEx.h

Signed-off-by: Tanuj Tekriwal <tanuj.tekri@samsung.com>
5 years ago[neurun] Fix TensorBuilder to add subtensors to Plan::operands (#3614)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 20 Nov 2018 07:19:00 +0000 (10:19 +0300)]
[neurun] Fix TensorBuilder to add subtensors to Plan::operands (#3614)

Fix TensorBuilder to add subtensors to Plan::operands
Related issue is #3611

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoIntroduce LOGICAL_AND_EX in NeuralNetworksEx.h (#3563)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 07:16:52 +0000 (12:46 +0530)]
Introduce LOGICAL_AND_EX in NeuralNetworksEx.h (#3563)

This patch Introduces LOGICAL_AND_EX in NeuralNetworksEx.h.
Related issue: #3459

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoAdded Generic test file for RSQRT_EX (#3297)
TANUJ TEKRIWAL/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 05:25:46 +0000 (10:55 +0530)]
Added Generic test file for RSQRT_EX (#3297)

This patch adds the Gtest file for RSQRT_EX.

Signed-off-by: Tanuj Tekriwal <tanuj.tekri@samsung.com>
5 years agoPass all arguments in summarize_tflite tool (#3646)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 20 Nov 2018 05:13:25 +0000 (14:13 +0900)]
Pass all arguments in summarize_tflite tool (#3646)

To use various options of model_parser.py tool,
it allows to pass all arguments to model_parser.py file in summarize_tflite file.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoFix non-string passed to CreateString issue in tfltool (#3645)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 20 Nov 2018 05:13:15 +0000 (14:13 +0900)]
Fix non-string passed to CreateString issue in tfltool (#3645)

If the operator_codes is empty, select_operator.py tool occurs an error.
This patch is fixed the issue.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[neurun] Rename Planner as OperationValidator (#3582)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 20 Nov 2018 05:01:14 +0000 (14:01 +0900)]
[neurun] Rename Planner as OperationValidator (#3582)

Now Planner has only have assertions, so rename accordingly.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years agoAdd gtest to test for quant8 input for Pad op (#3620)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:17:25 +0000 (09:47 +0530)]
Add gtest to test for quant8 input for Pad op (#3620)

This patch will add gtest to test for quant8 input for pad op.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd GTests for SQRT op (#3608)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:17:12 +0000 (09:47 +0530)]
Add GTests for SQRT op (#3608)

This patch addds GTests for SQRT op.
Added files:
```
sqrt_ex_1D_float
sqrt_ex_4D_float
```

Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoRemoving unnecessary included header files in NENormalization (#3621)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:06:13 +0000 (09:36 +0530)]
Removing unnecessary included header files in NENormalization (#3621)

This patch will remove unnecessary headers included in src and runtime
of NENormalization.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoIntroduce LogicalOr op in runtime (#3622)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:05:59 +0000 (09:35 +0530)]
Introduce LogicalOr op in runtime (#3622)

This patch will add node for LogicalOr op in PACL

Signed-off-by: shubham <shub98.gupta@samsung.com>