Skip to content

Create op builders (1.) #4005

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

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from

Conversation

gchinora
Copy link

First PR related to op builders.

@kahmed10
Copy link
Collaborator

kahmed10 commented May 17, 2025

As a general note, please update license on files changed/added to 2025.

@@ -37,61 +36,15 @@ struct parse_batchnorm : op_parser<parse_batchnorm>
instruction_ref parse(const op_desc& /*opd*/,
const onnx_parser& parser,
const onnx_parser::node_info& info,
std::vector<instruction_ref> args) const
const std::vector<instruction_ref>& args) const
{
float epsilon = 1e-5f;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The default attribute value is set in parse_... and in the op builder. This might lead to some unintuitive behavior should someone try to change it in the op builder. Probably better to have a conditional here and use the default in the op builder.

@gchinora gchinora requested review from CharlieL7 and apwojcik May 26, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants