Closed PennySHE closed 6 years ago
TFLITE does not support GPU.
@lee-bin , thanks so much for the comment. I have some questions on TFLITE.
@lee-bin , does mobile-ai-bench support androidNN API ?
No, and it's not for Mobile AI Bench to support.
thanks. Sorry for making the misunderstanding Let met change another words to ask my question. I have my android device NNAPI implemented and it has ML-HAL to enable hardware acceleration. In the current version of mobile-ai-bench meassurement, does it support "use AndriodNN" on benchmarking?
TFLITE has the interface to set NNAPI: https://github.com/XiaoMi/mobile-ai-bench/blob/master/aibench/executors/tflite/tflite_executor.cc#L41 For MACE/NCNN/SNPE, it does not support Android NNAPI.
@lydoc @lee-bin , thanks so so much for all your answers
adbd is already running as root remount succeeded 710000000 Push third_party/tflite/tensorflow/contrib/lite/lib/arm64-v8a/libtensorflowLite.so to /data/local/tmp/aibench Equal checksum with output/inception_v3.tflite and /data/local/tmp/aibench/inception_v3.tflite Equal checksum with output/mobilenet_quant_v1_224.tflite and /data/local/tmp/aibench/mobilenet_quant_v1_224.tflite Equal checksum with output/mobilenet_v1_1.0_224.tflite and /data/local/tmp/aibench/mobilenet_v1_1.0_224.tflite Push bazel-bin/aibench/benchmark/model_benchmark to /data/local/tmp/aibench Run /data/local/tmp/aibench/model_benchmark ('TFLITE', 'CPU', 'MobileNetV1') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) sleep 10 benchmarking: MobileNetV1,3,0 benchmark: MobileNetV1,3,0,8.184,52.478 ('TFLITE', 'CPU', 'MobileNetV2') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'CPU', 'SqueezeNetV11') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'CPU', 'InceptionV3') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) sleep 10 benchmarking: InceptionV3,3,0 benchmark: InceptionV3,3,0,9.005,491.866 ('TFLITE', 'CPU', 'VGG16') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'GPU', 'MobileNetV1') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'GPU', 'MobileNetV2') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'GPU', 'SqueezeNetV11') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'GPU', 'InceptionV3') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring) ('TFLITE', 'GPU', 'VGG16') WARNING: linker: Warning: "/data/local/tmp/aibench/model_benchmark" unused DT entry: DT_RPATH (type 0xf arg 0xea3) (ignoring)