Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure log level for openvino execution provider? #137

Closed
jinmingyi1998 opened this issue Feb 16, 2022 · 4 comments
Closed

How to configure log level for openvino execution provider? #137

jinmingyi1998 opened this issue Feb 16, 2022 · 4 comments

Comments

@jinmingyi1998
Copy link

How to configure log level for openvino execution provider?

I'm using onnxruntime with openvino execution provider, and i always get warnnings like this:

[WARN] 2022-02-16T03:23:10z frontend/onnx_import/src/core/graph.cpp 103
Could not create an nGraph Constant for initializer '738'. 
Constant with a 0 value was created, make sure connected input is optional.
Otherwise verify if the initializer contains a correct number of elements matching the initializer's shape. 
Detailed error:
Check 'values.size() == 1 || values.size() == shape_size(m_shape)' failed at core/include/ngraph/op/constant.hpp:59:
While validating node 'v0::Constant Constant_14387 () -> (f32{})' with friendly_name 'Constant_14387':
Did not get the expected number of literals for a constant of shape Shape{} (got 0, expected 1).
  • I can get the correct result.
  • I want to set log level to Error/Fatal. I dont want to see too much warnning log.
  • I find nothing about log level in provider option. I set onnxruntime log level, but it apply on ort log, this it still print a lot of warnning.

Please tell me how to set log level

@MaajidKhan
Copy link

Hello @jinmingyi1998. We don't have anything to configure log level specific to OpenVINO EP execution.

Looks like the warnings you are seeing are coming from the ONNX Importer component of OpenVINO.

Can you share more details here. What model you used and can you share the model with us to investigate.

Having said that, just wanted to let you know that these warnings won't have any impact on the inferencing time of the model. But, please share the model details, we will investigate and fix the issue.

@jinmingyi1998
Copy link
Author

Hello @jinmingyi1998. We don't have anything to configure log level specific to OpenVINO EP execution.

Looks like the warnings you are seeing are coming from the ONNX Importer component of OpenVINO.

Can you share more details here. What model you used and can you share the model with us to investigate.

Having said that, just wanted to let you know that these warnings won't have any impact on the inferencing time of the model. But, please share the model details, we will investigate and fix the issue.

epoch115.zip

As far as i known, this warning is casued by constant node - RESIZE.

Do you have any ideas to solve it ?

@MaajidKhan
Copy link

MaajidKhan commented Feb 24, 2022

Hi @jinmingyi1998 . we investigated the issue by running your model. The issue is coming from OpenVINO's ngraph component when the ONNX model is being imported by OpenVINO. The latest current version of OpenVINO is OpenVINO 2021.4.2 LTS. We have a upcoming new OpenVINO version 2022.1 release in Mar 2nd to 3rd week. The warnings will be fixed with this release.

current status with OV 2021.4.2:
image

With upcoming OV 2022.1 Release (Mar'2022):
image

I hope the issue is answered. Pls re-open the ticket if you have any other concerns.

@jinmingyi1998
Copy link
Author

looking forward to new release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants