Part Number: AM67A
We are using edgeai-tidl-tools rel_11_01. During compilation testing, we ran the official example without making any modifications. However, when executing:
python3 onnxrt_ep.py -c
the following error occurred:
Skipping import of model optimizer
Available execution providers : ['CPUExecutionProvider']
Running 2 Models - ['cl-ort-resnet18-v1', 'od-ort-ssd-lite_mobilenetv2_fpn']
Running_Model : cl-ort-resnet18-v1
Running_Model : od-ort-ssd-lite_mobilenetv2_fpn
Running shape inference on model ../../../models/public/resnet18_opset9.onnx
Running shape inference on model ../../../models/public/ssd-lite_mobilenetv2_fpn.onnx
/home/xt/python310/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:65: UserWarning: Specified provider 'TIDLCompilationProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'
warnings.warn(
EP Error Unknown Provider Type: TIDLCompilationProvider when using ['TIDLCompilationProvider', 'CPUExecutionProvider']
Falling back to ['CPUExecutionProvider'] and retrying.
/home/xt/python310/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:65: UserWarning: Specified provider 'TIDLCompilationProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'
warnings.warn(
EP Error Unknown Provider Type: TIDLCompilationProvider when using ['TIDLCompilationProvider', 'CPUExecutionProvider']
Falling back to ['CPUExecutionProvider'] and retrying.
Process Process-2:
Traceback (most recent call last):
File "/home/xt/python310/lib/python3.10/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/xt/python310/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/xt/ALG/CMS/edgeai-tidl-tools-rel_11_01/examples/osrt_python/ort/onnxrt_ep.py", line 402, in run_model
imgs, output, proc_time, sub_graph_time, ddr_bw, height, width = infer_image(sess, input_images, config)
File "/home/xt/ALG/CMS/edgeai-tidl-tools-rel_11_01/examples/osrt_python/ort/onnxrt_ep.py", line 219, in infer_image
copy_time, sub_graphs_proc_time, totaltime, ddr_bw = get_benchmark_output(sess)
File "/home/xt/ALG/CMS/edgeai-tidl-tools-rel_11_01/examples/osrt_python/ort/onnxrt_ep.py", line 129, in get_benchmark_output
benchmark_dict = interpreter.get_TI_benchmark_data()
AttributeError: 'InferenceSession' object has no attribute 'get_TI_benchmark_data'
Process Process-1:
Traceback (most recent call last):
File "/home/xt/python310/lib/python3.10/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/xt/python310/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/xt/ALG/CMS/edgeai-tidl-tools-rel_11_01/examples/osrt_python/ort/onnxrt_ep.py", line 402, in run_model
imgs, output, proc_time, sub_graph_time, ddr_bw, height, width = infer_image(sess, input_images, config)
File "/home/xt/ALG/CMS/edgeai-tidl-tools-rel_11_01/examples/osrt_python/ort/onnxrt_ep.py", line 219, in infer_image
copy_time, sub_graphs_proc_time, totaltime, ddr_bw = get_benchmark_output(sess)
File "/home/xt/ALG/CMS/edgeai-tidl-tools-rel_11_01/examples/osrt_python/ort/onnxrt_ep.py", line 129, in get_benchmark_output
benchmark_dict = interpreter.get_TI_benchmark_data()
AttributeError: 'InferenceSession' object has no attribute 'get_TI_benchmark_data'
We have not modified any of the official source code. Could you help analyze the issue and identify the possible root cause?