summaryrefslogtreecommitdiff
path: root/runtimes
AgeCommit message (Collapse)AuthorFilesLines
2019-03-28[neurun] DataflowExecutor indentation fix (#4890)이한종/On-Device Lab(SR)/Engineer/삼성전자1-23/+17
* [neurun] DataflowExecutor indentation fix Remove the extra block in DataflowExecutor implementation. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com> * Remove another block Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-28[neurun] Add NEON backend (#4522)이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자36-445/+2272
* [neurun] Add CMakeLists.txt for NEON Add CMakeLists.txt for NEON backend Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * [neurun] Replicate the acl_cl backend code - This is just a replication of acl_cl backend code Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * [neurun] Add acl_neon sub dir Add acl_neon sub dir for NEON backend Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * [neurun] Fix build failure [neurun] Fix build failure in NEON Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * Add acl_neon backend into Config file Add acl_neon backend into Config file Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * Use NEReshapeLayer for runinng mobilenet model With this patch, neurun can run mobilenet Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * Fix build error after rebase Fix build error after rebase Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * Fix copyright year and macros Fix copyright year and macros Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * Remove unsupported op from StageGenerator.cc Remove unsupported op from StageGenerator.cc Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * Use NEFullyConnectedLayer instead of GenericFCLayer Use NEFullyConnectedLayer instead of GenericFCLayer Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * [neurun] Fix build error [neurun] Fix build error #2 Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * [neurun] Reuse cl version of convert and Swizzle Also fixed INETensor class: it didn't implemented one abstract member of ITensor Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * [neurun] Rebase onto master [neurun] Rebase changes onto master Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * [neurun] Phase 2: Reuse other backends codes where needed Reuse other backends codes where needed Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * [neurun] Fix linking errors of reused codes Fix linking errors of reused codes Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Separate acl common files into single dir Pull all files, that are used in both acl_cl and acl_neon into separate dir Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Cleanup virtual function declarations in neurun backends Cleanup virtual function declarations in neurun backends. This is borrowed from PR 4791 Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Rename make_acl_function as asAclFunction Fix coding style of make_acl_function Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Move cpu::Object into neurun_core::backend Move cpu::Object into neurun_core since it is used in NEON also Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Rebase onto master: conflict because of TensorInfo Rebase onto master: conflict because of TensorInfo Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Fix copyright year of acl_common/TemplTensorBuilder.h Fix copyright year of acl_common/TemplTensorBuilder.h Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com> * Merge onto master: fixStageGenerator Merge onto master: fixStageGenerator Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
2019-03-28[pureacl] Use fused_act parameter in Conv and DepthwiseConv acl layer (#4851)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자1-8/+45
* [pureacl] Use fused_act parameter in Conv and DepthwiseConv acl layer acl v19.03 support fused_act parameter in Conv and DepthwiseConv layer. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> * Revert DepthwiseConvolution changes Activation layer information only works for QASYMM8 in DepthwiseConvolutionLayer. * Add comments for configure of ConvolutionLayer
2019-03-28[Interpreter] Allocate and assign constant tensor (#4888)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-1/+17
Allocate tensor for constant operand Assign constant tensor to exec-env Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-28[cker] Introduce average pool kernel (#4889)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-8/+7
Introduce average pool kernel from tflite Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-28Introduce concat kernel (#4887)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-16/+37
Introduce concat kernel from tflite Use concat kernel in cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-28[neurun] Rename Executor as LinearExecutor (#4874)이한종/On-Device Lab(SR)/Engineer/삼성전자4-17/+18
Before this was the only Executor so its name was "Executor", now that we have more Executors so rename it to prevent from confusion. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-28Introduce ExecEnv for intepreter (#4882)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자5-10/+166
Define ExecEnv to gather interpreter environment - status, memory, etc Assign input and output tensor into ExecEnv Fix unittest Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-27[neurun] Enable setting the data type of mode operand::Object (#4881)장지섭/On-Device Lab(SR)/Engineer/삼성전자3-1/+10
This commit Enable setting the data type of made operand::Object. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-03-27Fix build error by conflict (#4873)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-14/+16
Fix build error by operationFactory parameter change Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-27Move backend unittest (#4870)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자4-5/+13
Move backend unittest into each backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-27[neurun] Enable LocalResponseNorm, DepthToSpace, ReduceMin ops (#4714)김수진/Quality Tool Lab(SR)/Engineer/삼성전자13-49/+686
Related : #3708 This commit enables `LocalResponseNormalization`, `DepthToSpace`, `ReduceMin` ops for `acl_cl`. Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
2019-03-27[neurun] Reuse code in Executor::execute (#4869)이한종/On-Device Lab(SR)/Engineer/삼성전자6-76/+49
Reuse setting inputs and outputs part with template method pattern. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-27[neurun] Add passing a param of operand::Set when creating the Node (#4867)장지섭/On-Device Lab(SR)/Engineer/삼성전자3-55/+106
This commit adds passing a param of operand::Set when creating the Node in order to adjust operand information for each operation. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-03-27[neurun] Bugfix - running with multiple backends (#4866)이한종/On-Device Lab(SR)/Engineer/삼성전자1-1/+32
Due to not defining DefBackend for model inputs, there was a problem when running with multiple backends. Fix #4828 Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-27[neurun] Promote OperandContext to ExecutorBase (#4864)이한종/On-Device Lab(SR)/Engineer/삼성전자6-15/+18
As all the executors have OperandContext in common, we can promote it to its base class `ExecutorBase`. Part of #4823 Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-26Enable external IO memory set validation test (#4860)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-17/+149
Implement NNAPI to set input and output using external memory Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-26Remove gbs build check for cpu backend build (#4858)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-3/+5
To build neurun cpu backend, check tensorflow lite internal source code instead of gbs build flag Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-26[neurun] Move out of the graph of neurun to collect the model's information ↵장지섭/On-Device Lab(SR)/Engineer/삼성전자10-103/+124
(#4838) This commit moves out of the graph of neurun to collect the model's infomation. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-03-26Remove architecture check for backend build (#4854)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-4/+7
To build neurun acl_cl backend, check acl support instead of target architecture name Fix arm architecture flag bug Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-26Check invalid NNAPI input and output index (#4849)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-16/+39
* Check invalid NNAPI input and output index Check too large index by return invalid index value in wrppaer function Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com> * Fix validation check log
2019-03-26[neurun] Enable ArgMax, Dequantize, Mean ops (#4751)김수진/Quality Tool Lab(SR)/Engineer/삼성전자13-0/+607
* [neurun] Enable ArgMax, Dequantize, Mean ops This commit enables `ArgMax`, `Dequantize`, `Mean` ops for `acl_cl`. * fix build break Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
2019-03-26Check input and output tensor length (#4847)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자5-0/+50
Check correctness of length for input and output tensor setting based on NNAPI spec Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-25[neurun] Extract OperandContext from Plan (#4834)이한종/On-Device Lab(SR)/Engineer/삼성전자4-10/+10
Extract OperandContext from Plan so OperandContext can be merged in ExecutorBase. (Both Executor and DataflowExecutor contains OperandContext so we can promote it to ExecutorBase, later.) Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-25Move util for frontend only (#4843)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자5-85/+75
* Move util for frontend only Move util implementation for NNAPI frontend only * Define static function for convert Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-25Change compiler::TensorInfo to model::operand::Info (#4830)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자12-46/+43
Change compiler::TensorInfo to model::operand::Info All data fields in TensorInfo is model operand's info Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-25Redo TensorBuilderSet as unordered_set (#4836)Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자3-4/+3
Redo TensorBuilderSet as unordered_set since we don't care if it is sorted or not Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
2019-03-25Introduce tensor interface and class for interpreter (#4818)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자4-7/+202
Introduce tensor interface for interpreter Introduce ROTensor (read-only tensor) and Tensor (writable tensor) class Generate interpreter tensor when input/output is set Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-22[neurun] Abstract compilation into functions (#4803)이한종/On-Device Lab(SR)/Engineer/삼성전자2-123/+136
* [neurun] Abstract compilation into functions Abstract compilation procedure as a function for each Executors. They are introduced as static, private and has a parameter and a return value. It is intended to explicitly show which is input and output for compilation. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com> * Rename functions prefix - compile to create Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-22[neurun] Replace uint32_t with Index in Set (#4816)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자5-6/+13
operand::Set and operation::Set have hardcoded uint32_t and assertion, which is based on wrong assumption that Index is always uint32_t. This patch replaces uint32_t with Index. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-03-22Cleanup virtual function declarations in neurun backends (#4791)Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자5-87/+79
Cleanup virtual function declarations in neurun cpu and acl_cl backends Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
2019-03-22[neurun] Remove unneeded dependency of neurun-core on tflite (#4817)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-2/+0
Looks like it is a remnant of times when neurun was being built as a single library (now it is divided into several parts, such as core, front end and back end). Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-03-22Enable NNAPI compilation validation test (#4808)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-3/+12
* Enable NNAPI compilation validation test Enable ValidationTestCompilation.Finish test Define compile state STARTED Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com> * Rename NONE to CREATED
2019-03-21Remove simple operation in ARMComputeEx (#4814)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-153/+7
Remve simple operation in ARMComputeEx except pack/unpack Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-21Set input and output tensor info for interpreter (#4798)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자4-74/+64
- Set input and output tensor info for interpreter - Fix TensorInfo bug - Remove sink/source implementation Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-21Remove NENormalizationLayer (#4813)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-2/+2
Remove deprecated NENormalizationLayer and NENormalizationLayerExKernel implementation Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-21[neurun] Enable Gather, Neg, Abs ops (#4740)김수진/On-Device Lab(SR)/Engineer/삼성전자13-0/+493
This commit enables `Gather`, `Neg`, `Abs` ops for `acl_cl`. Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
2019-03-21Enable NNAPI I/O identify validation check (#4810)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+7
Enable ValidationTestIdentify.DuplicateInputs and ValidationTestIdentify.DuplicateOutputs for acl_cl kernel Enable all ValidationTestIdentify test for cpu kernel Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-21Introduce paramter checker (#4804)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-0/+132
Introduce parameter checker. As a first commit, - Check add node only - Check activation paramter is constant only Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-21Rename reduce max operation (#4806)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-2/+2
Rename NNAPI Ex operation for reduce max TENSORFLOW_MAX_EX -> REDUCE_MAX_EX Update NeuralNetworksEx.h comment Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-21Remove const keyword from converting functions in NNAPIConvert (#4802)장지섭/On-Device Lab(SR)/Engineer/삼성전자2-4/+4
This commit removes const keyword from converting functions in NNAPIConvert. In general, const is used on a return value of RVO because const affect move semantics. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-03-21Cleanup build warnings (#4794)Vladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자2-20/+22
Remove redundant `virtual` declarations and use `override` instead( as per Core Guidelines C.128 ) Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
2019-03-20[neurun] Merge Equal and NotEqual to Comparison op (#4797)김수진/On-Device Lab(SR)/Engineer/삼성전자11-242/+131
In https://github.sec.samsung.net/STAR/nnfw/pull/4738#discussion_r156180, we've discussed to group all operations in `::arm_compute::ComparisonOperation`. This commit introduces `ComparisonNode` that includes operations in `::::arm_compute::ComparisonOperation` and intergrate `Equal` and `NotEqual` to `ComparisonNode` `ComparisonNode` can be support below. ``` enum class ComparisonType { Equal, NotEqual, Greater, GreaterEqual, Less, LessEqual }; ``` Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
2019-03-20[neurun] Enable Equal, SquaredDifference, TopKV2 ops (#4738)김수진/On-Device Lab(SR)/Engineer/삼성전자11-0/+502
* [neurun] Enable Equal, SquaredDifference, TopKV2 ops This commit enables `Equal`, `SquaredDifference`, `TopKV2` ops for `acl_cl`. Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com> * Fix build break
2019-03-20[neurun] Remove unnecessary target include dirs (#4787)이한종/On-Device Lab(SR)/Engineer/삼성전자4-5/+4
Remove `target_include_directories` for NEURUN_INCLUDE_DIR. However variable NEURUN_INCLUDE_DIR cannot be removed for now since cpu/acl_cl kernel module improperly depend on this dir. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-20Fix missing symbol in logging backend (#4793)Vladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자1-0/+6
* Fix missing symbol in logging backend Add missing ANeuralNetworksCompilation_free in logging backend Signed-off-by: Vladimir Plazun <v.plazun@samsung.com> * Format fix Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
2019-03-19[neurun] Extract core module CMakeLists.txt (#4789)이한종/On-Device Lab(SR)/Engineer/삼성전자2-14/+13
Extract CMakeLists.txt file for neurun/core. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-03-19Save backend dlopen handle (#4784)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-0/+4
Save backend dlopen handle in map member variable It uses to avoid warning by handle lost without dlclose(), but it will be used to other purpose later Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-19[neurun] Enable LogicalOr, LogicalNot ops (#4734)김수진/On-Device Lab(SR)/Engineer/삼성전자9-0/+299
* [neurun] Enable LogicalOr, LogicalNot ops Related : #3708 This commit enables `LogicalOr`, `LogicalNot` ops for `acl_cl`. Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com> * Change LogicalOr kernel to CLBitwiseOr * Fix build break
2019-03-19Introduce TensorInfo for interpreter (#4780)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+98
Introduce TensorInfo for interpreter Current implementation is copy of compiler::TensorInfo Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>