platform/core/ml/nnfw.git
6 years agoremove dependencies related to logging.
jiseob.jang [Thu, 1 Feb 2018 05:39:40 +0000 (14:39 +0900)]
remove dependencies related to logging.

This dependencies are not completely removed.
Ultimately it should be replaced by logging system in Tizen.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoremove depended on CallStack
jiseob.jang [Thu, 1 Feb 2018 05:32:41 +0000 (14:32 +0900)]
remove depended on CallStack

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoremove depended on android/dlext.h.
jiseob.jang [Thu, 1 Feb 2018 05:26:09 +0000 (14:26 +0900)]
remove depended on android/dlext.h.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoadded cmake files to build in tizen and source files of dependent libraries.
jiseob.jang [Thu, 1 Feb 2018 04:20:10 +0000 (13:20 +0900)]
added cmake files to build in tizen and source files of dependent libraries.

nn/depend/hal : Sources of hal interfaces for nn
nn/depend/android-base : Base sources of system core in android
nn/depend/liblog : Some sources of system core for logging in android
nn/depend/libsystem : Some source of a library for system core in android
nn/depend/libvndksupport : Some source of a library to supported vendor of device
nn/depend/external : Some sources of some external libraries used by android
nn/depend/libhidl : Some sources of the HIDL library in android
nn/depend/libhwbinder : Some sources of a library for binder IPC in android
nn/depend/libc : Some C sources of android bionic
nn/depend/libcutil : Some sources of a C library for utilities
nn/depend/libutil : Some sources of a C++ library for Utilities

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
6 years agoMerge commit '11b57bfbc908c6620123aafb6b874f0ee6e0f57d' as 'experiments/android_nn'
jiseob.jang [Tue, 20 Mar 2018 08:39:26 +0000 (17:39 +0900)]
Merge commit '11b57bfbc908c6620123aafb6b874f0ee6e0f57d' as 'experiments/android_nn'

6 years agoSquashed 'experiments/android_nn/' content from commit d1ca7d8
jiseob.jang [Tue, 20 Mar 2018 08:39:26 +0000 (17:39 +0900)]
Squashed 'experiments/android_nn/' content from commit d1ca7d8

git-subtree-dir: experiments/android_nn
git-subtree-split: d1ca7d857759855a2c5a98d63af0404bba549361

6 years agoIntroduce CROSS_BUILD to Makefile (#89)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 20 Mar 2018 04:03:33 +0000 (13:03 +0900)]
Introduce CROSS_BUILD to Makefile (#89)

This will add CROSS_BUILD variable to explictly set a cross building to give CMAKE_TOOLCHAIN_FILE to cmake or not.

6 years agoSimplify cmake config folder (#88)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 20 Mar 2018 01:40:12 +0000 (10:40 +0900)]
Simplify cmake config folder (#88)

This will move cmake config files to config folder like option files are placed in option folder

6 years agoChange cmake option to be form of arch-os (#85)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 20 Mar 2018 00:45:53 +0000 (09:45 +0900)]
Change cmake option to be form of arch-os (#85)

This will rename cmake option files to form of arch-os so to support Tizen

6 years agoAdd cmake native/cross build flag (#83)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 20 Mar 2018 00:44:29 +0000 (09:44 +0900)]
Add cmake native/cross build flag (#83)

This will add a flag to determine native or cross build
And with this flag this patch will fix build for protobuf and graphdef

6 years agoFix build problem with protoc (#66)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 19 Mar 2018 07:47:04 +0000 (16:47 +0900)]
Fix build problem with protoc (#66)

* Fix build problem with protoc

This will fix arm cross build problem with protoc that may not be needed in target device

* add protobuf_BUILD_TESTS inside if clause

6 years agoAdd boost to arm rootfs (#65)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 19 Mar 2018 07:46:16 +0000 (16:46 +0900)]
Add boost to arm rootfs (#65)

This will add boost library to arm rootfs build script

6 years agoSupport basic benchmark (tflite_run) (#52)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Fri, 16 Mar 2018 09:41:21 +0000 (18:41 +0900)]
Support basic benchmark (tflite_run) (#52)

This commit revises tflite_run to show elapsed time on prepare and
invoke step.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoImport ARM Compute Library (v17.12) (#59)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Tue, 13 Mar 2018 08:19:35 +0000 (17:19 +0900)]
Import ARM Compute Library (v17.12) (#59)

This commit imports ARM Compute Library (v17.12) source tree as an
external dependency.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd eigen3 library (#53)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 12 Mar 2018 08:42:28 +0000 (17:42 +0900)]
Add eigen3 library (#53)

This commit addes eigen3 as a CMake target, which allows us to easily
use eigen3 in our internal implementation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoFix bugs in encode.sh and decode.sh
Jonghyun Park [Thu, 8 Mar 2018 08:04:04 +0000 (17:04 +0900)]
Fix bugs in encode.sh and decode.sh

This commit fixes the following bugs in encode.sh and decode.sh:
 - The use of BASH-extended syntax with /bin/sh
 - The use of relative path in protoc input

It seems that latest protoc recognizes relative path, but this commit
revises scripts to use absolute path to improve compatibility.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoBuild tensorflow_graphdef by default
Jonghyun Park [Thu, 8 Mar 2018 01:59:55 +0000 (10:59 +0900)]
Build tensorflow_graphdef by default

This commit enables tensorflow_graphdef (and graphdump) build by
default (using protobuf in external).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoSimplify external/CMakeLists.txt (#44)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 8 Mar 2018 08:26:24 +0000 (17:26 +0900)]
Simplify external/CMakeLists.txt (#44)

This commit simplifies 'external/CMakeLists.txt' via replacing foreach
statement with list(REMOVE_ITEM ...) statement.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd Dockerfile (#48)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 8 Mar 2018 08:25:33 +0000 (17:25 +0900)]
Add Dockerfile (#48)

This commit adds 'Dockerfile' which allows users to build minimal
development environment easily.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoInclude protobuf (#46)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 8 Mar 2018 01:53:41 +0000 (10:53 +0900)]
Include protobuf (#46)

This commit imports protocol buffer 3.5.1 as an external dependency.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce graphdump tool (#43)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 8 Mar 2018 00:57:23 +0000 (09:57 +0900)]
Introduce graphdump tool (#43)

This commit introduces graphdump tool that shows the content of saved
models(.pb) in text.

Note that decode.sh under tools/graphdef already allows us to dump
the content of saved models, but this graphdump is introduced to test
tensorflow_graphdef library.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce run (#41)
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Thu, 8 Mar 2018 00:57:15 +0000 (09:57 +0900)]
Introduce run (#41)

This commit introduces 'run' script which will serve as an entry point
for various utility scripts.

This commit also introduces 'build' command as an example.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce libtensorflow_graphdef
Jonghyun Park [Tue, 6 Mar 2018 08:12:01 +0000 (17:12 +0900)]
Introduce libtensorflow_graphdef

This commit introduces tensorflow_graphdef library which allows us to access
saved tensorflow graph definition.

Note that this library is disabled by default.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoCMake variable: TARGET_ARCH (#40)
오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 [Wed, 7 Mar 2018 01:54:36 +0000 (10:54 +0900)]
CMake variable: TARGET_ARCH (#40)

* CMake variable: TARGET_ARCH

Define and use TARGET_ARCH in CMake
Remain HOST_ARCH for cross-architecture build and run (not used yet)

* Define TARGET_OS

Define TARGET_OS to avoid confusion about target environment

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoIntroduce (Dummy) Custom Operators
Jonghyun Park [Tue, 6 Mar 2018 01:33:00 +0000 (10:33 +0900)]
Introduce (Dummy) Custom Operators

This commit introduces dummy custom operators.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoCross compile variable: TARGET_ARCH
Hyeongseok Oh [Mon, 5 Mar 2018 09:52:54 +0000 (18:52 +0900)]
Cross compile variable: TARGET_ARCH

Change HOST_ARCH to TARGET_ARCH that set build target architecture to avoid confusion
Fix readme: BUILD_HOST -> HOST_ARCH -> TARGET_ARCH

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
6 years agoUpdate local cache server
SaeHie Park [Mon, 5 Mar 2018 07:56:11 +0000 (16:56 +0900)]
Update local cache server

Update local cache server for packages to build TF

6 years agoIntroduce TensorFlow model encode/decode
Jonghyun Park [Mon, 5 Mar 2018 00:39:37 +0000 (09:39 +0900)]
Introduce TensorFlow model encode/decode

This commit introduces TensorFlow model encode/decode script based on
protoc command.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years ago[tf] Add operator dump in toco (#30)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Mar 2018 02:31:04 +0000 (11:31 +0900)]
[tf] Add operator dump in toco (#30)

* [tf] Add operator dump in toco

This will dump operators in toco tool

* simplify for

6 years agoDocs add how to setup odroid xu3 link (#29)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 5 Mar 2018 02:30:40 +0000 (11:30 +0900)]
Docs add how to setup odroid xu3 link (#29)

* Docs add how to setup odroid xu3 link

This will add a link to how to setup odroid xu3 with ubuntu

* add space

* add xu3_ubunut.md

6 years agoAdd CI scripts
Junghyun Kim [Wed, 28 Feb 2018 06:15:41 +0000 (15:15 +0900)]
Add CI scripts

Currently, we use the docker image 'npu' which is used for NPU_Compiler.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoCorrect build tf from source doc
SaeHie Park [Wed, 28 Feb 2018 01:18:10 +0000 (10:18 +0900)]
Correct build tf from source doc

This will correct Build TF from source document to match package version file name

6 years agoAdd build TF from source document
SaeHie Park [Tue, 27 Feb 2018 08:33:07 +0000 (17:33 +0900)]
Add build TF from source document

This will add a document how to build TensorFlow and TOCO tool from source

6 years agoCorrect ubuntu release
SaeHie Park [Tue, 27 Feb 2018 08:11:32 +0000 (17:11 +0900)]
Correct ubuntu release

This will add trusty and remove wily, zesty as we work on 14.04:trusty and 16.04:xenial

6 years agoEnable cross build for arm (#20)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Tue, 27 Feb 2018 07:43:28 +0000 (16:43 +0900)]
Enable cross build for arm (#20)

* Enable cross build for arm

This will modify makefile to enable arm cross building
- use toolchain file for cpu architecutre
- use build path name with architecture and type(debug,release,etc)
- create existing build/install folder as an symbolic link not to alter current use case
- use cmake -B and -H option not to chdir into build folder
- update README.md file about how to cross build

* apply comments
* update readme
* fix input param

6 years ago[tf] Add local cache server for packages
SaeHie Park [Tue, 27 Feb 2018 05:06:51 +0000 (14:06 +0900)]
[tf] Add local cache server for packages

This will add local cache server for packages that fails download through our corporate proxy server
Server address may change when relocated to another place

6 years agoIntroduce cmake folder
SaeHie Park [Tue, 27 Feb 2018 00:35:48 +0000 (09:35 +0900)]
Introduce cmake folder

This will move cmake related files into cmake folder

6 years agoUpdate README.md
Jonghyun Park [Mon, 26 Feb 2018 11:00:50 +0000 (20:00 +0900)]
Update README.md

This commit updates README.md to guide how to download pre-built
TensorFlow Lite models that Google provides.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoFix cmake build (#16)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 11:00:51 +0000 (20:00 +0900)]
Fix cmake build (#16)

This will fix build failure of previous commit

6 years agoSupport multiple NN API bindings
Jonghyun Park [Mon, 26 Feb 2018 10:36:11 +0000 (19:36 +0900)]
Support multiple NN API bindings

This commit revises CMake script to support multiple NN API bindings.

To support multiple NN API bindings, CMake sciprt for simple logging NN API binding
is revised not to install libneuralnetworks.so into lib.

In addition, directory structres are revised.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd cmake config and options (#14)
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 10:46:54 +0000 (19:46 +0900)]
Add cmake config and options (#14)

* Add cmake config and options

This will add cmake config and options for multi-arch and cross building for arm
This will not affect current makefile build configuration

* platform to os

* fix for rootfs checking

* separate os and arch

* simplify folder

6 years agoUpdate README.md
Jonghyun Park [Mon, 26 Feb 2018 08:49:35 +0000 (17:49 +0900)]
Update README.md

This commit updates README.md to provide basic usage of this repo.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoMerge pull request #12 from seanshpark/vscode
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 08:50:16 +0000 (17:50 +0900)]
Merge pull request #12 from seanshpark/vscode

Update .gitignore for vscode

6 years agoUpdate .gitignore for vscode
SaeHie Park [Mon, 26 Feb 2018 08:37:53 +0000 (17:37 +0900)]
Update .gitignore for vscode

This will add vscode config folder to .gitignore

6 years agoMerge pull request #10 from seanshpark/rootfs
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 08:36:02 +0000 (17:36 +0900)]
Merge pull request #10 from seanshpark/rootfs

Add rootfs build script

6 years agoMerge pull request #11 from jh1302-park/fix/install_path
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 08:35:49 +0000 (17:35 +0900)]
Merge pull request #11 from jh1302-park/fix/install_path

Use absolute path for CMAKE_INSTALL_PREFIX

6 years agoUse absolute path for CMAKE_INSTALL_PREFIX
Jonghyun Park [Mon, 26 Feb 2018 08:31:51 +0000 (17:31 +0900)]
Use absolute path for CMAKE_INSTALL_PREFIX

Currently, Makefile uses relative path to set CMAKE_INSTALL_PREFIX, which
results in incorrect 'make install' behavior.

This commit revises Makefile to use absolute path when setting CMAKE_INSTALL_PREFIX
to prevent this incorrect behavior.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoAdd rootfs build script
SaeHie Park [Mon, 26 Feb 2018 08:28:29 +0000 (17:28 +0900)]
Add rootfs build script

This will add rootfs build script for ARM Ubuntu

6 years agoMerge pull request #9 from jh1302-park/fix/configure_if_not_exist
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 08:26:23 +0000 (17:26 +0900)]
Merge pull request #9 from jh1302-park/fix/configure_if_not_exist

Run configure before build

6 years agoRun configure before build
Jonghyun Park [Mon, 26 Feb 2018 08:21:22 +0000 (17:21 +0900)]
Run configure before build

This commit revises Makefile to run configure before build if
configuration does not exist.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoMerge pull request #7 from jh1302-park/fix/Makefile
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Feb 2018 08:18:19 +0000 (17:18 +0900)]
Merge pull request #7 from jh1302-park/fix/Makefile

Use Makefile to simplify CMake configuration

6 years agoMerge pull request #6 from jh1302-park/fix/nnapi_logging
박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 [Mon, 26 Feb 2018 08:18:11 +0000 (17:18 +0900)]
Merge pull request #6 from jh1302-park/fix/nnapi_logging

Introduce (Simple) NNAPI Implementation

6 years agoUse Makefile to simplify CMake configuration
Jonghyun Park [Mon, 26 Feb 2018 03:52:39 +0000 (12:52 +0900)]
Use Makefile to simplify CMake configuration

This commit introduces Makefile to simplify CMake configurations.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoIntroduce (Simple) NNAPI Implementation
Jonghyun Park [Mon, 26 Feb 2018 01:57:54 +0000 (10:57 +0900)]
Introduce (Simple) NNAPI Implementation

This commit introduces Android NN API header, and simple implementation
which just shows some logging messages on it (named nnapi_logging).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoMerge pull request #3 from jh1302-park/fix/install_path
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 01:32:22 +0000 (10:32 +0900)]
Merge pull request #3 from jh1302-park/fix/install_path

Fix installation path

6 years agoFix installation path
Jonghyun Park [Mon, 26 Feb 2018 01:19:58 +0000 (10:19 +0900)]
Fix installation path

This commit fixes incorrect installation path configuration to allow
local install via CMAKE_INSTALL_PREFIX option.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoMerge pull request #2 from jh1302-park/fix/support_basic_build
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Mon, 26 Feb 2018 01:14:10 +0000 (10:14 +0900)]
Merge pull request #2 from jh1302-park/fix/support_basic_build

Add TensorFlow Lite and simple runner

6 years agoAdd TensorFlow Lite and simple runner
Jonghyun Park [Mon, 26 Feb 2018 01:07:28 +0000 (10:07 +0900)]
Add TensorFlow Lite and simple runner

This commit imports TensorFlow Lite (along with its dependencies), and
introduces a simple runner.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
6 years agoInitial commit
박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 [Fri, 23 Feb 2018 06:15:50 +0000 (15:15 +0900)]
Initial commit