openvinotoolkit / openvino

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

[Good First Issue]: Align behavior of ONNX Frontend operator ReduceProd-11, 13, 18 with original framework #20558

Open gkrivor opened 11 months ago

gkrivor commented 11 months ago

Context

Neural networks are graphs consisting of nodes called operators. Each operator corresponds to a mathematical function, usually described in framework's documentation or an AI standard, such as ONNX. OpenVINO ONNX Frontend is a component responsible for working with ONNX graphs and requires implementation of different ONNX operators in order to use ONNX models. This task requires alignment between OpenVINO ONNX Frontend and original framework implementations of ReduceProd for next list of opsets: opset 11, opset 13, opset 18 Necessary help will be provided by ONNX Fronted team.

What needs to be done?

First of all, please, take a look on ReduceMax PR for a reference.

Operator details can be found in ONNX Operators More details can be found in ONNX Changelog: opset 11, opset 13, opset 18

  1. Operator already has a common implementation in OpenVINO. First of all, you need to review a documentation and prepare a table with differences between versions. It could be, for instance, a missing property, extended/reduced coverage of existing property, etc...
  2. Copy existing implementation here to make it aligned with original framework (extend or reduce coverage of a common implementation). Copy of modified implementation should be in a defined opset, or in opset 1 in case it implements oldest implementation. Example of multi-opset operation.
  3. Register the function in ops_bridge.cpp while keeping alphabetical order
  4. Create test model(s) in ONNX models directory. OpenVINO test infrastructure then converts prototxt files to ONNX models - you will use those models later in tests
  5. Add tests covering all use cases here
  6. Check Python xfailed tests to find a test marked as a xfailed for added functionality. If any exist - remove corresponding lines and try to verify by using cmdline "python -m pytest -k name_of_test". More details in adding operators to ONNX Frontend guide

Example Pull Requests

No response

Resources

Contact points

@gkrivor

Ticket

No response

PulkitGarg777 commented 8 months ago

.take

github-actions[bot] commented 8 months ago

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

p-wysocki commented 7 months ago

Hi @PulkitGarg777, can we help you somehow?

PulkitGarg777 commented 7 months ago

Hi @p-wysocki, sorry for not looking into it, been kinda busy. I've seen similar issues. I'll study them and if i get stuck somewhere, I'll surely let you know. Thank you for reaching out :)

p-wysocki commented 7 months ago

Hi @PulkitGarg777, are you still on that issue or can we reassign it to other contributors?

PulkitGarg777 commented 7 months ago

You can reassign this issue, been busy with other work, my apologies

mlukasze commented 7 months ago

No worries, check us out in more convenient moment for you, we will wait :) I will reassign this ticket, but there will be more to train on.

abhilashw commented 7 months ago

.take

github-actions[bot] commented 7 months ago

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

abhilashw commented 7 months ago

Below are the differences between opset1 and opset11, opset13, opset18 image

mlukasze commented 7 months ago

@gkrivor take a look, please

p-wysocki commented 6 months ago

cc @gkrivor

andrei-kochin commented 4 months ago

@abhilashw so you have identified the difference Are you going to implement the code changes to have a generic implementation or do you need any additional feedback?

abhilashw commented 4 months ago

@andrei-kochin I was waiting for @gkrivor to provide feedback. Yeah I have made some changes to code. Working on adding testcases

gkrivor commented 1 month ago

@abhilashw hi, do you have any progress or I can take this task and complete?

gkrivor commented 1 month ago

.take

github-actions[bot] commented 1 month ago

Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue.