I can now run cpu and npu simultaneously using tvmc.
The instruction is as follows:
python3 -m tvm.driver.tvmc compile --target="ethos-n -variant=n78 -tops=4 -ple_ratio=4, llvm" --input-shapes "input:[1,224,224,3]" --output mobilenet.tar mobilenetv2_quantized_v2_224_100.tflite
python3 -m tvm.driver.tvmc run --inputs image.npz --output prediction.npz mobilenet.tar
I want to add opencl as my third target but failed.
The code is as follows:
python3 -m tvm.driver.tvmc compile --target="ethos-n -variant=n78 -tops=4 -ple_ratio=4, opencl, llvm" --input-shapes "input:[1,224,224,3]" --output mobilenet.tar mobilenetv2_quantized_v2_224_100.tflite
python3 -m tvm.driver.tvmc run --inputs image.npz --output prediction.npz mobilenet.tar
The Error Message is as follows:
How should I modify my code to run with cpu+opencl+npu?