platform/core/ml/nnfw.git
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>
5 years agoCorrecting the comments in equal and notequal cl (#3627)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:05:41 +0000 (09:35 +0530)]
Correcting the comments in equal and notequal cl (#3627)

This patch will corrects the comments in equal and notequal cl
And Adds the missing comments.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoRemoving unnecessary headers included in clfiles of Permute op (#3628)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:05:26 +0000 (09:35 +0530)]
Removing unnecessary headers included in clfiles of Permute op (#3628)

This patch will remove unnecessary headers included in clfiles of Permute op.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoCorrection in Error checking conditions and namespace missalignment (#3630)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:05:14 +0000 (09:35 +0530)]
Correction in Error checking conditions and namespace missalignment (#3630)

This patch will correct:
1. error checking condition for output, since output is always QASSYM8
input1 and output datatypes cannot be compared. Also, output can omnly be
checked for QASSYM8 in validate function.

2.Since all the non class functions are placed in namespace (format followed
by ACL) hence placing validate the function in the defined namespace.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoMinor changes in TransposeConv op (#3619)
Devansh Bansal/System SW /SRI-Bangalore/Engineer/삼성전자 [Tue, 20 Nov 2018 04:04:45 +0000 (09:34 +0530)]
Minor changes in TransposeConv op (#3619)

* Minor changes in TransposeConv op

Addressing the comments by jh1302-park in #3423

Signed-off-by: b.devansh <b.devansh@samsung.com>
* Minor changes in TransposeConv op

Addressing the comments by jh1302-park in #3423

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoIntroducing LogicalNot op in NeuralNetworksEx (#3598)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 20 Nov 2018 04:03:30 +0000 (07:03 +0300)]
Introducing LogicalNot op in NeuralNetworksEx (#3598)

This commit introduces LogicalNot op in NeuralNetworksEx.h
Related issues: #3596

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years ago[model_parser] Fix wrong printing type of tensor (#3635)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 20 Nov 2018 02:03:54 +0000 (11:03 +0900)]
[model_parser] Fix wrong printing type of tensor (#3635)

* [model_parser] Fix wrong printing type of tensor

Fixes wrong printing type of tensor. The type names like FLOAT32,
UINT8 not 0 should be printed.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Fix to get type_name from tensor_wrapping

5 years agoNnapi delegate for ArgMax (#3558)
PRAVEEN DORESWAMY NAIDU/System SW /SRI-Bangalore/Staff Engineer/삼성전자 [Mon, 19 Nov 2018 08:21:52 +0000 (13:51 +0530)]
Nnapi delegate for ArgMax (#3558)

The changes introduces the nnapi delegate for ArgMax operation.

Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years agoAdd generated test for ARG_MAX (#3554)
PRAVEEN DORESWAMY NAIDU/System SW /SRI-Bangalore/Staff Engineer/삼성전자 [Mon, 19 Nov 2018 07:46:27 +0000 (13:16 +0530)]
Add generated test for ARG_MAX (#3554)

The changes adds the generated test's for ARG max operation.

Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years agoApply CL Kernel of Embedding_Lookup to PACL (#3616)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 19 Nov 2018 07:44:12 +0000 (16:44 +0900)]
Apply CL Kernel of Embedding_Lookup to PACL (#3616)

This commit applies CL Kernel of Embedding_Lookup to PACL.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoAdd gtest to test Transpose op for Tensors with rank < 4 (#3601)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Mon, 19 Nov 2018 02:35:03 +0000 (08:05 +0530)]
Add gtest to test Transpose op for Tensors with rank < 4 (#3601)

This patch will add gtest to verify Transpose op for input tensors
having rank < 4

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years ago[model_parser] Prints optons for Depthwise_Conv_2D (#3613)
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 19 Nov 2018 02:02:46 +0000 (11:02 +0900)]
[model_parser] Prints optons for Depthwise_Conv_2D (#3613)

This commit adds feature to print optons for Depthwise_Conv_2D.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
5 years ago[model parser] Fix parsing bug when operator don't have option (#3610)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 19 Nov 2018 02:02:35 +0000 (11:02 +0900)]
[model parser] Fix parsing bug when operator don't have option (#3610)

Fix parsing bug invaild exit when operator don't have option

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoChange SimpleSpaceToBatchND's inputs to arm_compute::ITensor (#3553)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 19 Nov 2018 01:22:51 +0000 (10:22 +0900)]
Change SimpleSpaceToBatchND's inputs to arm_compute::ITensor (#3553)

This commit changes SimpleSpaceToBatchND's inputs to arm_compute::ITensor.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoAdd freeze_graph script into tflkit (#3556)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 16 Nov 2018 08:13:41 +0000 (17:13 +0900)]
Add freeze_graph script into tflkit (#3556)

freeze_graph tool will freeze a standalone graphdef with the stored variables.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years agoAdd GTest for testing the enabled Broadcast of EqualEx op (#3304)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 16 Nov 2018 07:21:13 +0000 (12:51 +0530)]
Add GTest for testing the enabled Broadcast of EqualEx op (#3304)

This patch adds GTest for testing the enabled Broadcast of EqualEx op.
Added GTests:
```
equal_ex_broadcast
equal_ex_broadcast_4D_2D
```
Signed-off-by: prasannar <prasanna.r@samsung.com>
5 years agoImplementation of TransposeConv op in PACL for CPU (#3423)
Devansh Bansal/System SW /SRI-Bangalore/Engineer/삼성전자 [Fri, 16 Nov 2018 07:17:30 +0000 (12:47 +0530)]
Implementation of TransposeConv op in PACL for CPU (#3423)

This patch will add TransposeConv op
Related issues : #2739 #2809

Signed-off-by: b.devansh <b.devansh@samsung.com>
5 years agoImplement CL kernel of EmbeddingLookup (#3489)
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 16 Nov 2018 06:30:26 +0000 (15:30 +0900)]
Implement CL kernel of EmbeddingLookup (#3489)

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

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
5 years agoIntroducing LogicalNot op in pure_arm_compute runtime (#3599)
Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 16 Nov 2018 04:24:37 +0000 (07:24 +0300)]
Introducing LogicalNot op in pure_arm_compute runtime (#3599)

This commit introduces LogicalNot op in in pure_arm_compute runtime
Related PR is #3598
Related issues: #3596 and #3459

Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
5 years agoPack generated test update (#3557)
PRAVEEN DORESWAMY NAIDU/System SW /SRI-Bangalore/Staff Engineer/삼성전자 [Fri, 16 Nov 2018 04:20:23 +0000 (09:50 +0530)]
Pack generated test update (#3557)

The changes updates the pack operation in all_generated_test.

Signed-off-by: Praveen D N <praveen.dn@samsung.com>
5 years agoRevise x86 build script (#3604)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 16 Nov 2018 02:43:23 +0000 (11:43 +0900)]
Revise x86 build script (#3604)

x86 build by non-root anomymous user: same userid with host user
Use docker-run-user command and remove docker setting code

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoAdd transform_graph script into tflkit (#3545)
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 15 Nov 2018 07:27:31 +0000 (16:27 +0900)]
Add transform_graph script into tflkit (#3545)

* Add transform_graph script into tflkit

transform_graph tool will transform a TensorFlow GraphDef applying some transformations.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Update detailed usage to README.md

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
5 years ago[tfltool] Update option parsing in select operator for v1.12 (#3594)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 15 Nov 2018 07:10:18 +0000 (16:10 +0900)]
[tfltool] Update option parsing in select operator for v1.12 (#3594)

Add comment for new options
Fix DepthwiseConv2DOptions for additional field

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Remove IPlanBuilder::addShapeConstr (#3591)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 15 Nov 2018 04:32:30 +0000 (13:32 +0900)]
[neurun] Remove IPlanBuilder::addShapeConstr (#3591)

Since #2741 is merged, we do not need this method. We can remove this
from IPlanBuilder.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[neurun] DotDumper shows model outputs (#3590)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 15 Nov 2018 04:17:01 +0000 (13:17 +0900)]
[neurun] DotDumper shows model outputs (#3590)

Just like model inputs, this commit shows model outputs as a different
shape.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[tfltool] Update tflite schema API version (#3581)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 15 Nov 2018 04:14:16 +0000 (13:14 +0900)]
[tfltool] Update tflite schema API version (#3581)

Update tflite schema API version v1.9 -> v1.12

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years agoSupport docker run as non-root user (#3592)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 15 Nov 2018 04:03:19 +0000 (13:03 +0900)]
Support docker run as non-root user (#3592)

Run non-root anomymous user: same userid with host user
Used on arm cross build and tizen build

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Introduce Model class (#3586)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 15 Nov 2018 02:41:50 +0000 (11:41 +0900)]
[neurun] Introduce Model class (#3586)

Model class is a container of actual operands/operations and model's
inputs/outputs.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
5 years ago[model_parser] Supports printing specific tensors and operators (#3580)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 15 Nov 2018 02:09:24 +0000 (11:09 +0900)]
[model_parser] Supports printing specific tensors and operators (#3580)

Now model_parser.py supports argument options for features which prints
specific tensors and operators.

./model_parser.py ./tflite -t 1 2 3   # tensor id
./model_parser.py ./tflite -o 1 2 3   # operator id

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
5 years agoImplementing NotEqual op in runtime (#3515)
Siva Sai Vaddipati/System SW /SRI-Bangalore/Engineer/삼성전자 [Thu, 15 Nov 2018 01:10:01 +0000 (06:40 +0530)]
Implementing NotEqual op in runtime (#3515)

This commit implements the CL version of NotEqual op.
Related issues: #3335, #3337

Signed-off-by: Siva Sai <siva.sai@samsung.com>
5 years agoRemoving TODO for mul (#3363)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 14 Nov 2018 23:36:31 +0000 (05:06 +0530)]
Removing TODO for mul (#3363)

This patch will remove TODO for mul op.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd Pad gtests to test padding across any dimention (#3308)
Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 14 Nov 2018 23:36:14 +0000 (05:06 +0530)]
Add Pad gtests to test padding across any dimention (#3308)

This patch will add gtests to test padding across any dimension.
This will verify padding op is working when in addition to spatial padding,
Padding is done across batch or depth too.

Signed-off-by: shubham <shub98.gupta@samsung.com>
5 years agoAdd comment for argmax_ex (#3576)
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 14 Nov 2018 09:02:43 +0000 (18:02 +0900)]
Add comment for argmax_ex (#3576)

Add comment for ANEURALNETWORKS_ARGMAX_EX in NeuralNetworksEx.h

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
5 years ago[neurun] Remove NDEBUG in planTensors (#3579)
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 14 Nov 2018 08:21:56 +0000 (17:21 +0900)]
[neurun] Remove NDEBUG in planTensors (#3579)

* [neurun] Remove NDEBUG in planTensors

Removes NDEBUG code in Linear::planTensors.

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

5 years agoDefine TENSORFLOW_SUM in NeuralNetworksEx.h (#3578)
Prasanna R/System SW /SRI-Bangalore/Engineer/삼성전자 [Wed, 14 Nov 2018 07:35:04 +0000 (13:05 +0530)]
Define TENSORFLOW_SUM in NeuralNetworksEx.h (#3578)

This patch defines TENSORFLOW_SUM in NeuralNetworksEx.h.
Related issue: #3347.

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