summaryrefslogtreecommitdiff
path: root/runtimes
AgeCommit message (Collapse)AuthorFilesLines
2019-04-23Manage operand stack and operation stack for interpretation (#5020)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-1/+59
- Introduce operand ready checker - Introduce operation stack to save prepared operation - Manage operand stack and operation stack and show log Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-23Introduce operand usage vectorin frontend (#5039)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-1/+26
Collect operand usage info in frontend Clear when model building is finished Prepare removing nnapi-dependent usage info in neurun model operand Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-23Change default runtime to neurun (#5042)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자6-6/+5
* Change default runtime to neurun Change default runtime: pacl -> neurun Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com> * Enable loggin runtime default
2019-04-23Remove operand usage getter methods (#5038)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자10-17/+11
- Remove unused isModelInput() method - Remove usage() method. Use hasData() and model's input/output Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-22Change ARGMAX definition (#5021)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-2/+2
Chagne ARGMAX definition same with current NNAPI - Allow one axis reduce - Output rank = input rank - 1 Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-18[neurun] Apply code for merging node into subgraph to Graph (#5019)김용섭/On-Device Lab(SR)/Engineer/삼성전자1-22/+168
Apply code for merging node into subgraph to Graph instead of 1 subrgaph 1 node code Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
2019-04-18Prepare operand stack in interpreter (#5015)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+29
Prepare operand stack in interpreter to save prepared operands to use Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-18[neurun] Apply SubgraphContext(1 subgraph 1 node) (#5014)김용섭/On-Device Lab(SR)/Engineer/삼성전자9-140/+207
Apply SubgraphContext(1 subgraph 1 node) to Graph, Linear, Compiler and {Dataflow|Linear}Executor Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
2019-04-17Interpreter ITensor Inherit backend ITensor (#5005)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-2/+2
Interpreter ITensor Inherit backend ITensor for more compatibility with other backends Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-17[neurun] Rename operation::Node as Operation (#5013)이한종/On-Device Lab(SR)/Engineer/삼성전자135-275/+276
This is for reducing namespace operation. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-04-17Fix a couple of noticeable clang static analyzer warnings (#4981)Aleksei Grebenkin/AI Ecosystem Lab /SRR/Engineer/삼성전자2-5/+5
* Fix a couple of noticeable clang static analyzer warnings Fixed passing vector by value, lack of default switch case, dead code Signed-off-by: Alexey Grebenkin <a.grebenkin@samsung.com> * Correcting for PR comments * Correcting for more PR comments
2019-04-17Fix OperationIndex build break from Subgraph (#5012)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자2-28/+40
It fixes build-break caused by Subgraph's use of model::operation::Index, which is renamed to model::OperationIndex. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-17Introduce interpreter class (#5006)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-2/+117
* Introduce interpreter class Introduce interpreter class: run on assigned ExecEnv Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com> * Fix define for header
2019-04-16[neurun] Introduce SubgraphContext class (#4995)김용섭/On-Device Lab(SR)/Engineer/삼성전자2-0/+195
This class would be used as a context class which has Subgraphs instead of SubgraphSet in Graph Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
2019-04-16[neurun] Rename operation::Index as OperationIndex (#5002)이한종/On-Device Lab(SR)/Engineer/삼성전자30-105/+102
This is for reducing namespace operation. Part of #4985 Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-04-16Remove axis conversion in libs/ARMComputeEx (#4992)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-4/+20
Remove axis conversion in libs/ARMComputeEx because conversion should done before configuration Fix axis conversion in pack/unpack acl-cl extend kernel Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-16[neurun] Change from SubgraphSet to SubgraphSequence (#4996)김용섭/On-Device Lab(SR)/Engineer/삼성전자8-25/+28
Change the name SubgraphSet. Actually SubgraphSet has elements in order so that SubgraphSequence is proper name. Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
2019-04-15Interpreter use info structure in model (#4988)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자4-124/+51
Instead of using interpreter's own structure, use tensor info structure in model Move comment and copy constructor Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-11Remove install backend kernel (#4979)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-3/+0
Remove install static kernel library because they are linked at each backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-11Move backend cmake setting into each backend (#4976)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자7-22/+21
Move backend cmake variable setting into each backend Remove target check in backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-11[neurun] add ExecManager::{setInput,setOutput} unit tests (#4972)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+94
Add unittest for specifying unspecified dimension with setInput and setOutput. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-11Remove cpu backend build dependency with tflite (#4975)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-12/+0
Remove header path and linking dependency with tflite in cpu backend build cmake Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-10[neurun] Remove type and shape argument from Executor's setInput and ↵이상규/On-Device Lab(SR)/Principal Engineer/삼성전자6-31/+132
setOutput (#4957) IExecutor, ExecutorBase, ExecManager will have setInput and setOutput that don't require `type` and `shape` parameters. In this case, `type` and `shape` from model will be used. ExecManager test is also modified to use newly introduced setInput and setOutput. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-10Remove unused util function in cpu backend (#4971)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-73/+0
Remove unused util function in cpu backend: type conversion to tflite internal type Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-10Introduce cpu quant8 softmax kernel (#4953)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-5/+4
Introduce cpu quantized int8 softmax kernel from tflite and gemmlowp Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-10Fix copyright (#4967)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+16
Fix copyright using introduced script Add copyright in libs/ARMComputeEx/src/runtime/misc/functions/Utils.cpp, runtimes/neurun/backend/acl_neon/operand/INETensor.cc Fix libs/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h year based on file created date Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-09[neurun] Remove redundant virtual from override functions (#4956)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자14-52/+48
I removed `virtual` when I am sure it is our code. Otherwise, I did not removed `virtual`. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-08Remove deprecated header include in neurun cpu kernel (#4942)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-4/+0
Remove deprecated header include in neurun cpu fully connected kernel Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-05[neurun] Garden and remove redundunt code from ExecManager Test (#4930)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-7/+13
- Merge duplicated calls into one model->operands.at(operand_activation).usage(Usage::CONSTANT); model->operands.at(operand_activation).usage(operand::Usage::CONSTANT); - Group the related statements by operand and operator Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-04[neurun] Eliminate the concept of scalar type (#4929)장지섭/On-Device Lab(SR)/Engineer/삼성전자21-116/+100
This commit eliminate the concept of scalar type. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-04-04[PACL] Fix wrong setting of for SpaceToBatch in NHWC (#4366)장지섭/On-Device Lab(SR)/Engineer/삼성전자1-70/+43
This commit fixes wrong setting of block_size and padding size for SpaceToBatch in NHWC. - Change setting of them to only support 4-dimensional input and the 2-dimensional spatial shape. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-04-04[neurun] Fix a typo (#4931)장지섭/On-Device Lab(SR)/Engineer/삼성전자1-1/+1
This commit fixes a type. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-04-04[neurun] Fix wrong output operand in ExecManager test (#4927)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-1/+1
Fix wrong added output operand. (operand_rhs to operand_result) Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-04[neurun] Simpify TypeInfo constructor using default parameters (#4926)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자6-9/+9
`scale` and `offset` are used only in case of `TENSOR_QUANT8_ASYMM`. For most cases, we don't need the values at all. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-04Fix some errors from Clang compiler (#4915)Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자9-9/+11
* Fix some errors from Clang compiler * Fix abs on unsigned char, fix hidden overloaded virtual function, rename predeclared class on struct, remove unused private variable, remove std::move when he called in return statement Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com> * Fix unused variables, struct/class mismatching Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com> * Fix extern C++, unused variables, explicit overriding, remove std::move in return statement Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com> * Fix file for format-check and extern C Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com> * Fix library information removing from neurun Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
2019-04-03Support GREATER_EQUAL and LESS (#4900)장지섭/On-Device Lab(SR)/Engineer/삼성전자2-1/+43
* Append nnapi tests of GREATER_EQUAL and LESS This commit appends nnapi tests of of GREATER_EQUAL and LESS. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com> * [neurun] Support GREATER_EQUAL and LESS This commit supports GREATER_EQUAL and LESS operations. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-04-03[neurun] Allow integer list for neurun::operand::Shape (#4909)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자6-20/+12
This patch enables initilization of neurun::operand::Shape with list. Before: ``` operand::Shape shape{4}; shape.dim(0) = 1; shape.dim(1) = 2; shape.dim(2) = 2; shape.dim(3) = 1; ``` After: ``` operand::Shape shape{1, 2, 2, 1}; ``` Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-04-02Remove unused header in cpu backend ReshapeLayer (#4917)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-4/+0
Remove unused header in cpu backend ReshapeLayer to remove dependency with tensorflow lite Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-02Introduce cpu quant8 fully connected kernel (#4918)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-16/+13
Introduce cpu quantized int8 fully connected kernel from tflite Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-01Introduce float softrmax cpu kernel (#4911)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-4/+5
* Introduce float softrmax cpu kernel Introduce float softmax cpu kernel from tflite Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com> * Fix release build bug
2019-04-01Introduce cpu quant8 convolution kernel (#4910)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-99/+51
Introduce cpu quantized int8 convolution kernel from tflite and gemmlowp Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-01Introduce float fully connected kernel (#4894)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-24/+33
Introduce float fully connected kernel from tflite Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-01Introduce cpu float depthwise convolution kernel and backend (#4906)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-14/+64
Introduce cpu float depthwise convolution kernel from tflite Implement neurun cpu backend for depthwise convolution Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-01Add assertion for cpu backend shape conversion (#4904)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+3
CPU backend assume that neurun's internal shape is always same or less than 4. It is true on current neurun implementation, but it may change. So add assertion to check this. Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-01[neurun] Add validation of ComparisonNode (#4901)장지섭/On-Device Lab(SR)/Engineer/삼성전자2-0/+15
This commit adds validation of ComparisonNode. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-04-01[neurun] Simplify Backend C Interface (#4891)이한종/On-Device Lab(SR)/Engineer/삼성전자7-80/+182
C API was 3 functions that creates each components of a Backend. This commit revises it to have only one API function `neurun_backend_create` which packs all the components. Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-04-01Introduce cpu maxpool kernel (#4897)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-6/+7
Introduce cpu maxpool kernel from tflite Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-29Introduce float convolution kernel (#4892)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-21/+16
Introduce float convolution kernel from tflite Use kernel in neurun cpu backend Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-29[neurun] Enable operations using boolean type (#4883)장지섭/On-Device Lab(SR)/Engineer/삼성전자1-5/+38
This commit enable operations using boolean type. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-03-29Revert "[PACL] Apply DepthwiseConvolutionLayer3x3 to DepthwiseConv operation ↵윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자3-84/+22
(#4354)" (#4840) This reverts commit 34f49de36ae41f10735fd570e006981671e13a68. The same changes were merged in acl v19.02. Related PR : https://review.mlplatform.org/#/c/ml/ComputeLibrary/+/511/ Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>