You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p-wysocki
changed the title
Add a clear error message when creating an empty Constant
Add a clear error message when creating an empty ConstantSep 5, 2023
Context
Current Constant implementation does not allow for creating empty Constants:
https://docs.openvino.ai/2023.0/openvino_docs_ops_infrastructure_Constant_1.html
Trying to do so results in a cryptic error message:
What needs to be done?
This can be done in either Python wrapper: https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/python/src/openvino/runtime/opset1/ops.py#L334-L347
Or in C++ to Python binding: https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/python/src/pyopenvino/graph/ops/constant.cpp
It's up to you to decide where the error message implementation will be a good fit.
Make sure the error message appears
This can be done either manually or by writing a test.
Create a Pull Request
Resources
Contact points
@p-wysocki
@jiwaszki
@akuporos
Don't hesitate to reach out, we're here to help!
Ticket: 114374
The text was updated successfully, but these errors were encountered: