summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2019-09-17[tflite2circle] Introduce tflite2circle (#7483)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자3-0/+129
It introduces `tflite2circle` tool. Its input is `tflite` and output is `circle`. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-09-05Update `tflite_convert.sh` script (#6869)이성재/On-Device Lab(SR)/Principal Engineer/삼성전자1-18/+24
- Change to use the 'tensorflow' module installed on the system by default. Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
2019-09-05Scripts to make nnpkg testsuite and test (#7199)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+22
- Introduce script to make nnpkg testsuite in CI build server - Introduce script to test nnpkg testsuite in xu4 farm Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-08-29[nnpkg_tool] Revise nnpkg_test and model2nnpkg for readable log (#7028)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자2-9/+22
`nnpkg_test` - distinguish the run and compare result. - shows the errors after a blank line. - does not use `set -e` to continue after error for pretty printing. `model2nnpkg` - It becmome less noisy. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-29[nnpkg_tool] Introduce nncc-tc-to-nnpkg-tc (#7005)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+110
Introduce tool for converting nncc testcase to nnpkg testcase. Please read README.md for usage. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-29[nnpkg_tool] Introduce nnpkg_test.sh (#7020)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+150
Introduce a tool for running an nnpackage testcase. It will run nnpackage with nnpackage_run, and compare the result. For usage, find README.md. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-29Introduce model2nnpackage (#6976)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+92
This patch introduces model2nnpackage. It will take model file (either circle or tflite) and generate containing nnpackage. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-27Introduce nnpackage_tool directory (#6933)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+0
I would like to put all nnpackage-related tools under one directory. Thus, I introduce `tools/nnpackage_tool` and move `nnpackager` into it. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-23[neurun] Update ACL version for Android RootFS (#6877)이한종/On-Device Lab(SR)/Engineer/삼성전자1-1/+1
Update ACL version for Android RootFS - v18.03 to v19.05 Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
2019-08-22[nnpkg_run] prepare hdf5 for arm (#6677)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+4
- Install hdf5f and dependent libraries on arm rootfs - Update CMakeLists.txt - Create HDF5Config.cmake - Update nnpackage_run's dump with dummy hdf5 creating code. - To test whether hdf5 works. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-09Update `freeze_graph.sh` script (#6345)이성재/On-Device Lab(SR)/Principal Engineer/삼성전자1-13/+13
* Change to use the 'tensorflow' module installed on the system by default. Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
2019-08-08Fix converting type of zero point in select_operator.py (#6353)장지섭/On-Device Lab(SR)/Engineer/삼성전자1-1/+1
This commit fixes converting type of zero point in select_operator.py. Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
2019-08-07[nnpackage] nnpackager -c will create compressed nnpackage (#6278)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-1/+18
Use "nnpackage -c path_to_nnpackage_root" to get compressed nnpackage. Also it removed redundant parenthesis in if condition. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-06nnpackager will verify when verify option is given (#6276)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-2/+3
nnpackger always verified. Now, it verifies if verify is given. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-05[nnpackage] Introduce nnpackager (#6145)이상규/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+47
This PR introduces nnpackager, which provides verify function only. It checks: - the existence of nnpackager root directory - the existence of MANIFEST - the validity of json format - the existence of models file Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2019-08-05Update scheduled deprecated API. (#6163)이성재/On-Device Lab(SR)/Principal Engineer/삼성전자1-2/+1
* Change old API `gfile.FastGFile` to `tf.gfile.GFile` Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
2019-07-17Fix pointless string warning in operation.py (#5672)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-5/+3
Pylint warning: pointless-string-statement Change to comment Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-17[model parser] Fix operation.py (#5626)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-14/+8
Change to instance method in _OperationComputeMethod class Not working now because static method don't have "__name__" field Change operation comment Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-16Fix pylint warning in tf model freezer (#5632)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자14-33/+31
Fix pylint warning by - Pointless string (for comment): change to comment - Bad super parameter: change old style self.__class__ to classname itself Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-15Upgrade to tensorflow v1.13.1 (#5590)이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자62-123/+123
* Upgrade to tensorflow v1.13.1 - update link to v1.13.1 - tensorflow/contribe/lite to tensorflow/lite - TFLITE_MINOR_VER to 13 Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com> * upgrade absl to 389ec3f90 * add custom for SquaredDifference * Fix x64 build error(Eigen) - update eigen version to 88fc23324517 * fix wrong comment : lite -> contrib/lite
2019-07-15[model parser] Update to support model using tensorflow 1.13.1 (#5625)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자21-14/+566
Update generated API files from schma.fbs in tensorflow 1.13.1 Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-15[kbenchmark] rename acl kernel directory (#5570)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자7-12/+15
* [kbenchmark] rename acl kernel directory armcl to acl_cl armne to acl_neon Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> * Change the include directory path * Do not print psABI warnings
2019-07-15Fix pylint warning in image importer (#5631)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-2/+2
Fix pylint warning for print syntax in image importer Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-15Fix pylint warning in weight extract tool (#5629)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자2-11/+12
Fix pylint warning for print syntax in weight extract tool Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-12Fix pylint warning in summarize pb file tool (#5630)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-1/+1
Fix pylint warning (anomalous backslash) in summarize pb file tool by attaching "r" prefix Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-11Fix pylint warning in tflitefile_tool (#5606)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-5/+9
Fix pylint warning in tflitefile_tool - "dummy_" prefix for unused variable - staticmethod keyword for static method - Use sharp for comment instead of triple quote Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-09Move lcov-to-cobertura-xml script (#5580)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자3-0/+419
Move externals/lcov-to-cobertura-xml directory to tools/ Remove external tool dependency in gen-coverage-report command Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-08Remove CMAKE_SOURCE_DIR in cmake script (#5576)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-2/+2
- Change CMAKE_SOURCE_DIR/externals to NNFW_EXTERNALS_DIR - Remove some target_include_directories using CMAKE_SOURCE_DIR: because of linked libraries already include with PUBLIC Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-07-04[kbenchmark] Add TransposeConv kernel (#5546)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자8-2/+870
This patch adds acl cl and neon TransposeConv kernel test sets. It also tests CLDeconvolutionLayerEx. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-07-02[kbenchmark] Update summary view of html file (#5519)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자3-3/+5
* [kbenchmark] Update summary view of html file This patch generates a summary view of html file. This will help you to see at a glance which graph shows which kernel performs well in the current layer. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> * Change the location of the html_report_template.g.h++ that needs copy to cmake/packages/Nonius directory
2019-07-01[kbenchmark] Separate the result file if it is not html reporter type (#5361)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+8
This patch separates the result files if it is not html reporter type. Becuase other reporters store only one test result in one file. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-06-26[kbenchmark] Add filter option (#5360)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자3-1/+8
This option allows to run benchmark whose name matches the regex. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-06-25[kbenchmark] Add operation class for loading operation info (#5359)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자7-3/+277
This patch loads operation informations from config file. And it executes kernel benchmark test using the operation info. The result is stored by default in text file. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-06-10[kbenchmark] Add Config parser (#5354)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자2-0/+140
This patch parses the given configuration file. Each layer is tested in a given set of kernel benchmark tests. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-06-05[kbenchmark] Loads kernel benchmark library and adds some draft conv test ↵윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자8-0/+1102
kernels (#5346) This patch loads kernel benchmark library using dynamic loader. It also adds the draft test conv kernel for armcl and armne. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-06-04[kbenchmark] Add argument parser (#5336)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자5-0/+233
This patch adds argument parsers for kbenchmark tool. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-06-03Create kbenchmark in tools directory (#5333)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자2-0/+63
This patch creates kbenchmark directory. It is an initial commit for kbenchmark. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-05-27[tflitefile_tool] Fix depthwise typo in config_saver (#5281)윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자1-1/+1
This patch fixes the depthwise typo in config_saver Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-05-09[tflitefile_tool] Add config option for benchmark tool to save model config ↵윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자5-22/+215
file (#5145) * [tflitefile_tool] Add config option for benchmark tool This patch adds the `-c` and `--config` options. This option will print the configuration information of each operator. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> * Save configuration file This patch allows to save the configuration info about model Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2019-04-23Introduce build option for tflite accuracy tool (#5048)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+4
Introduce build option for tflite accuracy tool and set off as default Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-04-23[batch_run] A batch execution tool used to run experiments (#4507)Saulo Aldighieri Moraes/AI R&D /SRBR/Engineer/삼성전자4-0/+1563
* Related: #4405 The batch execution tool can be used to run experiments. It reads a neural network model from a file and a series of input images from a directory, runs each image through the network, and collect statistics, such as execution time and accuracy. Signed-off-by: Saulo A. Moraes <s.moraes@samsung.com> * Remove boost_ext reference Build script cleanup, remove unnecessary reference to boost_ext. Signed-off-by: Saulo A. Moraes <s.moraes@samsung.com> * Related: #4405 Code review fixes and tool rename from batch_run to tflite_accuracy. Signed-off-by: Saulo A. Moraes <s.moraes@samsung.com>
2019-04-19Add printing info for filled memory in model_parser (#5028)김용섭/On-Device Lab(SR)/Engineer/삼성전자1-2/+5
* Add printing info for filled memory in model_parser Add printing info for filled memory such as weight in model_parser Signed-off-by: Yongseop Kim <yons.kim@samsung.com> * fix failed format-check
2019-03-21[Tools] tool to convert pb file (binary) to pbtxt file (text) (#4788)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+54
* [Tools] Convert pb file to pbtxt file This tool converts frozen pb file in tensorflow to pbtxt text file. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com> * remove common.py * remove underbar from parameter
2019-03-18Check format all files as default (#4775)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+0
Check format all c and c++ files as default Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2019-03-13Use add_subdirectories for contrib and tools (#4708)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-2/+1
This commit simplifies "contrib/CMakeLists.txt" and "tools/CMakeLists.txt" using "add_subdirectories" function. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-03-11Introduce BUILD_TOOLS options (#4654)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-2/+2
This commit introduces BUILD_TOOLS option and partially removes the the occurence of OBS_BUILD in CMakeLists.txt by using this BUILD_TOOLS option. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-02-12Modified for Tensorflow 1.12 (#4378)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-14/+11
* Modified for Tensorflow 1.12 Fixed error while converting pb to tflite by applying changes in Tensorflow 1.12. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com> * Modified to a TF 1.12 term "Tensorflow Lite Converter"
2019-01-11Synch tools/nnapi_quickcheck with current changes (#4197)Дилшоджон Умронхонович Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자60-437/+437
Since we don't build tools/nnapi_quickcheck, it's far behind from current state. So, this change updates all files of this dir to be able to build and run them Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
2019-01-03Update cmake for revised directory structure (#4143)오형석/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+4
Update cmake for android and gbs build for revised directory structure Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
2018-12-17Move test-related codes in tools into tests (#4058)오형석/동작제어Lab(SR)/Staff Engineer/삼성전자23-2299/+0
Move test-related codes in tools into tests - nnapi_test - tflite_run - tflite_benchmark - tflite_benchmark_model Update cmake, root makefile, and spec file Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>