From 7acd5968b3f22237440e7ea530849079c3d67281 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=EC=84=B1=EC=A7=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Principal=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 19 Jul 2018 14:46:26 +0900 Subject: [PATCH] Add pre-action description to nnkit README (#718) This commit adds pre-action description to nnkit README Signed-off-by: lotieye.choi --- contrib/nnkit/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/contrib/nnkit/README.md b/contrib/nnkit/README.md index be72e91..3b26db1 100644 --- a/contrib/nnkit/README.md +++ b/contrib/nnkit/README.md @@ -87,7 +87,7 @@ contrib/nnkit/tools/nni/nni \ You can download `inceptionv3_non_slim_2015.tflite` model from [here](https://storage.googleapis.com/download.tensorflow.org/models/tflite/inception_v3_2015_2017_11_10.zip) -## Running with post action +## Running with pre & post actions The above command shows nothing except `nnapi error: unable to open library libneuralnetworks.so` warning even though running correctly. The following command displays inferenced values. ``` @@ -99,6 +99,15 @@ contrib/nnkit/tools/nni/nni \ --post ./contrib/nnkit/actions/builtin/libnnkit_show_action.so ``` +The following command initializes input tensors with random values generated by `RandomizeAction` pre-action. +``` +contrib/nnkit/tools/nni/nni \ +--backend ./contrib/nnkit/backends/tflite/libnnkit_tflite_backend.so \ +--backend-arg inceptionv3_non_slim_2015.tflite \ +--pre ./contrib/nnkit/actions/builtin/libnnkit_randomize_action.so \ +--post ./contrib/nnkit/actions/builtin/libnnkit_show_action.so +``` + ## Dump HDF5 You can drop a HDF5 file of inputs and outputs with `HDF5_export_action` action module. -- 2.7.4