运行 python3 tflrt_delegate.py -c 脚本默认编译tflite格式文件,脚本里对应部分如下:
if args.disable_offload :
interpreter = tflite.Interpreter(model_path=config['model_path'], num_threads=2)
elif args.compile:
interpreter = tflite.Interpreter(model_path=config['model_path'], \
experimental_delegates=[tflite.load_delegate(os.path.join(tidl_tools_path, 'tidl_model_import_tflite.so'), delegate_options)])
else:
interpreter = tflite.Interpreter(model_path=config['model_path'], \
experimental_delegates=[tflite.load_delegate('libtidl_tfl_delegate.so', delegate_options)])
请问如何编译自己的onnx格式模型?