platform/core/ml/nnfw.git
4 years ago[onert/cpu] Support erf operation (#4035)
Hyeongseok Oh [Tue, 1 Sep 2020 07:38:17 +0000 (16:38 +0900)]
[onert/cpu] Support erf operation (#4035)

- base_loader loader CUSTOM(erf)
- CPU backend support Erf float32 operation

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[luci] Update naming rule in FuseBCQPass (#4036)
Seok Namkoong [Tue, 1 Sep 2020 07:20:43 +0000 (16:20 +0900)]
[luci] Update naming rule in FuseBCQPass (#4036)

This commit will update naming rule in `FuseBCQPass`

ONE-DCO-1.0-Signed-off-by: Seok NamKoong <seok9311@naver.com>

4 years ago[res] gelu TF examples (#4046)
SaeHie Park [Tue, 1 Sep 2020 06:52:16 +0000 (15:52 +0900)]
[res] gelu TF examples (#4046)

This will add TF examples for gelu operator

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[one-cmds] fix setuptools version for one-prepare-venv (#4045)
SaeHie Park [Tue, 1 Sep 2020 05:57:00 +0000 (14:57 +0900)]
[one-cmds] fix setuptools version for one-prepare-venv (#4045)

This will fix recent setuptools package problem for one-prepare-venv

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[cmn-arts] fix setuptools version (#4044)
SaeHie Park [Tue, 1 Sep 2020 03:55:50 +0000 (12:55 +0900)]
[cmn-arts] fix setuptools version (#4044)

This will fix recent setuptools package problem

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Add ITensorRegistry to BackendContext (#4025)
Hanjoung Lee [Mon, 31 Aug 2020 08:23:03 +0000 (17:23 +0900)]
[onert] Add ITensorRegistry to BackendContext (#4025)

Add `ITensorRegistry` to `BackendContext` as it is now completely
separated object from `ITensorBuilder`.

`ITensorBuilder::tensorRegistry()` is removed.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert/test] Fix backend mapping in nnpackage_run (#4027)
Hyeongseok Oh [Mon, 31 Aug 2020 01:01:51 +0000 (10:01 +0900)]
[onert/test] Fix backend mapping in nnpackage_run (#4027)

- Remove backend mapping for each operation using deprecated nnfw API
- Update default backend: cpu

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[luci] Notice comment for bias arg of circle.TransposeConv (#4022)
Cheongyo Bahk [Sun, 30 Aug 2020 21:31:31 +0000 (06:31 +0900)]
[luci] Notice comment for bias arg of circle.TransposeConv (#4022)

This commit adds notice comment for the `bias()` argument of
`circle.TransposeConv`.

ONE-DCO-1.0-Signed-off-by: Cheongyo Bahk <cg.bahk@gmail.com>

4 years ago[luci-interpreter] Add support for rsqrt op (#3992)
Alexander Moiseev [Sun, 30 Aug 2020 21:28:31 +0000 (00:28 +0300)]
[luci-interpreter] Add support for rsqrt op (#3992)

Add support for rsqrt element-wise op in luci-interpreter.

ONE-DCO-1.0-Signed-off-by: Alexander Moiseev <a.moiseev@samsung.com>

4 years ago[luci] Clear quantparam before fake quantization (#3996)
Hyukjin Jeong [Sun, 30 Aug 2020 21:27:36 +0000 (06:27 +0900)]
[luci] Clear quantparam before fake quantization (#3996)

* [luci] Clear quantparam before fake quantization

This clears quantparam before doing fake quantization

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <hj1.jeong@samsung.com>

* Setting nullptr

4 years ago[onert/cpu] Implement Rank cpu backend (#4012)
Hyeongseok Oh [Fri, 28 Aug 2020 07:28:42 +0000 (16:28 +0900)]
[onert/cpu] Implement Rank cpu backend (#4012)

Support Rank on cpu backend

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert] Do not use TensorBuilder in Executors (#4023)
Hanjoung Lee [Fri, 28 Aug 2020 05:39:07 +0000 (14:39 +0900)]
[onert] Do not use TensorBuilder in Executors (#4023)

Do not use TensorBuilder in Executors as what executors need are just
TensorRegistries and TensorManagers.

% This is part of refactoring(distinguishing TensorBuilder and
TensorRegistry).

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Use CachedData instead of MMapedData (#4007)
JiHwan Yeo [Fri, 28 Aug 2020 04:19:24 +0000 (13:19 +0900)]
[onert] Use CachedData instead of MMapedData (#4007)

- MMapedData reduces load/prepare time, but increases inference time
- Use CachedData for weight tensor for inference performance
  - Includes Revert "[onert] Remove unused function for munmap (#3710)"

ONE-DCO-1.0-Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>

4 years ago[onert/acl-cl] Support ResizeNearestNeighbor operation (#4014)
Hyeongseok Oh [Fri, 28 Aug 2020 04:11:48 +0000 (13:11 +0900)]
[onert/acl-cl] Support ResizeNearestNeighbor operation (#4014)

Support acl-cl backend ResizeNearestNeighbor operation

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert] Fix log generation fail for LeakyRelu (#4020)
Hyeongseok Oh [Fri, 28 Aug 2020 02:56:56 +0000 (11:56 +0900)]
[onert] Fix log generation fail for LeakyRelu (#4020)

Fix ElementwiseActivation node name print for LeakyRelu

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert] CF KernelGen use IDynamicTensorManager (#4017)
Hanjoung Lee [Fri, 28 Aug 2020 01:57:48 +0000 (10:57 +0900)]
[onert] CF KernelGen use IDynamicTensorManager (#4017)

Make controlfow KernelGen use `IDynamicTensorManager` rather than
`TensorBuilder`, as Dynamic Tensor Manager is what it really needs.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Remove unused stuff in CF KernelGen (#4015)
Hanjoung Lee [Thu, 27 Aug 2020 11:21:07 +0000 (20:21 +0900)]
[onert] Remove unused stuff in CF KernelGen (#4015)

Remove unused private method `getTensorBuilder` of controlflow
KernelGenerator. All uses are also do not do anything.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[nnpkgrun] Do not always init MemoryPoller (#3999)
Hanjoung Lee [Thu, 27 Aug 2020 07:13:38 +0000 (16:13 +0900)]
[nnpkgrun] Do not always init MemoryPoller (#3999)

Initialize only when memory polling is on.

On macOS, it crashes since MemoryPoller initialization fails, even
when the user does not set memory polling on.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Renaming IODescriotion::input_shape_signature to dynamic_input_shapes (#4010)
Hyun Sik Yoon [Thu, 27 Aug 2020 07:12:59 +0000 (16:12 +0900)]
[onert] Renaming IODescriotion::input_shape_signature to dynamic_input_shapes (#4010)

This renames member var name for better readability
- from IODescription::input_shape_signature
- to IODescription::dynamic_input_shapes

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon.1024@gmail.com>
4 years ago[onert] Make feature::View reuses feature::Reader (#3987)
Jang Jiseob [Thu, 27 Aug 2020 07:11:44 +0000 (16:11 +0900)]
[onert] Make feature::View reuses feature::Reader (#3987)

This commit makes feature::View reuses feature::Reader.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert] Merge acl's ConstantInitializer into AclConstantInitializer (#3949)
Jang Jiseob [Thu, 27 Aug 2020 06:21:15 +0000 (15:21 +0900)]
[onert] Merge acl's ConstantInitializer into AclConstantInitializer (#3949)

This commit merges acl's ConstantInitializer into AclConstantInitializer for reducing duplicated codes.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert/cpu] Optimized cpu backend kernel for quantized arithmetic operation (#4009)
Hyeongseok Oh [Thu, 27 Aug 2020 05:50:12 +0000 (14:50 +0900)]
[onert/cpu] Optimized cpu backend kernel for quantized arithmetic operation (#4009)

- Optimize qasymm8 add operation cpu backend kernel
  - Share with sub operation
- Optimize qasymm8 mul operation cpu backend kernel

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[acl-ex] Check reduce axis set size before use (#4003)
Hyeongseok Oh [Thu, 27 Aug 2020 04:04:19 +0000 (13:04 +0900)]
[acl-ex] Check reduce axis set size before use (#4003)

Check reduced axis set has at least one element

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[one-cmds] Revise one-import-tf (#3978)
seongwoo chae [Thu, 27 Aug 2020 01:00:07 +0000 (10:00 +0900)]
[one-cmds] Revise one-import-tf (#3978)

* [one-cmds] Revise one-import-tf

This commit revises one-import-tf.

- `--input_shapes` and `--v2` becomes exclusive
- `--input_shapes` becomes optional

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

* if --v2 and --input_shapes are given at the same time, a warning message is printed instead of an error

4 years ago[circle2circle-dredd-recipe-test] Add Net_TConv_BN_000 test (#3980)
seongwoo chae [Thu, 27 Aug 2020 00:59:46 +0000 (09:59 +0900)]
[circle2circle-dredd-recipe-test] Add Net_TConv_BN_000 test (#3980)

This commit adds Net_TConv_BN_000 test to
circle2circle-dredd-recipe-test.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[tflchef] Use souschef Dims (#4001)
SaeHie Park [Thu, 27 Aug 2020 00:57:37 +0000 (09:57 +0900)]
[tflchef] Use souschef Dims (#4001)

This will revise tflchef ModelChef to use souschef Dims to reduce duplicate codes

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[circlechef] Use souschef Dims (#4000)
SaeHie Park [Thu, 27 Aug 2020 00:57:02 +0000 (09:57 +0900)]
[circlechef] Use souschef Dims (#4000)

This will revise circlechef ModelChef to use souschef Dims to reduce duplicate codes

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Change Permutation Elimination condition (#3991)
Hanjoung Lee [Thu, 27 Aug 2020 00:45:25 +0000 (09:45 +0900)]
[onert] Change Permutation Elimination condition (#3991)

Change the condition of Permutation Elimination to be more general.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Do nothing when 'passed shape == model shape' while setting input shape ...
Hyun Sik Yoon [Thu, 27 Aug 2020 00:45:02 +0000 (09:45 +0900)]
[onert] Do nothing when 'passed shape == model shape' while setting input shape (#3998)

This makes nnfw_set_input_tensorinfo() do nothing when 'passed shape == model shape'.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon.1024@gmail.com>
4 years ago[onert/nnapi] Handle param initialize warning (#3997)
Hyeongseok Oh [Thu, 27 Aug 2020 00:42:29 +0000 (09:42 +0900)]
[onert/nnapi] Handle param initialize warning (#3997)

- Throw exception when CONV2D input count is unsupported
- Initialize ARGMAX output type param: always INT32 type by NNAPI specification

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert/test] Merge test model config directory (#3943)
Hyeongseok Oh [Wed, 26 Aug 2020 08:37:32 +0000 (17:37 +0900)]
[onert/test] Merge test model config directory (#3943)

- Remove unused nnpackage install script for nnfw_api_gtest
- Move nnfw_api_gtest model config into tests/scripts/models
- Rename model config for tflite file

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert] Refine DynamicTensorManager impl (#3990)
Hanjoung Lee [Wed, 26 Aug 2020 06:24:04 +0000 (15:24 +0900)]
[onert] Refine DynamicTensorManager impl (#3990)

- Refine `planDealloc` to be one-liner
- Remove comments that are no longer valid

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Remove `ITensorBuilder::setMigrantTensor` (#3986)
Hanjoung Lee [Wed, 26 Aug 2020 06:23:49 +0000 (15:23 +0900)]
[onert] Remove `ITensorBuilder::setMigrantTensor` (#3986)

Replace TensorBuilder with TensorRegistry in ExecutorFactory.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert/test] Random uint8 input value generation for tflite_run (#3982)
Hyeongseok Oh [Wed, 26 Aug 2020 03:54:22 +0000 (12:54 +0900)]
[onert/test] Random uint8 input value generation for tflite_run (#3982)

tflite_run set random value for uint8 input tensor

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[souschef] Introduce Dims (#3995)
SaeHie Park [Wed, 26 Aug 2020 03:53:30 +0000 (12:53 +0900)]
[souschef] Introduce Dims (#3995)

This will introduce Dims related helpers, common of circlechef and tflchef

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[souschef] common as_vector as_dataset (#3994)
SaeHie Park [Wed, 26 Aug 2020 03:52:58 +0000 (12:52 +0900)]
[souschef] common as_vector as_dataset (#3994)

This will introduce common as_vector as_dataset methods from circlechef and tflchef

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Support acl backend LeakyRelu (#3974)
Hyeongseok Oh [Wed, 26 Aug 2020 03:43:27 +0000 (12:43 +0900)]
[onert] Support acl backend LeakyRelu (#3974)

- Update ElementwiseActivation IR: type
- Model loader
- acl common backend

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[release_tool] move onert_version.sh into release_tool (#3962)
Sanggyu Lee [Wed, 26 Aug 2020 03:18:55 +0000 (12:18 +0900)]
[release_tool] move onert_version.sh into release_tool (#3962)

onert_version/onert_version.sh is moved under release_tool.

ONE-DCO-1.0-Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>

4 years ago[tflitefile_tool] Support leaky_relu in select_operator.py (#3983)
Hyeongseok Oh [Wed, 26 Aug 2020 03:18:06 +0000 (12:18 +0900)]
[tflitefile_tool] Support leaky_relu in select_operator.py (#3983)

select_operator.py can handle LeakyReluOption for leaky_relu operation

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[luci] Use context for Exporter (#3993)
SaeHie Park [Wed, 26 Aug 2020 01:34:11 +0000 (10:34 +0900)]
[luci] Use context for Exporter (#3993)

This will revise luci exporter class to use Context class instead of individual members

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Enable tflite_run on tizen build (#3969)
Hyeongseok Oh [Wed, 26 Aug 2020 01:25:54 +0000 (10:25 +0900)]
[onert] Enable tflite_run on tizen build (#3969)

Enable to build tflite_run on tizen test package

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert] Replace AclCLFunction with AclFunction (#3988)
Jang Jiseob [Wed, 26 Aug 2020 01:07:56 +0000 (10:07 +0900)]
[onert] Replace AclCLFunction with AclFunction (#3988)

This commit replaces AclCLFunction with AclFunction.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert] Remove unused object in DynamicShapeInferer (#3989)
Hanjoung Lee [Tue, 25 Aug 2020 12:01:19 +0000 (21:01 +0900)]
[onert] Remove unused object in DynamicShapeInferer (#3989)

Remove unused object `_dynamic_tensor_manager` since now we use
individual `ITensor`'s dynamic tensor manager object.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[luci-interpreter] Add bias attribute to TransposeConv (#3985)
seongwoo chae [Tue, 25 Aug 2020 09:36:56 +0000 (18:36 +0900)]
[luci-interpreter] Add bias attribute to TransposeConv (#3985)

This commit adds bias attribute to TransposeConv.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[nnfwapi] Introduce NNFW_STATUS_INSUFFICIENT_OUTPUT_SIZE (#3977)
Hanjoung Lee [Tue, 25 Aug 2020 09:36:07 +0000 (18:36 +0900)]
[nnfwapi] Introduce NNFW_STATUS_INSUFFICIENT_OUTPUT_SIZE (#3977)

Introduce NNFW_STATUS_INSUFFICIENT_OUTPUT_SIZE to give users
a better error code.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Reduce lines of OperationDumper (#3984)
Jang Jiseob [Tue, 25 Aug 2020 09:35:32 +0000 (18:35 +0900)]
[onert] Reduce lines of OperationDumper (#3984)

This commit reduces lines of OperationDumper.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[luci-interpreter]Negative Tests for Conv2D kernel (#3828)
struss [Tue, 25 Aug 2020 09:12:21 +0000 (18:12 +0900)]
[luci-interpreter]Negative Tests for Conv2D kernel (#3828)

This commit add negative tests on `Conv2D` kernel on luci-interpreter.

ONE-DCO-1.0-Signed-off-by: KiDeuk Bang <rrstrous@nate.com>

4 years ago[onert] Move LoweredGraph to compiler (#3981)
Hanjoung Lee [Tue, 25 Aug 2020 08:29:23 +0000 (17:29 +0900)]
[onert] Move LoweredGraph to compiler (#3981)

Move LoweredGraph to compiler as it contains backend dependent parts.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[circle2circle] Add FuseBatchNormWithTConv option (#3979)
seongwoo chae [Tue, 25 Aug 2020 07:47:34 +0000 (16:47 +0900)]
[circle2circle] Add FuseBatchNormWithTConv option (#3979)

This commit adds FuseBatchNormWithTConv option to circle2circle.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[tflchef] Use TensorFiller for TFliteImport (#3976)
SaeHie Park [Tue, 25 Aug 2020 07:19:23 +0000 (16:19 +0900)]
[tflchef] Use TensorFiller for TFliteImport (#3976)

This will revise TFliteImport to inherit TensorFiller to reduce duplicate codes

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[circlechef] Use TensorFiller for CircleImport (#3975)
SaeHie Park [Tue, 25 Aug 2020 07:19:06 +0000 (16:19 +0900)]
[circlechef] Use TensorFiller for CircleImport (#3975)

This will revise CircleImport to inherit TensorFiller to reduce duplicate codes

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert/test] Skip running test on tizen_xu4_test.sh script (#3972)
Hyeongseok Oh [Tue, 25 Aug 2020 06:53:15 +0000 (15:53 +0900)]
[onert/test] Skip running test on tizen_xu4_test.sh script (#3972)

Add option "--skip-test" to skip test and install package and/or model.

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[luci] Introduce FuseBatchNormWithTConv pass (#3971)
seongwoo chae [Tue, 25 Aug 2020 06:28:12 +0000 (15:28 +0900)]
[luci] Introduce FuseBatchNormWithTConv pass (#3971)

This commit introduces FuseBatchNormWithTConv pass to luci.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[souschef] Introduce TensorFiller (#3970)
SaeHie Park [Tue, 25 Aug 2020 06:07:03 +0000 (15:07 +0900)]
[souschef] Introduce TensorFiller (#3970)

This will introduce TensorFiller for common of circlechef and tflchef

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Move graph passes to compiler (#3968)
Hanjoung Lee [Tue, 25 Aug 2020 05:50:43 +0000 (14:50 +0900)]
[onert] Move graph passes to compiler (#3968)

Move graph pass classes to `compiler` from `ir` as those are more of
compiler side work.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Make nnpackage_run read shape info from h5 file (#3965)
Hyun Sik Yoon [Tue, 25 Aug 2020 05:44:12 +0000 (14:44 +0900)]
[onert] Make nnpackage_run read shape info from h5 file (#3965)

When calling nnpackage_run with --load <input_h5_file> option,
this PR enables nnpackage_run to read shape info from <input_h5_file>.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon.1024@gmail.com>
4 years ago[tests] exclude TransposeConv test from nnpkg test of acl_cl, acl_neon (#3967)
seongwoo chae [Tue, 25 Aug 2020 05:41:24 +0000 (14:41 +0900)]
[tests] exclude TransposeConv test from nnpkg test of acl_cl, acl_neon (#3967)

This commit excludes TransposeConv test from nnpkg test of ac_cl,
acl_neon.

Since runtime doesn't support optional input, it will be excluded until
runtime support it.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[nnfwapi] Aggregate TestBackends into test context (#3966)
Hanjoung Lee [Tue, 25 Aug 2020 05:34:54 +0000 (14:34 +0900)]
[nnfwapi] Aggregate TestBackends into test context (#3966)

- Rename `GenModelTestData` to `GenModelTestContext`
- Let `GenModelTestContext` have the backend list

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[circle-quantizer] Force exclusive use of options (#3964)
Hyukjin Jeong [Tue, 25 Aug 2020 04:57:08 +0000 (13:57 +0900)]
[circle-quantizer] Force exclusive use of options (#3964)

This forces exclusive use of options

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <hj1.jeong@samsung.com>

4 years ago[onert] Remove duplicated codes from Reader/View for shape::feature (#3952)
Jang Jiseob [Tue, 25 Aug 2020 04:46:04 +0000 (13:46 +0900)]
[onert] Remove duplicated codes from Reader/View for shape::feature (#3952)

This commit removes duplicated codes from Reader/View for shape::feature.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert] Make acl's KernelGenerators use generateLayer (#3948)
Jang Jiseob [Tue, 25 Aug 2020 04:44:50 +0000 (13:44 +0900)]
[onert] Make acl's KernelGenerators use generateLayer (#3948)

This commit makes acl's KernelGenerators use generateLayer for reducing duplicated codes.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert] Set dyn_tensor_manager for static tensors (#3951)
Hanjoung Lee [Tue, 25 Aug 2020 03:45:33 +0000 (12:45 +0900)]
[onert] Set dyn_tensor_manager for static tensors (#3951)

Set `dynamic_tensor_manager` for static tensors in controlflow backend.
This is needed as any static tensors could turn into dynamic.

% Same approach has been applied for cpu backend, but not for controflow
yet.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[luci] Extract export_node to reduce class LOC 2 (#3960)
SaeHie Park [Tue, 25 Aug 2020 02:16:11 +0000 (11:16 +0900)]
[luci] Extract export_node to reduce class LOC 2 (#3960)

This will revise OperationExporter with extracting class methods to functions to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[nnfwapi] Simple WHILE test (#3953)
Hanjoung Lee [Tue, 25 Aug 2020 02:01:08 +0000 (11:01 +0900)]
[nnfwapi] Simple WHILE test (#3953)

Add simple WHILE tests. As WHILE alone cannot make a meaningful test,
Add and Less operator are also used.

Introduce multi-subgraph support for `CircleGen`.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[TensorFlowLiteRecipes] Add test.rule to Net_TConv_BN_000 (#3959)
seongwoo chae [Tue, 25 Aug 2020 01:56:19 +0000 (10:56 +0900)]
[TensorFlowLiteRecipes] Add test.rule to Net_TConv_BN_000 (#3959)

This commit adds test.rule to Net_TConv_BN_000.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[luci] Add bias attribute to CircleTrasnposeConv IR (#3958)
seongwoo chae [Tue, 25 Aug 2020 01:56:07 +0000 (10:56 +0900)]
[luci] Add bias attribute to CircleTrasnposeConv IR (#3958)

This commit adds bias attribute to CircleTransposeConv IR.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[luci] Extract export_node to reduce class LOC 1 (#3957)
SaeHie Park [Tue, 25 Aug 2020 01:14:56 +0000 (10:14 +0900)]
[luci] Extract export_node to reduce class LOC 1 (#3957)

This will revise OperationExporter with extracting class methods to functions to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[tflite2circle] Support SparsityParameters (#3947)
seongwoo chae [Tue, 25 Aug 2020 00:28:47 +0000 (09:28 +0900)]
[tflite2circle] Support SparsityParameters (#3947)

This commit enables tflite2circle to support SparsityParameters.

ONE-DCO-1.0-Signed-off-by: seongwoo mhs4670go@naver.com

4 years ago[circle-quantizer] Support requantization from int8 to uint8 (#3950)
Hyukjin Jeong [Tue, 25 Aug 2020 00:28:21 +0000 (09:28 +0900)]
[circle-quantizer] Support requantization from int8 to uint8 (#3950)

This supports requantization from int8 to uint8

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <hj1.jeong@samsung.com>

4 years ago[luci] Shape inf common for Pad (#3955)
SaeHie Park [Tue, 25 Aug 2020 00:23:34 +0000 (09:23 +0900)]
[luci] Shape inf common for Pad (#3955)

This will provide common methods for MirrorPad, Pad and PadV2 nodes to reduce duplicate codes

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci] Extract export class methods to functions (#3954)
SaeHie Park [Tue, 25 Aug 2020 00:23:13 +0000 (09:23 +0900)]
[luci] Extract export class methods to functions (#3954)

This will extract export class methods to functions to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci-interpreter] Add assert condition of CircleTransposeConv (#3940)
seongwoo chae [Mon, 24 Aug 2020 21:16:32 +0000 (06:16 +0900)]
[luci-interpreter] Add assert condition of CircleTransposeConv (#3940)

This commit adds assert condition of CircleTransposeConv.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[luci-interpreter] Add support for sqrt op (#3904)
Alexander Moiseev [Mon, 24 Aug 2020 12:42:59 +0000 (15:42 +0300)]
[luci-interpreter] Add support for sqrt op (#3904)

Add support for sqrt element-wise op in luci-interpreter.

ONE-DCO-1.0-Signed-off-by: Alexander Moiseev <a.moiseev@samsung.com>

4 years ago[onert/test] Operation backend test on one_op_tests (#3939)
Hyeongseok Oh [Mon, 24 Aug 2020 11:30:05 +0000 (20:30 +0900)]
[onert/test] Operation backend test on one_op_tests (#3939)

- Introduce backend setting method in GenModelTest
- Backend test on one_op_tests

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[onert] Unify element-wise unary operations to ElementwiseUnary. (#3933)
Jang Jiseob [Mon, 24 Aug 2020 07:49:21 +0000 (16:49 +0900)]
[onert] Unify element-wise unary operations to ElementwiseUnary. (#3933)

This commit unifies element-wise activation operations to ElementwiseActivation for reducing code duplication.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert] Copyright fix (#3945)
Hyeongseok Oh [Mon, 24 Aug 2020 07:38:44 +0000 (16:38 +0900)]
[onert] Copyright fix (#3945)

- Add copyright to auto generated files
- Fix copyright checker to ignore NNAPI file
- Fix copyright checker to allow (year-year)
- Add copyright to ported code with small fix

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[tools] Introduce github release tool (#3900)
seongwoo chae [Mon, 24 Aug 2020 07:37:45 +0000 (16:37 +0900)]
[tools] Introduce github release tool (#3900)

This commit introduces github release tool that helps you to automate the release.

ONE-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>

4 years ago[luci] SummaryBuilder reduce LOC 2 (#3946)
SaeHie Park [Mon, 24 Aug 2020 07:32:43 +0000 (16:32 +0900)]
[luci] SummaryBuilder reduce LOC 2 (#3946)

This will relocate implementation of summary builder to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci] Shape inf reduce LOC S- (#3944)
SaeHie Park [Mon, 24 Aug 2020 06:36:24 +0000 (15:36 +0900)]
[luci] Shape inf reduce LOC S- (#3944)

This will relocate implementation of shape inference to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci] SummaryBuilder reduce LOC 1 (#3942)
SaeHie Park [Mon, 24 Aug 2020 06:11:36 +0000 (15:11 +0900)]
[luci] SummaryBuilder reduce LOC 1 (#3942)

This will relocate implementation of summary builder to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci] Shape inf reduce LOC M-R (#3941)
SaeHie Park [Mon, 24 Aug 2020 06:06:27 +0000 (15:06 +0900)]
[luci] Shape inf reduce LOC M-R (#3941)

This will relocate implementation of shape inference to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Fix conv2d op for dilation (#3932)
YiHyunJin [Mon, 24 Aug 2020 06:04:33 +0000 (15:04 +0900)]
[onert] Fix conv2d op for dilation (#3932)

When using MultiThread, both dilation data must be 1.
When obtaining padding data, dilation data is used.
Move additional conditions of dilation into usableMultiThreaded

Signed-off-by: YiHyunjin <hj0412.yi@samsung.com>
4 years ago[nnapi] Unify comparison ops in OperationFactory (#3875)
Hanjoung Lee [Mon, 24 Aug 2020 05:58:32 +0000 (14:58 +0900)]
[nnapi] Unify comparison ops in OperationFactory (#3875)

Unify comparison ops in OperationFactory

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[luci] Shape inf reduce for virtual outputs (#3938)
SaeHie Park [Mon, 24 Aug 2020 04:48:30 +0000 (13:48 +0900)]
[luci] Shape inf reduce for virtual outputs (#3938)

This will relocate implementation of shape inference to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert] Unify element-wise activation operations to ElementwiseActivation for reducin...
Jang Jiseob [Mon, 24 Aug 2020 04:37:46 +0000 (13:37 +0900)]
[onert] Unify element-wise activation operations to ElementwiseActivation for reducing code duplication (#3901)

This commit unifies element-wise activation operations to ElementwiseActivation for reducing code duplication.

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[tflitefile_tool] select_operator supports Select op (#3915)
Sanggyu Lee [Mon, 24 Aug 2020 02:44:15 +0000 (11:44 +0900)]
[tflitefile_tool] select_operator supports Select op (#3915)

select_operator will support Select op.

ONE-DCO-1.0-Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>

4 years ago[onert] Remove ITensorBuilder::supportDynamicTensor (#3929)
Hanjoung Lee [Mon, 24 Aug 2020 02:40:52 +0000 (11:40 +0900)]
[onert] Remove ITensorBuilder::supportDynamicTensor (#3929)

Remove `ITensorBuilder::supportDynamicTensor`.
This is as adding dynamic alloc info for all has no harm, and eventually
adding dynamic alloc info will be removed.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[onert] Move the time of choosing kernel to configure (#3924)
Jang Jiseob [Mon, 24 Aug 2020 02:27:55 +0000 (11:27 +0900)]
[onert] Move the time of choosing kernel to configure (#3924)

This commit moves the time of choosing kernel to configure in some cpu layers
  - cpu layers : BinaryArithmeticLayer, ElementwiseBinaryLayer, PoolLayer, ReduceLayer

Signed-off-by: ragmani <ragmani0216@gmail.com>
4 years ago[onert] Copy and package armcompute only in overlay (#3885)
Hyeongseok Oh [Mon, 24 Aug 2020 02:26:09 +0000 (11:26 +0900)]
[onert] Copy and package armcompute only  in overlay (#3885)

Copy to installed path and pacakge arm compute library only from overlay (ignore boost build)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[luci] Shape inf reduce LOC D-M (#3937)
SaeHie Park [Mon, 24 Aug 2020 01:56:19 +0000 (10:56 +0900)]
[luci] Shape inf reduce LOC D-M (#3937)

This will relocate implementation of shape inference to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[onert/test] Update nnpackage test list (#3928)
Hyeongseok Oh [Mon, 24 Aug 2020 01:55:42 +0000 (10:55 +0900)]
[onert/test] Update nnpackage test list (#3928)

Update nnpackage test list file

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
4 years ago[nnfwapi] Improve GenTest (#3931)
Hanjoung Lee [Mon, 24 Aug 2020 01:52:02 +0000 (10:52 +0900)]
[nnfwapi] Improve GenTest (#3931)

- Aggregate variables into `_test_data` that test makers must generate
- Support multiple test cases

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>

4 years ago[luci] Relocate shape inf common functions (#3936)
SaeHie Park [Mon, 24 Aug 2020 01:15:50 +0000 (10:15 +0900)]
[luci] Relocate shape inf common functions (#3936)

This will relocate shape inference common functions to upper side of the file

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci] Import validate helpers to reduce dup codes (#3920)
SaeHie Park [Mon, 24 Aug 2020 01:06:37 +0000 (10:06 +0900)]
[luci] Import validate helpers to reduce dup codes (#3920)

This will introduce ValidateHelpers to reduce duplicate codes

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[luci] Shape inf reduce LOC A-B (#3935)
SaeHie Park [Mon, 24 Aug 2020 00:35:30 +0000 (09:35 +0900)]
[luci] Shape inf reduce LOC A-B (#3935)

This will relocate implementation of shape inference to reduce class LOC

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>

4 years ago[circledump] No opt comment for NonMaxSupressionV5 (#3796)
Alexander Moiseev [Sun, 23 Aug 2020 21:21:22 +0000 (00:21 +0300)]
[circledump] No opt comment for NonMaxSupressionV5 (#3796)

Add comment about no option in NonMaxSuppressionV5.

ONE-DCO-1.0-Signed-off-by: Alexander Moiseev <a.moiseev@samsung.com>

4 years ago[luci/tests] Add Unique operation (#3919)
dr-venkman [Fri, 21 Aug 2020 13:44:41 +0000 (22:44 +0900)]
[luci/tests]  Add Unique operation (#3919)

Parent Issue : #2568
Draft PR : #2829

This commit will add unique operation to luci tests

ONE-DCO-1.0-Signed-off-by: venkat.iyer <venkat.iyer@samsung.com>

4 years ago[tflitefile_tool] support dilation in select_operator.py (#3923)
Sanggyu Lee [Fri, 21 Aug 2020 11:03:42 +0000 (20:03 +0900)]
[tflitefile_tool] support dilation in select_operator.py (#3923)

Currently select_operator ignores dilation factors.
Now, it will handle them.

ONE-DCO-1.0-Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>

4 years ago[onert/test] Split GenModelTests.cc (#3911)
Hyeongseok Oh [Fri, 21 Aug 2020 07:29:40 +0000 (16:29 +0900)]
[onert/test] Split GenModelTests.cc (#3911)

* [onert/test] Split GenModelTests.cc

- Header file for GenModelTest class
- Divide test for each operation

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Rename directory and header

OneOp test directory: one_op_tests
Header file name: GenModelTest.h

4 years ago[onert] Remove DynamicTensorMan from DynAllocInfo (#3903)
Hanjoung Lee [Fri, 21 Aug 2020 07:07:34 +0000 (16:07 +0900)]
[onert] Remove DynamicTensorMan from DynAllocInfo (#3903)

Now that there is this method `ITensor::dynamic_tensor_manager`, no need
to have `DynamicTensorManager` in `DynAllocInfo`.

% Eventually `DynAllocInfo` will be removed.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>