onnx-opcounter icon indicating copy to clipboard operation
onnx-opcounter copied to clipboard

Value error: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled

Open Apisteftos opened this issue 1 year ago • 0 comments

Hello I inferenced the model Faster R-CNN from model Zoo ONNX and an error occurs during the caclulate_macs:


raise ValueError(
ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...) 

Should I estimate the macs during the inference? How is supposed to do that?

Apisteftos avatar Jul 19 '23 22:07 Apisteftos