-
Notifications
You must be signed in to change notification settings - Fork 101
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
base: develop
Are you sure you want to change the base?
Create op builders (1.) #4005
Conversation
note: conflict was due to a new parser option for gelu called "QuickGelu". as a resolution a new op_builder called gelu_quick was introduced
As a general note, please update license on files changed/added to 2025. |
src/onnx/parse_batchnorm.cpp
Outdated
@@ -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; |
There was a problem hiding this comment.
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.
…nction more flexible to changes
…rt_literal with add_literal
…oo; modifying insert_literal to add_literal
First PR related to op builders.