openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
6.48k stars 2.11k forks source link

[Good First Issue]: Enable Model.getOps() method #25405

Open almilosz opened 1 week ago

almilosz commented 1 week ago

Context

Node.js API is the newest binding of OpenVINO. The task is to expose: Model::get_ops() method that will return an array containing ops used in the model.

What needs to be done?

model_operators = [op.getname().split("")[0] for op in model.get_ops()] expected_ops = [ "Subtract", "Transpose", ] assert len(model_operators) == 14 for op in expected_ops: assert op in model_operators

Tip: Before creating a new function to convert an argument, take a look at helper methods to see if it doesn't exist already

Example Pull Requests

Resources

Contact points

@almilosz @vishniakov-nikolai

Ticket

-

spran180 commented 1 week ago

.take

github-actions[bot] commented 1 week ago

Thank you for looking into this issue! Please let us know if you have any questions or require any help.