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?
Start from creating NodeWrap class that will inherit from Napi::ObjectWrap and will represent ov::Node, create a separate header and source file.
Keep the implementation of NodeWrap as minimal as possible, add only the functionality that will be necessary for testing Model.getOps(), e.g. node.get_name() might be useful
add get_ops() method to (src/bindings/js/node/src/model_wrap.cpp)
create unit test for added functionality using Node.js Test Runner. It might look similar to this:
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
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.getOps()
, e.g. node.get_name() might be usefulTip: 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
-