오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 10:39:18 +0000 (19:39 +0900)]
Revise build flags for contrib (#3855)
Revise build flags order for contrib in CfgOptionFlags.cmake
Introduce build flag for tf_test
Use build flag BUILD_LAB for opencl_test build
Change build flags' default for contrib off
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[tfltool] Correction in select operator for RNN op (#3852)
This patch rectifies RNN in tflitetool in select_operator.py
Signed-off-by: b.devansh <b.devansh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 08:14:35 +0000 (17:14 +0900)]
[neurun] Remove backend dependency in View (#3821)
* [neurun] Remove backend dependency in View
This commit removes `backend dependency` in `View` classes.
- Add `offset_element_in_bytes` abstract function to `ITensor`
- Make `View` gets `ITensor`
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Change offset_element_in_bytes to calcOffset
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 08:00:28 +0000 (13:30 +0530)]
Define Gather_Ex op in NeuralNetworkEx.h (#3756)
This patch defines Gather_Ex op in NeuralNetworkEx.h
Related issue: #3347
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 07:58:30 +0000 (13:28 +0530)]
Add nnapi_delegation for PACK n UNPACK (#3787)
This patch adds nnapi_delegation for pack and unpack op.
Signed-off-by: prasannar <prasanna.r@samsung.com>
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 06:46:20 +0000 (15:46 +0900)]
Update pack input parameters (#3848)
The values_count is added by nnapi_delegate
but it is not necessary because it can be replaced with ifm_indexes.size()
So it will be ignored
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 05:38:32 +0000 (14:38 +0900)]
Remove deprecated contrib directories (#3844)
Remove example, bindacl, and convacl directories
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 05:21:31 +0000 (14:21 +0900)]
Add nnapi delegates for reduce_xx ops (#3786)
Add delegates for tflite::BuiltinOperator_SUM,
tflite::BuiltinOperator_REDUCE_MAX, and tflite::BuiltinOperator_REDUCE_MIN
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 04:45:09 +0000 (10:15 +0530)]
Remove Reduce Min GTest from skiplist (#3842)
This patch removes Reduce Min GTest from skiplist.
Signed-off-by: prasannar <prasanna.r@samsung.com>
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 4 Dec 2018 04:44:49 +0000 (13:44 +0900)]
Add tf_classify reference application (#3642)
* Add tf_classify reference application
This patch creates an `example` directory
The tf_classify application is based on TendofFlow Android Camera Demo.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Change application name and move the location
Use tflite_classify instead of tf_classify
Move application under contrib directory
Do not support to download files
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Add const keyword and remove unnecessary library link
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Use std::vector instead of c-style array
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Use OpenCV C++ apis
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 03:32:17 +0000 (09:02 +0530)]
Add CL kernel calls for ReduceMin from PACL. (#3772)
This patch adds CL kernel calls for ReduceMin from PACL.
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 02:40:49 +0000 (08:10 +0530)]
Remove EQUAL delegated as custom op in nnapi_delegate (#3833)
This patch removes EQUAL delegated as custom op in nnapi_delegate
Since EQUAL is built in op as far as v1.12 is concerned.
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 01:16:30 +0000 (10:16 +0900)]
Collect optional operand index (#3768)
Collect optional operand index using defined API in frontend
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 01:14:34 +0000 (10:14 +0900)]
Introduce permission checker (#3831)
Introduce permission checker in format checker
It check execution permission except script files
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:14:23 +0000 (06:44 +0530)]
Remove unnecessary headers files inclusion (#3839)
This patch will remove not req headers inclusion in the following files:
ArgMinMax.cc
ArgMinMax.h
GenericFullyConnectedLayer.cc
GenericFullyConnectedLayer.h
HashtableLookupLayer.cc
HashtableLookupLayer.h
SimpleBatchToSpaceNd.h
SimpleDepthToSpace.h
SimpleEmbeddingLookup.h
SimpleNeg.h
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:14:11 +0000 (06:44 +0530)]
Add license comments to SimplePackLayer* (#3838)
This patch will add license comments to SimplePackLayer.cpp and
SimplePackLayer.h
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:13:55 +0000 (06:43 +0530)]
Remove not req headers from SquarredDiff CL file (#3837)
This patch will remove not req headers in CLSquaredDifferenceKernel.cpp
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:13:42 +0000 (06:43 +0530)]
Remove not req headers from the layers in internal folder (#3840)
This patch will remove unnecessary headers for the follwing files
from the internal/layers :
SimplePackLayer.cc
SimplePackLayer.h
SimplePadLayer.h
SimpleSQRT.cc
SimpleSQRT.h
SimpleSpaceToBatchND.h
SimpleSpaceToDepth.h
SimpleTransposeConv.cc
SimpleTransposeConv.h
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:04:24 +0000 (06:34 +0530)]
[tfltool] Enable select operator for LogicalOr op (#3824)
This patch will enalbe select operator for Logicalor op
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:02:54 +0000 (06:32 +0530)]
[tfltool] Enable select operator for NotEqual op (#3814)
This patch will enable select operator for NotEqual op
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:02:11 +0000 (06:32 +0530)]
Renaming of Logical_AND op to LogicalAnd (#3800)
To maintain uniformity and naming convention,
This patch renames the Logical_AND to LogicalAnd
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 01:01:11 +0000 (06:31 +0530)]
Add gtest to test Neg op for 3D and 4D Tensors (#3796)
This patch will add gtest to test Neg op for 3D/4D tensors.
Signed-off-by: shubham <shub98.gupta@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:59:51 +0000 (06:29 +0530)]
[tfltool] Enable select operator for ArgMax op (#3813)
This patch will enable ArgMax op in tflitetool in select_operator.py
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:57:55 +0000 (06:27 +0530)]
[tfltool] Enable select operator for LogicalAND op (#3815)
This patch will enable LogicalAND in tflitetool in select_operator.py
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:57:08 +0000 (06:27 +0530)]
[tfltool] Enable select operator for Dequantize op (#3818)
This patch enables Dequantize in tflitetool in select_operator.py
Signed-off-by: prasannar <prasanna.r@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:49:12 +0000 (06:19 +0530)]
[tfltool] Enable select operator for Unpack op (#3820)
This patch will enable select operator tflitetool for unpack op
Signed-off-by: shubham <shub98.gupta@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:46:05 +0000 (06:16 +0530)]
Redefining input parameters in reduce_operations.cl Kernel (#3789)
This patch redefines input parameters in reduce_operations.cl Kernel.
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 4 Dec 2018 00:45:46 +0000 (09:45 +0900)]
Remove execution permission for command and configure (#3830)
Remove execution permission for command and configure
- build-docker
- docker-shell
- image_name.configuration
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Tue, 4 Dec 2018 00:45:31 +0000 (06:15 +0530)]
Correction in data type supported by neg_tensor.cl (#3790)
This patch corrects the comments on data type supported by neg_tensor.cl.
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 11:28:48 +0000 (20:28 +0900)]
[tool] Enable select operator for reduce operators (#3810)
Enable select operator for reduce operators: reduce_max, reduce_min, reduce_any, mean, sum,
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[tfltool] Enable select operator for RNN op (#3825)
This patch enables RNN in tflitetool in select_operator.py
Signed-off-by: b.devansh <b.devansh@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 11:24:00 +0000 (16:54 +0530)]
Add NNAPI delegation to PRELU op (#3807)
This patch adds NNAPI delegation to PRELU op.
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 10:43:43 +0000 (19:43 +0900)]
Handle optional input & output on frontend (#3763)
- Throw exception when optional input is set because we cannot support this yet
- Return with do nothing for optional output
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 3 Dec 2018 10:41:46 +0000 (19:41 +0900)]
Add a generated test for SpaceToBatchND (#3637)
This commit adds a generated test for SpaceToBatchND.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 10:29:07 +0000 (19:29 +0900)]
Initialize and reset for bool type in Diff.cpp (#3777)
Define initializer, reseter and comparator for bool type tensor
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:22:32 +0000 (14:52 +0530)]
Remove registraton of EQUAL, RSQRT as custom op. (#3809)
Since ops like EQUAL, RSQRT have been introduced in TF v1.12
They need not be registered as Custom ops anymore.
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:20:05 +0000 (14:50 +0530)]
Rename topk_v2 gtests to topk_v2_ex (#3765)
This patch renames topk_v2 gtests to topk_v2_ex.
This is done for maintaining uniformity.
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:19:32 +0000 (14:49 +0530)]
Rename split Generated test to split_ex (#3766)
This patch renames split Generated test to split_ex.
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 09:19:03 +0000 (14:49 +0530)]
Renaming Gather GTests to gather_ex (#3767)
This patch renames Gather GTests to gather_ex.
This is done to maintain the uniformity.
Signed-off-by: prasannar <prasanna.r@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 3 Dec 2018 07:37:18 +0000 (16:37 +0900)]
[neurun] Extract Coordinate4D from ParentInfo (#3806)
This commit extracts `Coordinate4D` class from `ParentInfo` to use in other classes generally.
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 07:28:27 +0000 (12:58 +0530)]
Introduce PReLU op in PACL (#3791)
This patch introduces PReLU op in PACL.
Related issue: #3459
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 06:42:42 +0000 (15:42 +0900)]
Support boolean tensor input and output (#3808)
Supprot boolean tensor input and output in nnapi delegate
Use temporary buffer for casting between boolean array and quantized int array
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 06:16:12 +0000 (11:46 +0530)]
Remove SQRT and RSQRT delegated as CUSTOM OP in nnapi_delegate (#3788)
This patch removes SQRT and RSQRT delegated as CUSTOM OP in nnapi_delegate.
Since #3742 is merged.
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 05:49:20 +0000 (14:49 +0900)]
Fix typo to path lcov-to-cobertura-xml (#3803)
Fix typo to path lcov-to-cobertura-xml:
externals/lcov-to-covertura-xml -> externals/lcov-to-cobertura-xml
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 04:11:33 +0000 (09:41 +0530)]
Insert LogicalOr case in Model.cc (#3801)
This patch will add case for LogicalOr in Model.cc
Signed-off-by: shubham <shub98.gupta@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 04:01:35 +0000 (09:31 +0530)]
Define SPLIT_EX in NeuralNetworkEx.h (#3755)
This patch defines SPLIT_EX in NeuralNetworkEx.h
Related issue: #3347
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 03:47:07 +0000 (09:17 +0530)]
Define TOPK_V2_EX in NeuralNetworkEx.h (#3759)
This patch defines TOPK_V2_EX in NeuralNetworkEx.h.
Related issue: #3347
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 03:05:21 +0000 (08:35 +0530)]
Add nnapi_delegation for Equal and NOT_Equal (#3745)
* Add nnapi_delegation for Equal and NOT_Equal
This patch adds nnapi_delegation for Equal and NOT_Equal.
Signed-off-by: prasannar <prasanna.r@samsung.com>
* Add nnapi_delegation for Equal and NOT_Equal
This patch adds nnapi_delegation for Equal and NOT_Equal.
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 02:22:56 +0000 (07:52 +0530)]
Implement SQRT_EX op in CPU (#3760)
This patch implements SQRT_EX op in CPU.
Related issue: #3459
Signed-off-by: prasannar <prasanna.r@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 02:09:37 +0000 (07:39 +0530)]
Introduce PRELU_EX in NeuralNetworksEx.h (#3769)
This patch introduces PRELU_EX in NeuralNetworksEx.h
Related issue: #3574 #3459
Signed-off-by: prasannar <prasanna.r@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 02:05:58 +0000 (11:05 +0900)]
Update generated test files (#3749)
* Remove deprecated generated test files
- Remove deprecated files: already recipe is removed
- Remove deprecated files by renamed: floor, tanh, and div recipe is renamed becasue of namespace conflict
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update generated files
Update difference between generated by script and code in repo
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 01:44:35 +0000 (07:14 +0530)]
Add gtest to test Logical_OR_Ex op (#3781)
This patch will add gtest to test Logical_OR op
Signed-off-by: shubham <shub98.gupta@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Mon, 3 Dec 2018 01:34:06 +0000 (07:04 +0530)]
Remove Passing mean gtest from skiplist (#3782)
This patch will remove passing mean gtest from skiplist
Signed-off-by: shubham <shub98.gupta@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 3 Dec 2018 01:31:13 +0000 (10:31 +0900)]
Register reduce_xx operator for internal tflite interpreter (#3785)
Reduce_sum, reduce_min, reduce_max builtin operators are registered
for internal tflite interpreter.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
Define TRANSPOSE_CONV_EX in NeuralNetworksEx.h (#3773)
This patch defines TRANSPOSE_CONV_EX in NeuralNetworksEx.h.
Related issue: #3347
Signed-off-by: b.devansh <b.devansh@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 3 Dec 2018 01:27:19 +0000 (10:27 +0900)]
[neurun] Move Convert to backend/acl_cl (#3778)
internal/Convert.h and the source file is acl_cl dependent, so it is
moved to `backend/acl_cl` dir.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 07:38:52 +0000 (13:08 +0530)]
Add Quant8 support to NotEqual CL (#3754)
This patch will provide quant8 support for NotEqual Op
Signed-off-by: shubham <shub98.gupta@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 07:38:29 +0000 (16:38 +0900)]
Handle boolean for nnapi delegate (#3775)
To handle boolean for nnapi delegate, change type to quantized tensor and call NNAPI
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 07:38:08 +0000 (13:08 +0530)]
Define Abs_Ex op in NeuralNetworksEx.h (#3758)
This patch will define Abs_Ex op in NeuralNetworksEx.h
Signed-off-by: shubham <shub98.gupta@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 06:58:49 +0000 (15:58 +0900)]
Move benchmark into contrib (#3774)
Move benchmark into contrib
Revise directory structure: use src directory
Revise cmake to reference src directory and check build option
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 06:23:07 +0000 (11:53 +0530)]
Introduce LOGICAL_AND op in runtime (#3564)
This patch introduces LOGICAL_AND op in our runtime.
Related issue: #3459
Signed-off-by: prasannar <prasanna.r@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 06:08:11 +0000 (15:08 +0900)]
Add delegate for SQRT and RSQRT (#3742)
* Add delegate for SQRT and RSQRT
With tensorflow v1.12, SQRT and RSQRT are built-in operator.
This commit adds delegate for built-in SQRT and RSQRT.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* Add macro to avoid GBS build fail
tizen(obs) has tensorflow v1.9 while this commit requires v1.12.
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Nov 2018 04:13:08 +0000 (13:13 +0900)]
Introduce optional operand set on frontent (#3751)
Introduce unordered_set field for optional operand
Define API to insert optional operand
Introduce process to handle optional operand at model finish (cannot handle yet)
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 30 Nov 2018 04:10:00 +0000 (13:10 +0900)]
[neurun] Replace ITensor to our own (#3739)
Related : #3273
Part of : #3700
This commit replaces `arm_compute::ITensor` to `neurun::operand::ITensor` finally.
Replaced below classes
- ITensor
- ICLTensor
- CLTensor
- CLSubTensor
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
Prasanna R/SNAP /SRI-Bangalore/Engineer/삼성전자 [Fri, 30 Nov 2018 02:17:27 +0000 (07:47 +0530)]
Implement CL Kernel for ReduceMin op (#3744)
This patch implements CL Kernel for ReduceMin op.
Signed-off-by: prasannar <prasanna.r@samsung.com>
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>
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>
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>
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>
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>
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>
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>
이한종/동작제어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>
김수진/동작제어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>
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>
오형석/동작제어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>
오형석/동작제어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>
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>
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>
장지섭/동작제어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>
장지섭/동작제어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>
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>
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>
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>
오형석/동작제어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>
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>
김수진/동작제어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>
이한종/동작제어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>
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>
[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>
장지섭/동작제어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>
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>
김수진/동작제어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
장지섭/동작제어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>
이춘석/동작제어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
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>
이한종/동작제어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>
이춘석/동작제어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>
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>
이상규/동작제어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>