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

[Py OV] Fix openvino.Model mocked object parameters #28313

Merged

Conversation

almilosz
Copy link
Contributor

@almilosz almilosz commented Jan 8, 2025

Details:

  • Overload dir() method for class objects. Add meta class ModelMeta and overload dir()
  • Add test for checking model attributes usind dir()

Tickets:

Signed-off-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
@almilosz almilosz requested a review from a team as a code owner January 8, 2025 12:02
@github-actions github-actions bot added the category: Python API OpenVINO Python bindings label Jan 8, 2025
@mlukasze mlukasze enabled auto-merge January 8, 2025 12:12
Signed-off-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
@almilosz almilosz disabled auto-merge January 8, 2025 16:03
Copy link
Contributor

@KodiaqQ KodiaqQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the NNCF side, all tests are passed with these changes.

@almilosz almilosz added this pull request to the merge queue Jan 9, 2025
Merged via the queue into openvinotoolkit:master with commit c839bf0 Jan 9, 2025
185 checks passed
@almilosz almilosz deleted the almilosz/magick-mock-model branch January 9, 2025 09:55
MirceaDan99 pushed a commit to MirceaDan99/openvino that referenced this pull request Jan 22, 2025
…28313)

### Details:
- Overload `dir()` method for class objects. Add meta class `ModelMeta`
and overload `dir()`
 - Add test for checking model attributes usind `dir()`

### Tickets:
 - [CVS-160178](https://jira.devtools.intel.com/browse/CVS-160178)

---------

Signed-off-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Python API OpenVINO Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants