오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 5 Jun 2018 01:25:33 +0000 (10:25 +0900)]
Remove unused files to support custom operator (#1557)
Remove unused files in tools/tflite_run to support custom operator
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Jun 2018 00:57:39 +0000 (09:57 +0900)]
Add int32 initialization to tflite_run (#1550)
This commit adds int32 initialization to tflite_run.
-With gather operation, index should be within input coverage.
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 5 Jun 2018 00:26:53 +0000 (09:26 +0900)]
[Gather Op-PureACL] add gather operation to pure acl runtime (#1541)
This commits adds gather operation to pure acl runtime.
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 4 Jun 2018 23:22:54 +0000 (08:22 +0900)]
Remove assertion to check data type (#1553)
This commit removes assertion to checkout datatype because it is no longer needed.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 4 Jun 2018 23:22:03 +0000 (08:22 +0900)]
Add type info of operands to Model in pure (#1551)
This commit adds type info of operands to Model in pure.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 23:19:05 +0000 (08:19 +0900)]
Add a TopK_V2 unit test (#1548)
For issue #1367
This patch adds a unit test for TOPK_V2.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 23:18:32 +0000 (08:18 +0900)]
nnfw_support_tflite as static (#1544)
This commit marks nnfw_support_tflite explicitly as static library
target to make it easy to use this library for android applications.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 09:31:53 +0000 (18:31 +0900)]
[PureCL] Support TopK_V2 for vector input (#1545)
For issue #1367
This patch fills the ACL configuration part in the Pure CL runtime for
TopK_V2 operation. It also revises the order of parameters in the
TopKV2 implementation, so the parameter order matches the argument order
of ACL's configure routine.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 08:42:53 +0000 (17:42 +0900)]
Run framework/verification test from file list (#1537)
* Run framework/verification test from file list
1. Add --frameworktest_list_file option to test_driver.sh
2. Add pureacl_frameworktest_list.txt which contains models for pureacl runtime
test.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 08:37:08 +0000 (17:37 +0900)]
Set parameter for reduce max in pure cl (#1542)
Set parameter for reduce max in pure cl compilation step
It can handle special case only: maxtrix input, vector output, one constant axis
Comment out calling arm cl API call: not implemented yet
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Jun 2018 08:28:35 +0000 (17:28 +0900)]
Implement Sub in PureACL runtime (#1540)
Related issue: #1338, #1379
Support sub in pure acl.
It is implementation in pure acl runtime.
nnapi_unittests Sub for same shape works.
But for broadcasting, I need further work in ACL kernel.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 08:08:21 +0000 (17:08 +0900)]
Use custom operator kernel in support (#1536)
tflite_run and nnapi_test use upport/tflite/kernel/CustomOps.h
to support custom operator in tflite interpreter
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Jun 2018 07:40:37 +0000 (16:40 +0900)]
Add nnapi_unittests for Sub (#1534)
Related issue: #1379, #1338
To verify Sub on pure ACL runtime, Sub nnapi_unittests are added.
sub_1 is for same shape input. sub_2 for broadcasting.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 06:38:58 +0000 (15:38 +0900)]
Update the ACL submodule to the latest. (#1532)
This patch updates the hash of ACL submodule to the latest.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 06:36:02 +0000 (15:36 +0900)]
[android build] Fix typo and error in CMake (#1533)
This commit fixes typo and errors in Tensorflow Lite build support.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 06:00:56 +0000 (15:00 +0900)]
Add ndk default path in gitignore list (#1538)
Ignore ndk default path generated by build_android_rootfs.sh
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 4 Jun 2018 05:30:57 +0000 (14:30 +0900)]
Move `include <cassert>` from support.h to support.cpp (#1531)
This commit moves `include <cassert>` from support.h to support.cpp.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 04:20:56 +0000 (13:20 +0900)]
Pure CL: Tensorinfo for other type (#1530)
Now TensorInfo can use F32 type only
Define more asTensorInfo to use other type
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
최형규/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 03:37:12 +0000 (12:37 +0900)]
Implement STRIDED_SLICE in PureACL (#1523)
* Implement STRIDED_SLICE in PureACL
- Introduce ANEURALNETWORKS_STRIDED_SLICE_EX to addOperationEx
- Implement visitor of STRIDED_SLICE in PureACL with incomplete parameter
- Fix bug in assert condition
- Fix typo in variable name
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
* Fix format
- Fix format
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 4 Jun 2018 03:32:48 +0000 (12:32 +0900)]
Enable other types to use class Reader (#1516)
This commit other types to use class Reader.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 4 Jun 2018 02:47:33 +0000 (11:47 +0900)]
Enable other types for class View (#1520)
This commit enables other types for class View.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 02:45:54 +0000 (11:45 +0900)]
Enable TopK_V2 framework test (#1529)
This patch enables the TopK_V2 framework test, as the NN runtime with
CPU fallback now can correctly execute it.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 01:59:06 +0000 (10:59 +0900)]
Selective format check (#1519)
This commit allows users to disable CPP/Python format check via
CHECK_CPP/CHECK_PYTHON environment variables.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 01:58:30 +0000 (10:58 +0900)]
Introduce 'IndexEnumerator' (#1502)
This commit introduces 'tensor::IndexEnumerator' and uses it to simplify
the implementation of 'tensor::IndexIterator'.
Unlike 'tensor::IndexIterator', 'tensor::IndexEnumerator' can be used in for loop
similarly as C++ standard iterator.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 01:51:01 +0000 (10:51 +0900)]
[Pure CL] Add setPreference and free (#1524)
* [Pure CL] Add setPreference and free
This commit implements ANeuralNetworksCompilation_setPreference and
ANeuralNetworksCompilation_free in pure CL runtime.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix format errors
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 01:06:25 +0000 (10:06 +0900)]
[PureCL] Accept TopK_V2 (#1528)
For issue #1367
This patch adds boilerplate code to accept TopK_V2 operation in the Pure
CL runtime. After this commit, a remaining piece to support TopK_V2 in
the Pure CL runtime will be the configuration step for ACL.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 4 Jun 2018 00:50:46 +0000 (09:50 +0900)]
BUILD_PURE_ARM_COMPUTE=ON for armv7l non-tizen (#1521)
To check pureacl runtime's build break, make BUILD_PURE_ARM_COMPUTE=ON for
armv7l non-tizen.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Jun 2018 00:40:40 +0000 (09:40 +0900)]
Add compilation option for android arm64 (#1490)
This will add compilation option for android arm64 build
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 4 Jun 2018 00:14:45 +0000 (09:14 +0900)]
[ACL Patch] update gather operation for ACL OpenCL (#1492)
This commit introduce gather operation for ACL OpenCL as an early stage.
-naive version
-only tested for 2D input and 1D indexes
-TODO: performance tuning
Signed-off-by: lotieye.choi <lotieye.choi@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 10:57:31 +0000 (19:57 +0900)]
Implement custom op kernel in support/tflite (#1478)
* Implement custom op kernel in support/tflite
Implement custom op kernel in support/tflite
Copy from tflite_run and define nameapce
Namespace: nnfw::ops::custom::nnfw::<opname>
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Add ifdef in TensorFlowMax.h
Add ifdef in TensorFlowMax.h
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Change filename tensorflowmax.cpp
Change filename tensorflowmax.cpp => TensorFlowMax.cpp
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 1 Jun 2018 10:34:37 +0000 (19:34 +0900)]
Fix invalid typename in template class (#1517)
This commit fixes invalid typename in template class.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 08:28:09 +0000 (17:28 +0900)]
[nnapi_test] Support Int32 output compare (#1518)
* [nnapi_test] Support Int32 output compare
This commit revises nnapi_test to support int32 output compare.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix format errors
최형규/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 08:11:19 +0000 (17:11 +0900)]
Introduce dummy STRIDED_SLICE kernel to pure_arm_compute (#1497)
- Introduce dummy STRIDED_SLICE kernel to pure_arm_compute
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 08:10:48 +0000 (17:10 +0900)]
Implement ANeuralNetworksModel_addOperationEx in sample runtimes (#1515)
This commit implements ANeuralNetworksModel_addOperationEx in sample
runtimes (logging, template).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 07:52:59 +0000 (16:52 +0900)]
Add Diff constructor (#1512)
This commit adds a constructor to 'nnfw::util::tensor::Diff' which
initializes expected/obtained fields, and simplifies Comparator
implementation using this new constructor.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 07:47:30 +0000 (16:47 +0900)]
make acl on pureacl arm cross build script (#1514)
BUILD_ACL does not support embeded kernel. To avoid cl_kernels installation on
test job, this commit disables BUILD_ACL and do `make acl` on arm cross build script.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 07:23:57 +0000 (16:23 +0900)]
Add custom tensorflowmax unittest (#1501)
Add unittest for custom tensorflowmax
2D (float, int32) input => 1D output
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 1 Jun 2018 06:32:52 +0000 (15:32 +0900)]
Fix build error std::function on pure acl runtime (#1505)
I include <functional> explicitly for std::function.
Related Issue: #1503
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 06:31:28 +0000 (15:31 +0900)]
Remove ARMCL_DIR setting from arm-ubunut pureacl build script (#1504)
This commit removes ARMCL_DIR from docker_build_cross_arm_pureacl.sh
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 06:29:18 +0000 (15:29 +0900)]
Define Max namespace in pure acl runtime (#1506)
Define Max namespace, node, param in pure acl runtime
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 06:14:34 +0000 (15:14 +0900)]
[nnapi_test] Support int32 input generation (#1498)
With this commit, nnapi_test is able to generate int32 input tensors.
Note that random generation is not supported, yet.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 06:13:39 +0000 (15:13 +0900)]
Show used NN runtime filepath (#1496)
This commit shows the filepath of NN runtime being used.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 06:05:46 +0000 (15:05 +0900)]
Set addOperationEx return value in pure acl runtime (#1507)
Set addOperationEx return value in pure acl runtime
To avoid conflict, commit small change.
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 05:51:04 +0000 (14:51 +0900)]
[NNAPI unittest] Add 'add_2' case (#1464)
* [NNAPI unittest] Add 'add_2' case
This commit adds 'add_2' unittest which takes RHS as an input, but LHS
is a constant.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix format errors
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 05:48:28 +0000 (14:48 +0900)]
Type-based tensor output compare (#1499)
This commit introduces type-based tensor output compare infrastructure
in TfLiteInterpMatchApp.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 1 Jun 2018 04:06:13 +0000 (13:06 +0900)]
[Gather OP] add nnapi delegate for Gather operation (#1465)
This commit adds nnapi delegate for Gather operation.
-axis parameter is added
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 03:27:11 +0000 (12:27 +0900)]
Add script to build pure_arm_compute runtime (#1484)
* Add script to build pure_arm_compute runtime
1. Add script to cross-build pure_arm_compute runtime for both arm-ubunut and tizen
To run test, please set LD_LIBRARY_PATH=Product/lib/pureacl instead of
Product/lib.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 03:17:53 +0000 (12:17 +0900)]
Flexible input generation switch for RandomTestRunner (#1495)
This commit revises RandomTestRunner to make it easy to extend supported
input type.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 02:56:01 +0000 (11:56 +0900)]
More tests for STRIDED_SLICE_EX (#1488)
Add more test for STRIDE_SLICE_EX
It's similar with STRIDE_SLICE (Fix argument)
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 02:35:13 +0000 (11:35 +0900)]
[support.tflite] Generic TensorView (#1494)
This commit revises TensorView class as a generic class.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 02:02:57 +0000 (11:02 +0900)]
Detect NNAPI load failure (#1489)
This commit revises NeuralNetworksShim.h and NeuralNetworksExShim.h to
abort execution when NNAPI functions are unavailable, but used.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 1 Jun 2018 01:18:30 +0000 (10:18 +0900)]
[Topkv2 OP] add nnapi delegate for Topk_v2 operation (#1463)
* [Topkv2 OP] add nnapi delegate for Topk_v2 operation
This commit add nnapi delegate for Topk_v2 operation.
-change output order (output_value is first and output_index is second)
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Topkv2 OP] add nnapi delegate for Topk_v2 operation
This commit add nnapi delegate for Topk_v2 operation.
-change output order (output_value is first and output_index is second)
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 01:05:30 +0000 (10:05 +0900)]
[tflite_benchmark] Show benchmark configurations (#1491)
This commit revises tflite_benchmark to show benchmark configurations
before running benchmark.
Currently, the following configurations will be shown:
- The number of threads to be used
- Whether NNAPI is used, or not
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 00:38:50 +0000 (09:38 +0900)]
[PureCL] Support DIV operation (#1482)
* [PureCL] Support DIV operation
For #1338 and #1366
This patch adds DIV operation to the pure ACL runtime.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 1 Jun 2018 00:18:18 +0000 (09:18 +0900)]
Update Android build scripts (#1487)
This commit revises 'build_android_rootfs.sh' to create ndk directory
for tensorflow lite buiild, and updates tensorflow lite CMakeLists.txt
to access this NDK during build.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 31 May 2018 11:49:14 +0000 (20:49 +0900)]
[tflite_run] Generate random input (#1477)
When running `tflite_run` without input argument it runs with values
with 0. This commit will fill the input tensors with random values
instead, same way with `nnapi_test` does.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 11:48:27 +0000 (20:48 +0900)]
Submodule update on internal_acl_build (#1483)
`make acl` does not work on fresh repo. This commit makes submodule update on
target internal_acl_build.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 31 May 2018 11:46:10 +0000 (20:46 +0900)]
[Gather Op] add axis to runtime_run_android_nn_test (#1479)
This commit adds axis to runtime_run_android_nn_test.
-axis parameter is added newly.
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 08:43:27 +0000 (17:43 +0900)]
[Pure CL] Introduce Const Tensor View (#1474)
This commit introduces ConstView class to make it easy to write generic
const operand updates.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
최형규/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 07:56:29 +0000 (16:56 +0900)]
Update comment for STRIDED_SLICE in NeuralNetworks.h (#1460)
- Update comment for STRIDED_SLICE in NeuralNetworks.h,
because operands of STRIDED_SLICE has been implemented by
following parameters defined in the latest Android NN API.
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 07:56:03 +0000 (16:56 +0900)]
[Pure CL] Fix typo (USE_CL_ARITHMETIC_ADDTION) (#1480)
This commit fixes type in environment variable name:
(USE_CL_ARITHMETIC_ADDTION -> USE_CL_ARITHMETIC_ADDITION)
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 07:49:03 +0000 (16:49 +0900)]
set ROOTFS_DIR on docker_build_cross_arm_ubuntu.sh (#1467)
To run docker_build_cross_arm_ubuntu, ROOTFS_DIR should be passed.
It takes 6min to complete build.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 31 May 2018 07:06:03 +0000 (16:06 +0900)]
[Android] Update rootfs build script (#1476)
- Install boost (header only)
- Install arm compute
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 31 May 2018 07:03:38 +0000 (16:03 +0900)]
[Android] Enable build for all runtimes (#1475)
Enable Android build for runtimes including pure_arm_compute
For link library, pthread should be parameterized.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 06:54:11 +0000 (15:54 +0900)]
Generic Tensor Comparator (#1462)
This commit revises TfLiteTensorComparator as generic tensor comparator,
and move it to nnfw_util.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 06:23:03 +0000 (15:23 +0900)]
[PureCL] Initialize CLTensors having const data (#1472)
For issue #1366
In the current implementation of Pure CL runtime, CLTensors, which have
const data in their corresponding NNAPI operand, are not initialized.
This patch fixes this issue by initializing them in PlanBuilder's
finalize method.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 06:22:47 +0000 (15:22 +0900)]
[tfliite_benchmark] Allow Thread configuration (#1473)
This commit revises tflite_benchmark to read thread configuration from
THREAD environment variable.
This commit also changes the default configuration as -1 to enable
multi-threading.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 06:21:59 +0000 (15:21 +0900)]
[Pure CL] Allow iteration over NNAPI operands (#1471)
This commit introduces iterate method which allows users to iterate over
registered NNAPI operands.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 31 May 2018 05:59:32 +0000 (14:59 +0900)]
[Gather Op] add other operation types (#1329)
* [Gather Op] add uint8 operation types
This commit adds other operation types.
-uint8
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Gather Op] add int32 operation types
This commit adds other operation types.
-int32
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Gather Op] add an comment that explains gather operation
This commit adds comments.
- Gather of NN Runtime supports TENSOR_FLOAT32, TENSOR_QUANT8_ASYMM, TENSOR_INT32 other than TFLite.(TFLite additionaly supports kTfLiteString.)
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 05:49:24 +0000 (14:49 +0900)]
[Pure CL] Skeleton for addOperationEx (#1468)
Prepare addOperationEx
It is to avoid merge conflict.
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 31 May 2018 05:26:22 +0000 (14:26 +0900)]
Code for generic tensor shape in acl/src/shape.cpp (#1404)
Parent issue: #1402
This code follows the explanation in https://arm-software.github.io/ComputeLibrary/latest/architecture.xhtml
```
Tensors are defined by a DataType plus a number of channels (Always expected to be 1 for now)
their dimensions are expressed as [width, height, feature_maps, batch].
In other words, the lower three dimensions of a tensor specify a single input in
[width, height, feature_maps], while any other specified dimension represents a batch
in the appropriate dimension space. For example, a tensor with dimensions [128, 128, 64, 16]
represents a 1D batch space with 16 batches of 128 elements in width and height
and 64 feature maps each.
```
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 04:50:54 +0000 (13:50 +0900)]
[Pure CL] Extract Various Source Implementations (#1452)
This commit extracts various source implementations from execution.cc.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 31 May 2018 04:20:47 +0000 (13:20 +0900)]
Extract RandomGenerator from RandomTestRunner (#1445)
In `nnfw_util` module, extract RandomGenerator from RandomTestRunner
so RandomGenerator can be used in `tflite_run` as well.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 02:43:37 +0000 (11:43 +0900)]
[Pure CL Runtime] Handle shape with rank one on setInput/Output (#1449)
This patch revises ANeuralNetworksExecution_setInput/Output to handle
the case of rank one.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 02:42:38 +0000 (11:42 +0900)]
Add a DIV broadcast unit test (#1459)
For issue #1366
This commit adds a test case where DIV broadcast operation is examined.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 31 May 2018 02:42:02 +0000 (11:42 +0900)]
Modify #ifndef macro of SimpleArithmeticAdditionLayer.h (#1458)
from
`#ifndef __SIMPLE_ARITHMETIC_LAYER_H__`
to
`#ifndef __SIMPLE_ARITHMETIC_ADDITION_LAYER_H__`
because we may need more arithmetic layers.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 02:41:36 +0000 (11:41 +0900)]
[NNAPI test] Introduce asserts on input types (#1457)
This commit introduces asserts on input types as float32 is the only
input type that nnapi_test supports currently.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
최형규/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 02:33:04 +0000 (11:33 +0900)]
Do not delegate temporary tensors to NNAPI. (#1359)
- also added delegation for MUL, and set the default scale to be 0.0f.
PiperOrigin-RevId:
195288948
This is a cherrypick of https://github.sec.samsung.net/RS7-STAR/Tensorflow/pull/41
with modification to (1) resolve conflict and (2) apply new format.
Therefore this is a modification of cherrypick of origitnal Tensorflow from
https://github.com/tensorflow/tensorflow/commit/
a16ba4fc0d3faec077c689f3f361264978a2d3cb#diff-
f4a5031c0f2ec4e55c3a89bf4c21c7f8
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 02:28:49 +0000 (11:28 +0900)]
CAST_EX nnapi_delegate (#1429)
1. Add add_cast_ex_params
2. Add nnapi call from nnapi_delagate.cpp
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 31 May 2018 01:24:49 +0000 (10:24 +0900)]
Build Android TFLite JNI shared library (#1442)
* Build Android TFLite JNI shared library
This will change cmake to drop Android JNI including Tensorflow Lite
- current drop will work same as vanilla TFLite library
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* apply comments
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 31 May 2018 01:24:25 +0000 (10:24 +0900)]
Fix linking error on arm compute library (#1456)
Recently introduced `ARMCompute` removed link to dl and pthread.
So it produces linking error like following:
```
arm-linux-gnueabihf/bin/ld:
warning: libdl.so.2, needed by
/home/brian/z/nnfw/Product/armv7l-linux.debug/out/lib/libarm_compute.so,
not found (try using -rpath or -rpath-link)
/home/brian/z/nnfw/Product/armv7l-linux.debug/out/lib/libarm_compute_core.so:
undefined reference to `dlopen@GLIBC_2.4'
/home/brian/z/nnfw/Product/armv7l-linux.debug/out/lib/libarm_compute_core.so:
undefined reference to `dlsym@GLIBC_2.4'
/home/brian/z/nnfw/Product/armv7l-linux.debug/out/lib/libarm_compute_core.so:
undefined reference to `dlerror@GLIBC_2.4'
collect2: error: ld returned 1 exit status
```
By specifying dl and pthread as dependency of arm_compute_xxx, the
linking error could be fixed.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 01:21:49 +0000 (10:21 +0900)]
Update ACL submodule hash (#1454)
This patch updates the submodule hash for ACL to the latest one.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 01:05:56 +0000 (10:05 +0900)]
Use submodule on tizen cross build (#1437)
* Use submodule on tizen cross build
1. Let OBS_BUILD have ON/OFF
2. Use submodule on tizen cross build
In summary, tizen cross build works in the same way of arm cross build.
* Change submodule during tizen cross build
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 31 May 2018 00:59:02 +0000 (09:59 +0900)]
Enable test_driver to catch failed test (#1409)
* Enable test_driver to catch failed test
Enable tools/test_driver/test_driver.sh to catch failed test, so that
now do not pass any failed test cases. To do this, run_benchmark*.sh and
run_unittest.sh will stop when the tests catch fail.
run_frameworktest.sh will stop after the tests run all models.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 00:56:31 +0000 (09:56 +0900)]
[Pure CL] Support Tensor Sinks (#1440)
This commit revises pure CL runtime to support generic tensor outputs.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 31 May 2018 00:47:06 +0000 (09:47 +0900)]
Make iterate() static inline (#1451)
This patch makes iterate() static inline function in order to avoid
multiple definition issue that could be caused when IndexIterator.h is
included in multiple files.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 23:57:33 +0000 (08:57 +0900)]
Add hasData() to class Object (#1450)
Object::hasData() will be used to check if Object has data internally.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 23:57:16 +0000 (08:57 +0900)]
Add a DIV unit test (#1448)
This patch adds a DIV unit test where two tensors with the same same are
passed as inputs.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 23:41:31 +0000 (08:41 +0900)]
Introduce 'tf_test' tool (#1421)
This commit introduce experimental 'tf_test' tool. This tool loads
tensorflow lite model and corresponding tensorflow model, run
inferences, and compare the result.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 23:41:01 +0000 (08:41 +0900)]
TensorFlowMax nnapi_delegate (#1432)
Add nnapi call from nnapi_delegate.cpp for TensorFlowMax
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 22:24:51 +0000 (07:24 +0900)]
TFLite interpreter: Custom operator max (#1419)
General implementation for custom operator max
Similar with mean
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 22:23:38 +0000 (07:23 +0900)]
Operator selector: cast operator bug fix (#1428)
Fix bug about generating cast operator's option
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 30 May 2018 22:23:15 +0000 (07:23 +0900)]
[newrt] Apply fix to newrt (#1444)
Apply fixed that were applied to pure_arm_compute
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 30 May 2018 11:06:45 +0000 (20:06 +0900)]
[Topk_v2 Op] support other operation types (#1314)
* [Topk_v2 Op] add uint8 types
This commit adds other types.
-uint8
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Topk_v2 Op] add int32 operation types
This commit adds other types.
-int32
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Topk_v2 Op] add an comment that explains topk_v2 operation
This commit adds comments.
- TopK_v2 of NN Runtime supports TENSOR_FLOAT32, TENSOR_QUANT8_ASYMM, TENSOR_INT32 other than TFLite.
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Top[Topk_v2 Op] add 2D test cases for other types
This commit adds 2D test cases for other types (int32, uint8)
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 10:53:59 +0000 (19:53 +0900)]
[Pure CL] Inheric nnfw::utils::tensor::Shape (#1438)
This commit revises internal::tflite::operand::Shape to inherit
nnfw::utils::tensor::Shape (to reduce code duplication).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 30 May 2018 08:49:00 +0000 (17:49 +0900)]
[Pure CL runtime] Support reshape/softmax over tensors (#1436)
This commit removes asserts in reshape/softmax compilation
implementation to support ADAS model.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 30 May 2018 08:04:43 +0000 (17:04 +0900)]
Introduce 'tensor::Diff' class (#1422)
This commit extracts general 'tensor::Diff' clss from
'TfLiteTensorDiff'.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 30 May 2018 07:53:27 +0000 (16:53 +0900)]
Fix format for pure acl runtime (#1435)
Fix format for pure acl runtime
Enable format check for pure acl runtime
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 30 May 2018 07:47:00 +0000 (16:47 +0900)]
Ignore compiler warnings from ARMCompute (#1434)
This commit adds -Wno-ignored-attributes option when building pure CL
runtime to ignore compiler warnings due to the code in ARMCompute
library (CL.h).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 30 May 2018 07:31:16 +0000 (16:31 +0900)]
Fix build break on debug build (#1427)
Fix debug build break for pure acl runtime
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>