$ ck compile program:image-classification-armnn-tflite
$ ck compile program:image-classification-armnn-tflite --env.USE_NEON
$ ck compile program:image-classification-armnn-tflite --env.USE_OPENCL
$ ck compile program:image-classification-armnn-tflite --env.USE_NEON --env.USE_OPENCL
NB: Must use the same backend options as for compilation.
$ ck run program:image-classification-armnn-tflite \
--env.CK_BATCH_COUNT=5 \
--env.USE_NEON
where:
- CK_BATCH_COUNT
- the number of batches to evaluate (1 by default).
- USE_NEON
- enable CPU acceleration (false by default).
- USE_OPENCL
- enable GPU acceleration (false by default).
NB: Similar instructions are used to benchmark program:image-classification-tflite
.
$ ck benchmark program:image-classification-armnn-tflite --env.USE_NEON=1 \
--repetitions=10 --env.CK_BATCH_SIZE=1 --env.CK_BATCH_COUNT=1 \
--record --record_repo=local --record_uoa=mlperf-mobilenet-v1-1.00-224-armnn-tflite-performance-neon \
--tags=mlperf,image-classification,mobilenet-v1-1.0-224,armnn-tflite,performance,neon \
--skip_print_timers --skip_stat_analysis --process_multi_keys
$ ck benchmark program:image-classification-armnn-tflite --env.USE_NEON=1 \
--repetitions=1 --env.CK_BATCH_SIZE=1 --env.CK_BATCH_COUNT=500 \
--record --record_repo=local --record_uoa=mlperf-mobilenet-v1-1.00-224-armnn-tflite-accuracy-neon \
--tags=mlperf,image-classification,mobilenet-v1-1.0-224,armnn-tflite,accuracy,neon \
--skip_print_timers --skip_stat_analysis --process_multi_keys