platform/core/ml/nnfw.git
6 years agoIntroduce 'Inception v3' benchmark (#283)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 23:46:22 +0000 (08:46 +0900)]
Introduce 'Inception v3' benchmark (#283)

This commit introduces 'inception v3' benchmark (which is derived from
inception v3 ACL Graph API example).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoBuild ExecutionBuilder
sjsujinkim [Wed, 28 Mar 2018 10:32:23 +0000 (19:32 +0900)]
Build ExecutionBuilder

This commit builds ExecutionBuilder which is not included to build.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoChange the library name of NN Runtime to `neuralnetworks`
jiseob.jang [Wed, 28 Mar 2018 10:08:42 +0000 (19:08 +0900)]
Change the library name of NN Runtime to `neuralnetworks`

This commit changes the library name of NN Runtime to `neuralnetworks`.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoUpdate gitignore for acl build outputs
SaeHie Park [Wed, 28 Mar 2018 09:38:38 +0000 (18:38 +0900)]
Update gitignore for acl build outputs

This will add git ignore file/folders for acl

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix convacl to use unique_ptr
SaeHie Park [Wed, 28 Mar 2018 10:32:19 +0000 (19:32 +0900)]
Fix convacl to use unique_ptr

This will fix convacl experiment to use std::unique_ptr

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix bindacl experiment (#274)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 28 Mar 2018 10:03:06 +0000 (19:03 +0900)]
Fix bindacl experiment (#274)

* Fix bindacl experiment

This will fix bindacl experiment by adding its own dummy accessor

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use new for unique_ptr

6 years agoUpdate acl.cmake for v18.03
Jonghyun Park [Wed, 28 Mar 2018 07:39:45 +0000 (07:39 +0000)]
Update acl.cmake for v18.03

This commit updates acl.cmake to build ARM Compute Library v18.03
correctly.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoEnable members of CpuExecutor and required types
Hyung-Kyu Choi [Wed, 28 Mar 2018 08:08:01 +0000 (17:08 +0900)]
Enable members of CpuExecutor and required types

- Enable members of CpuExecutor and required types

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoImplement Execution_free
sjsujinkim [Wed, 28 Mar 2018 07:54:54 +0000 (16:54 +0900)]
Implement Execution_free

This commit implements Execution_free.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoRemove including duplicate of CompilationBuilder.h
sjsujinkim [Wed, 28 Mar 2018 07:56:23 +0000 (16:56 +0900)]
Remove including duplicate of CompilationBuilder.h

This commit removes including duplicate of CompilationBuilder.h in NeuralNetworks.cpp

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoUpdate cmake rule for reference NN runtime (#254)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 08:29:11 +0000 (17:29 +0900)]
Update cmake rule for reference NN runtime (#254)

* Update cmake rule for reference NN runtime

- Create a single libneuralnetworks_ref.so for a reference NN runtime
- Later we will remove unnecessary targets after unit tests are updated

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
* Update cmake rules

- Move TODO-NNRT comment to correct location
- Update rules to correctly include source files

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoImplement Execution_create
sjsujinkim [Wed, 28 Mar 2018 06:47:19 +0000 (15:47 +0900)]
Implement Execution_create

This commit implements Execution_create.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoChange Log.h to android-base/logging.h (#262)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Mar 2018 08:05:54 +0000 (17:05 +0900)]
Change Log.h to android-base/logging.h (#262)

* Change Log.h to android-base/logging.h

This commit changes Log.h to android-base/logging.h for minimum change of exist implementations.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* change quotes to <> for including

6 years agoIntroduce C++ wrapper for NN APIs
Hyung-Kyu Choi [Wed, 28 Mar 2018 03:55:58 +0000 (12:55 +0900)]
Introduce C++ wrapper for NN APIs

- Introduce C++ wrapper for NN APIs, becuase this wrapper is used by unit
  tests of Android NN using gtest
- Introduce a test using C++ wrapper

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoCopy StrongPointer from ANN (#255)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Mar 2018 07:32:22 +0000 (16:32 +0900)]
Copy StrongPointer from ANN (#255)

* Copy StrongPointer from ANN

This commit copies StrongPointer from ANN.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Inlucde StrongPointer.h into HidlSupport.h

6 years agoIntroduce environment utilities methods (#246)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 28 Mar 2018 07:15:08 +0000 (16:15 +0900)]
Introduce environment utilities methods (#246)

* Introduce environment utilities methods

This will add some environment utliity methods to make things easy

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoAdd libarmcl-devel dependancy for obs build (#259)
이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 07:14:29 +0000 (16:14 +0900)]
Add libarmcl-devel dependancy for obs build (#259)

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
6 years agointroduce runtime_sample from android_nn_sample app.
jiseob.jang [Tue, 27 Mar 2018 07:56:31 +0000 (16:56 +0900)]
introduce runtime_sample from android_nn_sample app.

This commit introduces runtime_sample from android_nn_sample app.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoAdd simple example for NNRT
sjsujinkim [Mon, 26 Mar 2018 09:36:29 +0000 (18:36 +0900)]
Add simple example for NNRT

This commit adds simple example for NNRT.
(3x4 tensor ADD 3x4 tensor)

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd vim/ctags/gnu-global temp files into .gitignore (#251)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 06:00:09 +0000 (15:00 +0900)]
Add vim/ctags/gnu-global temp files into .gitignore (#251)

This commit updates .gitignore to include temporary files of `vim/ctags/gnu-global`.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoImport ARM Compute Library (v18.03) (#253)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 04:50:42 +0000 (13:50 +0900)]
Import ARM Compute Library (v18.03) (#253)

This commit updates (included) ARM Compute Library. Codes are imported
from c3f34a43ff commit.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoSupport to create memory by file descriptor only (#224)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Wed, 28 Mar 2018 04:50:29 +0000 (13:50 +0900)]
Support to create memory by file descriptor only (#224)

* Support to create memory by file descriptor only

This commit makes it supports to create memory by file descriptor only.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Change mPointer to mBuffer

* Modify TODO comment

6 years agoUpdate workgroup information links in `roadmap.md` (#250)
이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 28 Mar 2018 04:27:29 +0000 (13:27 +0900)]
Update workgroup information links in `roadmap.md` (#250)

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
6 years agoUpdate how-to doc links in README.md (#242)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 04:26:25 +0000 (13:26 +0900)]
Update how-to doc links in README.md (#242)

This commit updates how-to doc links in README.md in order to reflect
recent changes in how-to documents.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoAdd the first version of roadmap.md (#138)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 28 Mar 2018 01:58:56 +0000 (10:58 +0900)]
Add the first version of roadmap.md (#138)

* Add the first version of roadmap.md

For issue #86

This patch adds the first version of roadmap.md to share the goal,
milestones, and tasks among participants in this nnfw project.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoEnable copyLargeValuesToSharedMemory in ModelBuilder
sjsujinkim [Tue, 27 Mar 2018 06:46:13 +0000 (15:46 +0900)]
Enable copyLargeValuesToSharedMemory in ModelBuilder

This commit enables copyLargeValuesToSharedMemory in ModelBuilder.
It doesn't works now. If the Memory::create() is implemented, it works well.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoSet and dump acl-conv experiment (#243)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 28 Mar 2018 01:24:17 +0000 (10:24 +0900)]
Set and dump acl-conv experiment (#243)

This will update acl convolution experiment to
set input and weight values and dump input/out values of the tensor

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoFix arm cross build to refer correct system header (#233)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 28 Mar 2018 00:22:26 +0000 (09:22 +0900)]
Fix arm cross build to refer correct system header (#233)

This will fix arm cross build to reference correct system header path

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
6 years agoAdd document for xu4 ubuntu (#209)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 27 Mar 2018 08:18:56 +0000 (17:18 +0900)]
Add document for xu4 ubuntu (#209)

* Add document for xu4 ubuntu

This will add initial document how to use Ubuntu on ODroid XU4

6 years agoIntroduce GoogLeNet & MobileNet benchmark (#232)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 27 Mar 2018 08:00:25 +0000 (17:00 +0900)]
Introduce GoogLeNet & MobileNet benchmark (#232)

* Introduce GoogLeNet & MobileNet benchmark

This commit introduces GoogLeNet & MobileNet benchmark based on ARM
Compute Library.

These benchmarks are almost same as corresponding examples in ARM Compute
Library except that run method are invoked multiple times.

This commit introduces custom ITensorAccessor implementations (instead of
DummyAccessor in Graph Util) to make it possible measure elpased time over
multiple graph run.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Use 'benchmark/acl' directory

* Update 'BUILD_BENCHMARK_ACL' dsecription

6 years agoUpdate README.md to mention cross compiler installation
Sangmin Seo [Tue, 27 Mar 2018 06:33:55 +0000 (15:33 +0900)]
Update README.md to mention cross compiler installation

For the cross build for ARM, we may need to install ARM cross gcc/g++.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoUpdate model parser: multiple subgraph (#210)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 27 Mar 2018 06:22:11 +0000 (15:22 +0900)]
Update model parser: multiple subgraph (#210)

Update model parser

- Can handle multiple subgraph
- Change while loop
- Remove opcode list generation

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUpdate logging to print more information (#198)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 27 Mar 2018 06:07:06 +0000 (15:07 +0900)]
Update logging to print more information (#198)

- Print type of ANeuralNetworksOperandType
- Print model for ANeuralNetworksModel_addOperation

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMove target device related documents inside device folder (#228)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 27 Mar 2018 05:31:44 +0000 (14:31 +0900)]
Move target device related documents inside device folder (#228)

This will move target device related documents inside device folder

6 years agoIntroduce 'arm_compute_graph_test' library (#227)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 27 Mar 2018 04:58:04 +0000 (13:58 +0900)]
Introduce 'arm_compute_graph_test' library (#227)

This commit introduces 'arm_compute_graph_test' library to make it easy
to add new examples.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce skeleton of ExecutionBuilder from Android NN
Hyung-Kyu Choi [Mon, 26 Mar 2018 14:43:07 +0000 (23:43 +0900)]
Introduce skeleton of ExecutionBuilder from Android NN

- Introduce skeleton of ExecutionBuilder from Android NN
- Comment out implementations using "#if 0 // REF-ANN"
- No modification for the code

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoUpdate README for arm cross build (#223)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 27 Mar 2018 01:32:04 +0000 (10:32 +0900)]
Update README for arm cross build (#223)

This will update README with required packages for RootFS preparation used in arm cross build

6 years agoSet dependency on ACL version tag correctly (#190)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 27 Mar 2018 01:30:58 +0000 (10:30 +0900)]
Set dependency on ACL version tag correctly (#190)

This commit revises 'external/acl.cmake' to set dependency on ACL
version tag correctly to support parallel/incremental build.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd the first version of workgroups.md (#141)
서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 27 Mar 2018 00:40:53 +0000 (09:40 +0900)]
Add the first version of workgroups.md (#141)

* Add the first version of workgroups.md

For issue #123

This commit adds the first version of workgroups.md.

Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
6 years agoIntroduce hidl_string from libhidl of android.
jiseob.jang [Mon, 26 Mar 2018 11:31:31 +0000 (20:31 +0900)]
Introduce hidl_string from libhidl of android.

This commit introduce hidl_string from libhidl of android.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoImplement Model_setOperandValueFromMemory
sjsujinkim [Mon, 26 Mar 2018 11:10:05 +0000 (20:10 +0900)]
Implement Model_setOperandValueFromMemory

This commit implements Model_setOperandValueFromMemory.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoIntroduce ashmem from libcutils of android.
jiseob.jang [Mon, 26 Mar 2018 11:09:20 +0000 (20:09 +0900)]
Introduce ashmem from libcutils of android.

This commit introduce ashmem from libcutils of android.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoImplement Model_identifyInputsAndOutputs
sjsujinkim [Mon, 26 Mar 2018 04:14:56 +0000 (13:14 +0900)]
Implement Model_identifyInputsAndOutputs

This commit implements Model_identifyInputsAndOutputs.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImplement Memory_createFromFd and free
sjsujinkim [Mon, 26 Mar 2018 10:23:53 +0000 (19:23 +0900)]
Implement Memory_createFromFd and free

This commit implements Memory_createFromFd and free.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImplement Model_addOperation
sjsujinkim [Mon, 26 Mar 2018 08:43:24 +0000 (17:43 +0900)]
Implement Model_addOperation

This commits Model_addOperation and enables below helpers.

- setFromIntList
- validCode

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd Memory.h, Memory.cpp without IMemory (#207)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Mon, 26 Mar 2018 11:02:27 +0000 (20:02 +0900)]
Add Memory.h, Memory.cpp without IMemory (#207)

* Add Memory.h, Memory.cpp without IMemory

This commit adds Memory.h and Memory.cpp without IMemory.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Add getPointer of MemoryFd

6 years agoAdd gitignore: python cache file (#206)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Mar 2018 08:01:24 +0000 (17:01 +0900)]
Add gitignore: python cache file (#206)

Add python cache file in gitignore
It's generated when we import python module in console mode

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoIntroduce image importer (#205)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Mar 2018 07:25:31 +0000 (16:25 +0900)]
Introduce image importer (#205)

This commit introduces image importer to convert
jpeg or png images to bin.
The binary file only has the pixel values.
It does not have size.
The output will be used for `tflite_run`.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoAdd loading input(jpg) and printing output for tflite_run (#200)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Mar 2018 07:24:52 +0000 (16:24 +0900)]
Add loading input(jpg) and printing output for tflite_run (#200)

This commit introduces:
- Loading a jpeg image as an input
- Printing max index from the output feature map of the last layer.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoImplement Model_setOperandValue
sjsujinkim [Mon, 26 Mar 2018 02:31:25 +0000 (11:31 +0900)]
Implement Model_setOperandValue

This commit implements Model_setOperandValue and enalbes below helpers.

- sizeOfData
- alignBytesNeeded

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImplement Model_addOperand
sjsujinkim [Fri, 23 Mar 2018 08:34:47 +0000 (17:34 +0900)]
Implement Model_addOperand

This commit implements Model_addOperand.
It has dependency on #195.
If #195 is landed, it would work well.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoUse shared library for LeNet example (#188)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Mar 2018 04:51:07 +0000 (13:51 +0900)]
Use shared library for LeNet example (#188)

This commit revises 'external/acl.cmake' to use shared library (instead
of static library) for LeNet example build.

This allows users to run 'graph_lenet' example.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoTFLite model file parser
Hyeongseok Oh [Thu, 22 Mar 2018 10:19:49 +0000 (19:19 +0900)]
TFLite model file parser

Print operator and tensor information in TF Lite model file

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoHelper python code for TFLite model file parsing
Hyeongseok Oh [Thu, 22 Mar 2018 10:02:42 +0000 (19:02 +0900)]
Helper python code for TFLite model file parsing

Include generated python helper by flatc with schema in tools/tflitefile_tool/tflite

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoRemove duplicated Dockerfile (#204)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Mar 2018 04:48:56 +0000 (13:48 +0900)]
Remove duplicated Dockerfile (#204)

- Remove duplicated Dockerfile, becasue now we have Dockerfile
  based on Ubuntu 16.04 at docker/Dockerfile

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoAdd experiment code for Convolution with ACL (#186)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Mar 2018 04:39:36 +0000 (13:39 +0900)]
Add experiment code for Convolution with ACL (#186)

* Add experiment code for Convolution with ACL

This will add experimental code to work on Convolution with ACL

* add todo using  env var

6 years agoDisable details::logAlwaysFatal
sjsujinkim [Fri, 23 Mar 2018 08:27:20 +0000 (17:27 +0900)]
Disable details::logAlwaysFatal

This commit disables details::logAlwaysFatal.
If we use 'hidl_vec', we will meet unreferenced error now.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd gitignore for python 3 (#181)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Mar 2018 01:55:06 +0000 (10:55 +0900)]
Add gitignore for python 3 (#181)

Add python 3 compile cache to gitignore

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoBuild flatbuffer and install flatc (#148)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Sun, 25 Mar 2018 23:33:29 +0000 (08:33 +0900)]
Build flatbuffer and install flatc (#148)

Build flatbuffer when native build and host is x86_64
Install flatc to use model tflite file for parsing and compile

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoAdd the skeleton of Utils.cpp
sjsujinkim [Fri, 23 Mar 2018 07:40:19 +0000 (16:40 +0900)]
Add the skeleton of Utils.cpp

This commit adds the skeleton of Utils.cpp

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoAdd Log.h into Utils.h
sjsujinkim [Fri, 23 Mar 2018 07:22:53 +0000 (16:22 +0900)]
Add Log.h into Utils.h

This commit adds Log.h into Utils.h

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImplement Model_finish without copyLargeValuesToSharedMemory (#191)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Fri, 23 Mar 2018 08:10:52 +0000 (17:10 +0900)]
Implement Model_finish without copyLargeValuesToSharedMemory (#191)

* Implement Model_finish without copyLargeValuesToSharedMemory

This commits implements Model_finish() without copyLargeValuesToSharedMemory.

copyLargeValuesToSharedMemory needs to include "Memory.h"

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Remove string.h

6 years agoCopy unused dummy codes from hidl base of ANN
jiseob.jang [Fri, 23 Mar 2018 06:24:51 +0000 (15:24 +0900)]
Copy unused dummy codes from hidl base of ANN

This commit copies unused dummy codes from hidl base of ANN.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoInclude Utils.h from CompilationBuilder
Hyung-Kyu Choi [Thu, 22 Mar 2018 14:49:49 +0000 (23:49 +0900)]
Include Utils.h from CompilationBuilder

- Include Utils.h from CompilationBuilder
- Remove tempory decalaration of const vairable

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoInclude Utils.h in ModelBuilder
sjsujinkim [Fri, 23 Mar 2018 04:20:49 +0000 (13:20 +0900)]
Include Utils.h in ModelBuilder

This commit includes Utils.h into ModelBuilder for using nnAssert.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoEnable nnAssert in Utils.h
sjsujinkim [Fri, 23 Mar 2018 04:16:56 +0000 (13:16 +0900)]
Enable nnAssert in Utils.h

This commit enables nnAssert in Utils.h

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImport declaration of Model, Operand and Operation
jiseob.jang [Thu, 22 Mar 2018 13:35:59 +0000 (22:35 +0900)]
Import declaration of Model, Operand and Operation

This commit imports declaration of Model, Operand and
Operation from Android NN withtout implemenation.

ModelBuilder and CpuExecutor are built successfully with struct Model, Operand
and Operation.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoFix bindacl experiment to run with acl graph layer
SaeHie Park [Fri, 23 Mar 2018 00:52:47 +0000 (09:52 +0900)]
Fix bindacl experiment to run with acl graph layer

This will fix bindacl failure and run with one SoftMaxLayer in the network

6 years agoTurn on embed_kernels options of ACL
SaeHie Park [Fri, 23 Mar 2018 00:42:34 +0000 (09:42 +0900)]
Turn on embed_kernels options of ACL

This will turn on embed_kernels option of scons build

6 years ago[ACL] Link system libaries correctly (#174)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 23 Mar 2018 01:01:21 +0000 (10:01 +0900)]
[ACL] Link system libaries correctly (#174)

ARM Compute Library needs libdl and libpthread, but these libraries are
not linked, or incorrectly linked.

This commit fixes this link issue. Now, cl_convolution and
neon_convolution examples built by CMake works on ODROID.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoUpdate aclbind experiment to link with acl (#150)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 23 Mar 2018 00:00:25 +0000 (09:00 +0900)]
Update aclbind experiment to link with acl (#150)

* aclbind experiment to link with acl

This will update aclbind experiment program to link with current ACL

6 years agoAdd Dockerfile and docker build script (#125)
김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 22 Mar 2018 23:09:02 +0000 (08:09 +0900)]
Add Dockerfile and docker build script (#125)

This commit introduces `Dockerfile` of Ubuntu 16.04 and docker build/run scripts.
- To build a docker image, `cd docker;./docker_build.sh`
- To enter the docker image, `cd docker;./docker_run.sh`

This docker image is useful especially for Ubuntu 14.04 users.
ACL cannot be built on Ubuntu 14.04 due to build failure of default gcc(4.8).

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoUse npu_u16.04 docker image for CI
Hyung-Kyu Choi [Thu, 22 Mar 2018 13:50:12 +0000 (22:50 +0900)]
Use npu_u16.04 docker image for CI

- Use npu_u16.04 docker image for CI

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoAdd Utils.h for reference NN runtime
Hyung-Kyu Choi [Thu, 22 Mar 2018 11:13:19 +0000 (20:13 +0900)]
Add Utils.h for reference NN runtime

- add src/runtime/ref/nn/common/include/Utils.h
- include Utils.h from CpuExecutor.h

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoFix multiple definition error.
jiseob.jang [Thu, 22 Mar 2018 12:55:01 +0000 (21:55 +0900)]
Fix multiple definition error.

This commit fixes multiple definition error.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoImport declaration of hidl_memory and hidl_vec.
jiseob.jang [Thu, 22 Mar 2018 11:25:21 +0000 (20:25 +0900)]
Import declaration of hidl_memory and hidl_vec.

This commit imports declaration of hidl_memory and hidl_vec.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoImplement Compiilation_setPreference
Hanjoung Lee [Thu, 22 Mar 2018 10:17:29 +0000 (19:17 +0900)]
Implement Compiilation_setPreference

Basically the same as android NN implementation.
One global constant defined from Utils.h but it is temporarily defined by
the method until we import that file.

6 years agoExtract eigen3.cmake from external/CMakeLists.txt
Jonghyun Park [Thu, 22 Mar 2018 06:26:47 +0000 (15:26 +0900)]
Extract eigen3.cmake from external/CMakeLists.txt

This commit extracts Eigen-related commands from external/CMakeLists.txt
to simplify external/CMakeLists.txt.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoImplement Compilation_create()
Hanjoung Lee [Thu, 22 Mar 2018 10:03:33 +0000 (19:03 +0900)]
Implement Compilation_create()

Same implementation with Android NN

6 years agoImplement Compilation_finish()
Hanjoung Lee [Thu, 22 Mar 2018 07:30:39 +0000 (16:30 +0900)]
Implement Compilation_finish()

Compilation_finish is almost same as original code but without ExecutionPlan.

6 years agoBuild arm_compute_graph library (#151)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 22 Mar 2018 10:04:25 +0000 (19:04 +0900)]
Build arm_compute_graph library (#151)

This commit allows folks to build libarm_compute_graph.so with CMake.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce VLOG implemented by LOG
sjsujinkim [Thu, 22 Mar 2018 09:33:45 +0000 (18:33 +0900)]
Introduce VLOG implemented by LOG

This commit introduces VLOG implemented by LOG for using in ModelBuilder/CpuExecutor

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoImplement Compilation_free()
Hanjoung Lee [Thu, 22 Mar 2018 08:28:42 +0000 (17:28 +0900)]
Implement Compilation_free()

6 years agoUpdate README.md for reference NN runtime
Hyung-Kyu Choi [Thu, 22 Mar 2018 05:04:46 +0000 (14:04 +0900)]
Update README.md for reference NN runtime

- Remove ambigous word `Design` from tile ofsecond chapter
- Add two comment styles for convenience

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoImplement Model_free() (#159)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Mar 2018 09:36:22 +0000 (18:36 +0900)]
Implement Model_free() (#159)

This commit implements Model_free()

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoEnable ModelBuilder::createCompilation (#156)
이한종/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Mar 2018 09:34:28 +0000 (18:34 +0900)]
Enable ModelBuilder::createCompilation (#156)

Now that CompilationBuilder is available we can enable it.

6 years agoAdd simple macro for LOG (#154)
김수진/동작제어Lab(SR)/Engineer/삼성전자 [Thu, 22 Mar 2018 09:32:20 +0000 (18:32 +0900)]
Add simple macro for LOG (#154)

* Add simple macro for LOG

This commit adds simple macro for exist android LOG codes.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Move include folder

6 years agoAdd skeleton of CpuExecutor (#136)
최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 22 Mar 2018 09:32:02 +0000 (18:32 +0900)]
Add skeleton of CpuExecutor (#136)

* Add skeleton of CpuExecutor

- Copy CpuExecutor.h and CpuExecutor.cpp from Android NN
- And comment out implementation which we don't support now

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
* Apply new comment style for reference NN runtime

- Apply new comment style for reference NN runtime

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoSeparate ACL build target (#142)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Thu, 22 Mar 2018 05:12:24 +0000 (14:12 +0900)]
Separate ACL build target (#142)

* Separate ACL build target

This will separate ACL build to a target in the Makefile
- ACL mostly will be reused after a single build
- Only dependency check in scons takses several seconds
- This will speed up for arm cross build

* use lib

6 years agoApply review feedback
Hyung-Kyu Choi [Thu, 22 Mar 2018 01:09:49 +0000 (10:09 +0900)]
Apply review feedback

- Apply review feedback on README.md

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoAdd description of a reference NN runtime
Hyung-Kyu Choi [Wed, 21 Mar 2018 00:35:24 +0000 (09:35 +0900)]
Add description of a reference NN runtime

- Add description and reasonings of a reference NN runtime

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoUpdate README.md of reference runtime
Hyung-Kyu Choi [Tue, 20 Mar 2018 13:37:26 +0000 (22:37 +0900)]
Update README.md of reference runtime

- Add design philosophies of reference runtime

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoBuild Modelbuilder
sjsujinkim [Thu, 22 Mar 2018 01:36:37 +0000 (10:36 +0900)]
Build Modelbuilder

This commit adds the Modelbuilder.cpp file to CMakeList for building.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years agoMake NN API methods return enum value for error
Hanjoung Lee [Wed, 21 Mar 2018 07:41:33 +0000 (16:41 +0900)]
Make NN API methods return enum value for error

Rather than return magic number 0.

6 years agoSupport ACL build without scon (#132)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 22 Mar 2018 01:56:09 +0000 (10:56 +0900)]
Support ACL build without scon (#132)

* Support ACL build without scon

This commit updates CMakeLists.txt to support ACL build without scon.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd CompilationBuilder skeleton
Hanjoung Lee [Wed, 21 Mar 2018 10:51:58 +0000 (19:51 +0900)]
Add CompilationBuilder skeleton

Get CompilationBuilder source from Android NN but implementation commented out

6 years agoAdd bindacl project to use ACL from NNAPI (#114)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 21 Mar 2018 23:32:41 +0000 (08:32 +0900)]
Add bindacl project to use ACL from NNAPI (#114)

This will introduce bindacl project to enable binding of ACL from NNAPI
This patch is a copy of logging without logging and does not include ACL for staring point

6 years agoRemove original codes
sjsujinkim [Wed, 21 Mar 2018 08:00:45 +0000 (17:00 +0900)]
Remove original codes

6 years agoImplement ANeuralNetworksModel_create
sjsujinkim [Wed, 21 Mar 2018 07:42:44 +0000 (16:42 +0900)]
Implement ANeuralNetworksModel_create

This commit implements ANeuralNetworksModel_create and adds skeletons of ModelBuilder.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
6 years ago[acl] add .gitignore (#110)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Wed, 21 Mar 2018 11:16:48 +0000 (20:16 +0900)]
[acl] add .gitignore (#110)

This will add .gitignore for acl temporary files to make development happy