onnx-docker
onnx-docker copied to clipboard
Modify example code to reflect coming InferenceSession API provider behavior change
The next release (ORT 1.10) Users must explicitly set the providers for python InferenceSession() api. if they want to use execution providers other than the default CPU provider. Therefore, modify the example in order to avoid getting the deprecation warning and let user know the correct way to use it.
Please see the PR of adding deprecation warning. microsoft/onnxruntime#8906