microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.8k stars 2.94k forks source link

ResNet-50 has unsupported operations with OpenVino #2994

Closed ggeor84 closed 4 years ago

ggeor84 commented 4 years ago

Describe the bug When attempting to run ResNet-50 with OpenVino as an Execution Provider, I get the following message:

2020-02-07 16:28:06.147212540 [W:onnxruntime:Default, openvino_execution_provider.cc:546 GetCapability] [OpenVINO-EP] Rejecting as graph has unsupported operations.Operation is not supported by OpenVINO

Instead it reverts back to CPU

Urgency None

System information

To Reproduce Describe steps/code to reproduce the behavior: Model was downloaded from mlperf, https://github.com/mlperf/inference/tree/master/v0.5/classification_and_detection https://zenodo.org/record/2592612/files/resnet50_v1.onnx

I am running their tool to time the model

Expected behavior A clear and concise description of what you expected to happen. I am expecting ResNet-50 to run using OpenVino

jywu-msft commented 4 years ago

@smkarlap @suryasidd , is this a known issue?

suryasidd commented 4 years ago

There are some operations that are not supported by OpenVINO EP right now in this model like Argmax, ReduceMean and Squeeze. That's the reason it's falling back to the default CPU. However, OpenVINO EP can run the resnet50v1 model from onnx model zoo. https://github.com/onnx/models/tree/master/vision/classification/resnet

ggeor84 commented 4 years ago

@suryasidd Thanks for the quick response. Are there any current plans to expand the op coverage to include these?

suryasidd commented 4 years ago

We are working on adding new ops in the next release coming soon. Will let you know once its out.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

stale[bot] commented 4 years ago

This issue has been automatically closed due to inactivity. Please reactivate if further support is needed.