aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2022-06-22 11:30:23 -0700
committerEric Kunze <eric.kunze@arm.com>2022-08-22 22:59:54 +0000
commit286f834ce60e4ebcaaf131cb7da97ebf79098fa0 (patch)
tree83baf6a241912f980a0b1b311726fb5f7c97ac1e /README.md
parent3c59d5d2b4c20ec64daff76fd04a374c5a5055e0 (diff)
downloadreference_model-286f834ce60e4ebcaaf131cb7da97ebf79098fa0.tar.gz
Simplify the argument parsing and debug code
Change-Id: Ia681aa0eb1d42fa31a4658badb376f7b32b2e338 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index bbc8ad3..88aeaf2 100644
--- a/README.md
+++ b/README.md
@@ -121,22 +121,22 @@ The JSON test descriptor must have the following field:
Note by default, all the files specified by "tosa_file", "ifm_file",
"ofm_file" are relative to desc.json. This could be overwritten by
--Cflatbuffer_dir=, if desired.
+--flatbuffer_dir=, if desired.
An example command is shown below:
``` bash
./build/reference_model/tosa_reference_model \
- -Ctest_desc=examples/test_add_1x4x4x4_f32/flatbuffer-tflite/desc.json
+ --test_desc=examples/test_add_1x4x4x4_f32/flatbuffer-tflite/desc.json
```
Instead of drive model by JSON test descriptor, user can also drive model
-with -Ctosa_file=, -Cifm_name=, -Cifm_file=, -Cofm_name=, -Cofm_file=
+with --tosa_file=, --ifm_name=, --ifm_file=, --ofm_name=, --ofm_file=
options directly.
-In case where -Ctest_desc= and other options are specified at the same time,
+In case where --test_desc= and other options are specified at the same time,
JSON test descriptor will be initialized first. All other options
-(-Ctosa_file=, -Cifm_name=, -Cifm_file=, -Cofm_name=, -Cofm_file=) will
+(--tosa_file=, --ifm_name=, --ifm_file=, --ofm_name=, --ofm_file=) will
overwrite whatever specified by JSON descriptor.
On a successful execution, the output tensors will be written in NumPy
@@ -145,16 +145,16 @@ format into output tensors specified by "ofm_file".
For example, you can generate new output .npy by:
``` bash
./build/reference_model/tosa_reference_model \
- -Ctest_desc=examples/test_add_1x4x4x4_f32/flatbuffer-tflite/desc.json
- -Cofm_file=out.npy
+ --test_desc=examples/test_add_1x4x4x4_f32/flatbuffer-tflite/desc.json
+ --ofm_file=out.npy
```
In this case, the "ofm_file" field in desc.json will be ignored, and the
-one specified by -Cofm_file= will be picked.
+one specified by --ofm_file= will be picked.
When using JSON-formatted FlatBuffers input (.json extension), the
FlatBuffers schema file from the TOSA Serialization library must be
-specified using -Coperator_fbs=. When using the binary FlatBuffers
+specified using --operator_fbs=. When using the binary FlatBuffers
format (.tosa), the schema is not necessary.
### Examples