남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 20 Aug 2018 02:51:02 +0000 (11:51 +0900)]
[neurun] Fix typo in model.cc (#2351)
Fix typo for `or` operation in `src/frontend/model.cc`
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 20 Aug 2018 02:22:36 +0000 (11:22 +0900)]
Add logistic_quan_1 quicktest (#2345)
To verify logistic quantizied operation,
add the logistic_quan_1 test in nnapi_quicktest
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 20 Aug 2018 02:20:23 +0000 (11:20 +0900)]
Do not return fail for test all unittest (#2348)
Do not return fail for test all unittest
Setting exit code makes CI job fail without report
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 20 Aug 2018 02:09:24 +0000 (11:09 +0900)]
[neurun] Add assertion for Graph building methods (#2340)
Add assertions for Graph building method which must be called only in
`BUILDING` phase.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 20 Aug 2018 02:08:29 +0000 (11:08 +0900)]
[neurun] Add lower phase skeleton (#2335)
Add `lower()` method to Graph which changes Graph Phase from MODEL to
LOWERED. However it does not do actual lowering work yet.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 20 Aug 2018 02:08:17 +0000 (11:08 +0900)]
Support quantization for Logistic activate function (#2344)
This patch allows to pass the scale and zeroPoint to backend
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 17 Aug 2018 06:10:55 +0000 (15:10 +0900)]
Modify testcase data for TopK (#2324)
Previous testcases data was already sorted and made some TopK tests passed.
With this commit, testcase uses shuffled (not sorted) data.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 17 Aug 2018 06:03:08 +0000 (15:03 +0900)]
Unify the order of inputs in STRIDED_SLICE operation & Update ACL (#2193)
* Unify the order of inputs in STRIDED_SLICE operation
This commit unifies the order of inputs in STRIDED_SLICE operation.
- add reordering bits of a scalar as the order of inputdata's shape.
- add reordering data of a vector as the order of inputdata's shape.
- unify the order of inputs in STRIDED_SLICE.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Update ACL
This commit updates acl.
- Extend the range in which StridedSlice is supported by cl.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 17 Aug 2018 05:56:57 +0000 (14:56 +0900)]
Modify for testing all unittest (#2288)
Fix `runall` argument type and defualt value
Fix typo `unittestall` to `unittestall_on`
Add running all unittests in `run_unittest.py`
Revise the structure of `run_unittest.py` and `run_unittest.sh` for running all unittests
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 Aug 2018 05:35:21 +0000 (14:35 +0900)]
[neurun] Enable operand value setting validation unittest (#2330)
Enable operand value setting validation unittest
- SetOperandValue
- SetOperandValueFromMemory
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 17 Aug 2018 05:21:32 +0000 (14:21 +0900)]
Skip initialization for kernel and bias if their data is null (#2327)
Skip initialization for kernel and bias if their data is null. This
situation happens when kernel's value is set at execution time.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Fri, 17 Aug 2018 05:00:23 +0000 (14:00 +0900)]
[neurun] Check invalid offset for setOperandValueFromMemory (#2328)
Check invalid offset value for setOperandValueFromMemory
- offset is memory border over
- offset+length is memory border over
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 17 Aug 2018 04:13:16 +0000 (13:13 +0900)]
Enable multiplier of depthwise_conv2d (#2322)
Since arm compute library 18.05, multiplier of depthwise_conv2d is enabled.
By applying this feature, below tests pass
`GeneratedTests.depthwise_conv2d_float_2`
`GeneratedTests.depthwise_conv2d_float_large_2_weights_as_inputs`
`GeneratedTests.depthwise_conv2d_float`
`GeneratedTests.depthwise_conv2d_float_weights_as_inputs`
`GeneratedTests.depthwise_conv2d_quant8_2`
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 17 Aug 2018 04:09:44 +0000 (13:09 +0900)]
[neurun] Introduce codegen::Dumper for debugging (#2325)
Introduce `codegen::Dumper` for debugging which dumps the LIR info in
the order of execution.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 16 Aug 2018 22:19:35 +0000 (07:19 +0900)]
[neurun] Remove legacy operand index (#2315)
* [neurun] Remove legacy operand index
Remove legacy operand index
Use operand index in graph
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Simplify input/output index access
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 16 Aug 2018 09:27:12 +0000 (18:27 +0900)]
[neurun] Check operand index and size before setting value (#2305)
* [neurun] Check operand index and size before setting value
Check operand index is exist
Check operand size before setting value
Define operand object method to get operand size
Return error when index is invalid or length is different with operand size
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Add comment for type
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 09:10:12 +0000 (18:10 +0900)]
[neurun] Remove `internal::operand::Set` (#2314)
Remove unused class `internal::operand::Set` which has been replaced
by `neurun::graph::operand::Set`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 08:33:41 +0000 (17:33 +0900)]
Support initializing constant matrix(2d type) at compilation time (#2307)
- while initializing matrix at execute time as input/output
is supported, initializing constant matrix(2d type) at
compilation time is not done so far in nnfw.
- initialize constant matrix by using matrix's View, Reader and
Iterator classes at compile time.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 08:10:42 +0000 (17:10 +0900)]
[neurun] Implement DAG Checker (#2312)
A checker that tests if given graph is a directed-acyclic-graph.
If there is a cycle the checker fails, otherwise passes.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 08:10:02 +0000 (17:10 +0900)]
Fix test data of depthwise_conv2d_float_large_2_weights_as_inputs (#2300)
`depthwise_conv2d_float_large_2_weights_as_inputs` is another test version, using same data of `depthwise_conv2d_float_large_2`
This commit will fix the test data to be same
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 16 Aug 2018 07:46:21 +0000 (16:46 +0900)]
[neurun] Remove finish field in ANeuralNetworksModel (#2308)
Remove finish field in ANeuralNetworksModel
Use graph phase to check model building is finished
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 16 Aug 2018 07:46:02 +0000 (16:46 +0900)]
Introduce testcases for reduce mean (#2302)
* Introduce testcases for reduce mean
This commit introduces testcases for reduce_mean operation.
-4D input
-axises (width-height)
-keep dims
These are test cases for RS7-RuntimeNTools/ComputeLibrary#34
related issue:#2003
Signed-off-by: SungJin Choi lotieye.choi@samsung.com
* Modify mean_axis01_2 test case
This commit modifies mean_axis01_2 test case.
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 07:06:15 +0000 (16:06 +0900)]
Introduce View, Reader and IndexIterator of Matrix (#2309)
Introduce View, Reader and IndexIterator of Matrix. These classes would
be used for initializing constant matrix.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 04:41:39 +0000 (13:41 +0900)]
Add python script of run_frameworktest (#2085)
This commit will add python script of run_frameworktest
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 16 Aug 2018 02:26:58 +0000 (11:26 +0900)]
Update ACL (#2301)
- Enable QASYMM8 in the CLArithmeticAdditionKernel.
- Extend the range in which StridedSlice is supported for CPU.
- Bugfix of subtensor validation.
- Unify the order of input data in StridedSliceCPU.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 10:14:11 +0000 (19:14 +0900)]
[neurun] Introduce Graph Phase (#2298)
`graph::Graph::Phase` is an enum class that represents which phase the
Graph is at. Since we are going to use `Graph` class for multiple
phases we need this with verification infra.
- Introduce an enum class `graph::Graph::Phase`
- Phase transition when `ANeuralNetworksModel_finish()` is called
- Call verifier from the appropriate place
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 09:00:21 +0000 (18:00 +0900)]
[neurun] Introduce IVerifier interface (#2296)
Introduce IVerifier interface to support various verifications, each
verification can be reused from different graph phases.
This commit also contains a skeleton of `DAGChecker`.
Part of #2247
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 07:54:53 +0000 (16:54 +0900)]
[neurun] Extract TensorMarker to codegen (#2294)
Extract TensorMarker into a separate file and move it to codegen
directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 07:40:26 +0000 (16:40 +0900)]
[neurun] Move operand IObject to backend (#2293)
Move `internal::Object` to `neurun::backend::operand::Object`.
Part of #2286
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 04:52:09 +0000 (13:52 +0900)]
[neurun] Move cpu operand Object to backend (#2289)
Move `internal::cpu::operand::Object` to
`neurun::backend::cpu::operand::Object`.
Part of #2286
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 14 Aug 2018 04:39:28 +0000 (13:39 +0900)]
[neurun] Fix feature to ACL TensorShape conversion (#2290)
Fix feature to ACL TensorShape conversion to set batch value
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 03:47:16 +0000 (12:47 +0900)]
[neurun] Extract Planner to codegen (#2291)
Extract Planner into a separate file and move it to codegen directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Fix for Max_pool_float_* Gtest Failure (#2283)
This is fix for max_pool_float_*.Batches are now set correctly in arm_compute::tensorshape
Signed-off-by: Shubham <shub98.gupta@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 02:08:25 +0000 (11:08 +0900)]
[neurun] Extract asXX helpers into seperate file (#2278)
* [neurun] Extract asXX casting helpers into Cast.h
This commit extracts asXX casting helpers into Cast.h likes PACL(https://github.sec.samsung.net/STAR/nnfw/blob/master/runtimes/pure_arm_compute/src/internal/arm_compute/Cast.h)
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Change file name/add namespace/seperate source file
* Add empty line
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 02:04:07 +0000 (11:04 +0900)]
Rename `kernel/cpufallback` to `kernel/cpu` (#2282)
Rename the directory to remove inconsistency with namespace name in
the code and backend module(cpu backend is in `backend/cpu`).
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 02:03:32 +0000 (11:03 +0900)]
[neurun] Remove unused internal::Model (#2284)
Now that we replace Model with Graph IR, Model is unused anymore.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 14 Aug 2018 01:42:49 +0000 (10:42 +0900)]
[neurun] Move acl_cl operand Object to backend (#2285)
Move `internal::arm_compute::operand::Object` to
`neurun::backend::acl_cl::operand::Object`.
Part of #2286
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 14 Aug 2018 00:27:51 +0000 (09:27 +0900)]
Fix unittest script to report error (#2280)
Fix unittest script to report error
- Save test result immediately to temporary variable
- We should save result before compare statement
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 13 Aug 2018 11:32:20 +0000 (20:32 +0900)]
[neurun] Remove useless assertion (#2279)
Remove useless assertion
It makes validation check fail on debug build
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 13 Aug 2018 10:23:30 +0000 (19:23 +0900)]
[neurun] Introduce IO::Index (#2272)
* [neurun] Introduce IOIndex/IOIndexSet
Close : #2257
This commit introduce IOIndex/IOIndexSet.
`IOIndex` is the indices for ANeuralNetworksModel_identifyInputsAndOutputs() API.
`IOIndexSet` is accessible only using with `IOIndex`.
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Revert some codes
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 13 Aug 2018 10:23:19 +0000 (19:23 +0900)]
Test driver: Test all unittest option (#2274)
Add new option to run all unittest
- Ignore skiplist
- Get test list using gtest option
- Test each unittest item using filter
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 13 Aug 2018 10:23:05 +0000 (19:23 +0900)]
[neurun] Remove unused TensorSetter define (#2275)
This commit removes unused `TensorSetter` function define.
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 13 Aug 2018 10:22:31 +0000 (19:22 +0900)]
[neurun] Extract PlanBuilder into a separate file (#2276)
Extract PlanBuilder into a separate file and move it to codegen
directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 13 Aug 2018 09:17:07 +0000 (18:17 +0900)]
[neurun] Extract BackendResolver into a separate file (#2273)
Extract BackendResolver into a separate file and move it to codegen
directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 13 Aug 2018 09:11:49 +0000 (18:11 +0900)]
Introduce reduce mean operation for pure acl runtime (#2256)
* Rebase on master instead of merging
This commit does rebase on master instead of merging.
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* Fix and modify a typo
This commit fixes a typo
- axises => axis
Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 13 Aug 2018 01:58:26 +0000 (10:58 +0900)]
[neurun] Extract IPlanBuilder into a separate file (#2261)
Extract IPlanBuilder into a separate file and move it to codegen
directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 10 Aug 2018 07:46:18 +0000 (16:46 +0900)]
[neurun] Move directory of backend interfaces (#2250)
Move backend interfaces to `backend` from `internal`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 10 Aug 2018 06:23:19 +0000 (15:23 +0900)]
Update proxy settings for arm cross build docs (#2255)
This will update proxy settings for arm cross build documents
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 10 Aug 2018 06:22:33 +0000 (15:22 +0900)]
Remove unused apt_proxy (#2253)
This will remove not used anymore apt_proxy file while building arm rootfs
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 10 Aug 2018 01:52:57 +0000 (10:52 +0900)]
[neurun] Apply Graph IR (#2244)
This commit replaces `internal::tflite::Model` with
`neurun::graph::Graph`.
Resolve #2155
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Specify setproxy option in build_rootfs (#2053)
Specify setproxy option with IP address value as argument instead of skipproxy option.
The ipaddress specified with be the actual proxy server.
example: ./build_rootfs.sh setproxy=<IP address of the proxy server>
Signed-off-by: Praveen D N <praveen.dn@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 9 Aug 2018 11:01:58 +0000 (20:01 +0900)]
Don't formatcheck tools/tflite_benchmark_model with .FORMATDENY (#2242)
Use .FORMATDENY (#2238) to skip formatcheck tools/tflite_benchmark_model.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 09:59:59 +0000 (18:59 +0900)]
[neurun] Extract Plan and related classes from arm_compute namespace (#2239)
This commit extracts Plan and related classes from arm_compute namespace into ::internal.
김용섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 09:44:48 +0000 (18:44 +0900)]
Fix setting in config_aarch64-linux.cmake (#2245)
- aarch64-linux-gnu-g*5 -> aarch64-linux-gnu-g*
- proper rootfs path
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
장지섭/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 09:05:36 +0000 (18:05 +0900)]
Modify the quantization info to pass pureacl runtime in broadcast case. (#2098)
This commit modifies the quantization info to pass pureacl runtime in broadcast case.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 07:58:20 +0000 (16:58 +0900)]
Make format-checker pushd/popd quiet (#2241)
Now that we have too many pushd/popd logs this commit makes it not to
print any messages from pushd/popd.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 07:54:14 +0000 (16:54 +0900)]
[neurun] Fix test directory structure (#2240)
Move graph test sources to `test/graph` so it will look identical to
`src` directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 9 Aug 2018 07:07:58 +0000 (16:07 +0900)]
Introduce .FORMATDENY (#2238)
Put .FORMATDENY in directory that you don't want to check style.
Note: Please don't make ambiguous situation.
e.g.)
```
- A
+- .FORMATCHECKED
+- B
+- FORMATDENY
+- C
+- FORMATCHECKED
```
Related issue: #2233
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
남궁석/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 06:52:30 +0000 (15:52 +0900)]
Update test_driver.py script (#2210)
Replace `optparse` to `argparse`
Replace `os._exit()` to `sys.exit()`
Remove `TODO : Handle Return Value`
Add exception handling for `artifactpath`
Add `reportdir` parameter and modify related codes
Modify some conditions of checking parameters
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 9 Aug 2018 06:17:20 +0000 (15:17 +0900)]
Add tflite_benchmark_model sources (#2231)
Sources are copied from tensorflow/contrib/lite/tools/benchmark from
v1.9.0-rc2. Then, I modified the followings:
- Namespace is changed
(tflite -> nnfw)
- Header guard is also changed
- Header include path is adjusted
(include tensorflow/contrib/lite/profiling/* -> include *)
- Add proper qualification to fix build error (string -> std::string)
- Prepend license for sources under tflite_benchmark_model
In addition, tools/CMakeLists.txt is modified to build tflite_benchmark_model
when `BUILD_TFLITE_BENCHMARK_MODEL` is defined.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 9 Aug 2018 06:17:01 +0000 (15:17 +0900)]
Remove squeeze from skiplist (#2236)
- Remove squeeze from skiplist
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 06:16:08 +0000 (15:16 +0900)]
[neurun] Graph : Introduce Graph (#2235)
This commit introduces `neurun::graph::Graph` which represents our new
Graph IR. Note that nodes in the graph is operations.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 05:49:47 +0000 (14:49 +0900)]
Support QASYMM8 in relu-related operators (#2237)
* Support QASYMM8 in relu-related operators
ReLU, ReLU1 and ReLU6 supports quantized operation
It adds QuantizationInfo to TensorInfo in operations that supports QASYMM8_TENSOR
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Enable quant8 testcases of relu-related operator in GeneratedTests
Enable below GeneratedTests:
GeneratedTests.relu_quant8_1
GeneratedTests.relu_quant8_2
GeneratedTests.relu1_quant8_1
GeneratedTests.relu1_quant8_2
GeneratedTests.relu6_quant8_1
GeneratedTests.relu6_quant8_2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
윤지영/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 9 Aug 2018 05:44:01 +0000 (14:44 +0900)]
Add Logistic operator in pure acl runtime (#2230)
* Add Logistic operator in pure acl runtime
Define Logistic namespace, node and param
Set parameter for Logistic in compilation step
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Enable logistic_float_* in GeneratedTests
Enable below two GeneratedTests:
logistic_float_1
logistic_float_2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Thu, 9 Aug 2018 04:45:52 +0000 (13:45 +0900)]
Enable squeeze for rank-4 input (#2234)
- Remove input rank restriction from compilation
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 9 Aug 2018 03:01:11 +0000 (12:01 +0900)]
tflite_benchmark_model will not be formatchecked (#2232)
tflite_benchmark_model will keep original source's style
so that it could be tracked and diff'ed easily.
.FORMATCHEKED in tools (the parent directory of tflite_benchmark_model)
is distributed to all child directories except for
tflite_benchmark_model.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 9 Aug 2018 01:21:39 +0000 (10:21 +0900)]
Introduce BUILD_TFLITE_BENCHMARK_MODEL option (#2226)
Related Issue: #1760, #1696
`tflite_benchmark_model` is a tool for profiling a given model.
The tools is under development in tensorflow upstream.
It was not shipped in v1.9.0 release.
Thus I made `tflite_benchmark_model` work for tflite interpreter
by chery-picking needed patches. (#2212)
This patch is a part of full changes. It only introduces build option.
By default, tflite_benchmark_model will not be built.
To build tflite_benchmark_model tool, use
```
$ OPTIONS='-DBUILD_PURE_ARM_COMPUTE=ON -DBUILD_TFLITE_BENCHMARK_MODEL=ON' \
CROSS_BUILD=1 TARGET_ARCH=armv7l make all install
```
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 8 Aug 2018 22:18:15 +0000 (07:18 +0900)]
[neurun] Define operand usage enum and check exception (#2213)
Define operand usage: model input, constant, operation output
Check exception: operand usage conflict
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 22:16:50 +0000 (07:16 +0900)]
[neurun] Graph : Introduce operation Concat (#2223)
Introduce `neurun::graph::operation::Concat` which is a node in Graph
IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 22:16:39 +0000 (07:16 +0900)]
[neurun] Graph : Introduce operation Conv2D (#2222)
Introduce `neurun::graph::operation::Conv2D` which is a node in Graph
IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 22:16:29 +0000 (07:16 +0900)]
[neurun] Graph : Introduce operation MaxPool2D (#2220)
Introduce `neurun::graph::operation::MaxPool2D` which is a node in
Graph IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 22:16:16 +0000 (07:16 +0900)]
[neurun] Graph : Introduce operation Reshape (#2219)
Introduce `neurun::graph::operation::Reshape` which is a node in Graph
IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 22:16:05 +0000 (07:16 +0900)]
[neurun] Graph : Introduce operation FullyConnected (#2221)
Introduce `neurun::graph::operation::FullyConnected` which is a node
in Graph IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 22:15:49 +0000 (07:15 +0900)]
[neurun] Graph : Introduce operation Softmax (#2218)
Introduce `neurun::graph::operation::Softmax` which is a node in Graph
IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 11:07:23 +0000 (20:07 +0900)]
[neurun] Graph : Introduce operation `Set` (#2215)
`neurun::graph::operation::Set` holds operations and also has
ownership of them.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 10:43:36 +0000 (19:43 +0900)]
[neurun] Graph : Introduce operation AvgPool2D (#2217)
Introduce `neurun::graph::operation::AvgPool2D` which is a node in Graph
IR.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 8 Aug 2018 09:37:03 +0000 (18:37 +0900)]
support rank 4 feature in pacl runtime (#2183)
* support rank 4 feature in pacl runtime
This commit enables rank 4 feature
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* rank4 feature for neurun
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 09:33:42 +0000 (18:33 +0900)]
[neurun] Remove kernel source from build (#2216)
SOURCES_KERNEL is an empty variable.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 08:38:57 +0000 (17:38 +0900)]
[neurun] Remove unused includes for Initializer in compilation.cc (#2214)
This commit removes unused includes for Initializer in compilation.cc
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 08:36:25 +0000 (17:36 +0900)]
[neurun] Graph : Introduce operand IndexSet (#2209)
`neurun::graph::operand::IndexSet` is a list of `Index`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 8 Aug 2018 08:28:44 +0000 (17:28 +0900)]
Update tensorflow submodule for tflite_benchmark_model (#2212)
tflite_benchmark_model in v1.9.0 does not build nor work.
This patch fixes build failure with two cherry-picked patches.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 08:26:20 +0000 (17:26 +0900)]
[neurun] Graph : Introduce operand Set (#2208)
`neurun::graph::operand::Set` holds operands and also has ownership of
them.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 08:24:15 +0000 (17:24 +0900)]
[neurun] Graph : Introduce Operation `Node` (#2206)
Class `neurun::graph::operation::Node` is a wrapper class of
`internal::tflite::op::Node` with input/output tensor info.
Input/Output info will be used for graph traversing.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 07:54:33 +0000 (16:54 +0900)]
[neurun] Set input/output as common tensor,Implement tensor conversion kernels (#2211)
Related : #2142, #2040
- Set input/output as common tensor
- Implement tensor conversion kernels
Tests are matched.
Signed-off-by: sjsujinkim sjsujin.kim@samsung.com
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 8 Aug 2018 06:53:53 +0000 (15:53 +0900)]
Remove newruntime_frameworktest_list.txt (#2207)
Remove newruntime_frameworktest_list.txt file
It is not used any more
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 05:55:20 +0000 (14:55 +0900)]
[neurun] Change parameters for TensorConversion kernels (#2187)
Related : #2142
This commit changes parameters for TensorConversion kernels.
- Introduce Tensor Shape parameter for iterating tensors by shape info
- Change CPU Data parameter from a pointer to Tensor
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 05:07:52 +0000 (14:07 +0900)]
[neurun] Graph : Introduce Operand Index (#2205)
Introduce `neurun::graph::operand::Index` which is an alias of
`neurun::graph::Index`.
Note that, with the additional template parameter `DummyTag`, aliased
types are treated as different types(strong typedef).
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 05:07:28 +0000 (14:07 +0900)]
[neurun] Graph : Introduce Operation Index (#2204)
Introduce `neurun::graph::operation::Index` which is an alias of
`neurun::graph::Index`.
Note that, with the additional template parameter `DummyTag`, aliased
types are treated as different types(strong typedef).
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 04:13:48 +0000 (13:13 +0900)]
[neurun] Introduce Index (#2200)
Class `Index` is an integer index wrapper which will be used for
operand, operation and so on.
With template parameter `DummyTag` we can reuse code for many kinds of
indices without adding any code.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 04:13:41 +0000 (13:13 +0900)]
[neurun] Build graph sources (#2201)
Revise CMakeLists.txt to build source files in `graph` directory.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Wed, 8 Aug 2018 02:19:34 +0000 (11:19 +0900)]
[neurun] Handle more operand type (#2190)
- Handle more operand type: ANEURALNETWORKS_TENSOR_INT32, ANEURALNETWORKS_TENSOR_QUANT8_ASYMM
- Handle exception case related with type
- Update unittest skiplist
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 02:19:20 +0000 (11:19 +0900)]
[neurun] Allow to have multi objects in an one index. (#2182)
This commit allows to have multi objects in an one index.
It's for objects of heterogeneous backends in an one index.
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 8 Aug 2018 02:19:04 +0000 (11:19 +0900)]
[neurun] Setup unittest infra (#2191)
Setup unittest infra with GTest with a sample test.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 7 Aug 2018 10:43:45 +0000 (19:43 +0900)]
[neurun] Use std::nothrow for exception handling (#2184)
Use std::nothrow for
- Handle exception
- Set returned reference by parameter nullptr
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Tue, 7 Aug 2018 10:43:35 +0000 (19:43 +0900)]
[neurun] Mark FromCommon for all of ifm indexes in concat (#2185)
This commit marks FromCommon for all of ifm indexes in concat.
It'was a bug.
Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 7 Aug 2018 08:56:27 +0000 (17:56 +0900)]
Test driver: report directory (#2188)
Add parameter to set report directory
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 7 Aug 2018 08:54:34 +0000 (17:54 +0900)]
Update unittest skiplist: validation test (#2181)
Update validation unittest skiplist
- Remove CreateModel in pacl & neurun
- Remove Model.finish in neurun
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 7 Aug 2018 01:36:45 +0000 (10:36 +0900)]
[neurun] Model finish flag (#2176)
Introduce model finish flag to check duplicated finish call & modification after finished
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Tue, 7 Aug 2018 00:42:53 +0000 (09:42 +0900)]
Introduce docker-shell and docker-run (#2177)
Change script name docker_runs.sh to docker-shell
Introduce docker-run
These scripts' name are same as nncc
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 [Mon, 6 Aug 2018 05:45:12 +0000 (14:45 +0900)]
[pacl] NNAPI frontend exception handling by nullptr (#2164)
Handle exception by nullptr parameter in NNAPI frontend implementation
Same implementation as neurun
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>