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

Modify example code to reflect coming InferenceSession API provider behavior change

Open chilo-ms opened this issue 4 years ago • 1 comments

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

chilo-ms avatar Sep 15 '21 00:09 chilo-ms

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 05 '21 21:10 CLAassistant