Skip to content

[tmva][sofie] Fix Conv+Add fusion null path#21979

Open
markknoffler wants to merge 1 commit intoroot-project:masterfrom
markknoffler:fix_sofie_conv_add_fusion_parser_bug
Open

[tmva][sofie] Fix Conv+Add fusion null path#21979
markknoffler wants to merge 1 commit intoroot-project:masterfrom
markknoffler:fix_sofie_conv_add_fusion_parser_bug

Conversation

@markknoffler
Copy link
Copy Markdown

Fixes #21978.

In SOFIE ONNX parser, Conv + Add fusion was routed through ParseFuseConvAdd, but that path returned a null operator in the broken implementation. Since parser flow had already marked the Add node as fused, downstream nodes could observe missing tensor type registration and fail at runtime.

This patch implements ParseFuseConvAdd so fused Conv+Add creates a valid fused ROperator_Conv and registers the fused output tensor type.

Why this matters

Without this fix, a valid Conv -> Add -> Relu graph can fail during parse with:

TMVA::SOFIE ONNX Parser relu op has input tensoradd_out but its type is not yet registered

Changes

  • implement fused Conv+Add parser in tmva/sofie_parsers/src/ParseFuseConvAdd.cxx
  • preserve existing Conv attribute handling and output type registration behavior

Checklist

  • tested changes locally

Respected @lmoneta and @sanjibansg,

Could you please review this fix?

Also, I have local bug reproduction scripts, but they are currently not in ROOT standard test layout.
Kindly advise if you would like me to add the regression test in this PR.

With regards,
Samreedh Bhuyan

ParseFuseConvAdd returned a null operator while the Add node was marked as fused, which could leave fused output type unregistered and break downstream parsing. Implement the fused Conv+Add parser to produce a valid operator and register the fused output type.
@lmoneta
Copy link
Copy Markdown
Member

lmoneta commented Apr 21, 2026

Thank you for the PR, can you also add a test for this? Thank you

@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 13h 36m 22s ⏱️
 3 836 tests  3 831 ✅  1 💤  4 ❌
75 734 runs  75 661 ✅ 18 💤 55 ❌

For more details on these failures, see this check.

Results for commit 4082b4c.

@dpiparo dpiparo modified the milestone: 6.40.00-rc1 Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tmva][sofie] Conv+Add fusion path can drop operator and break downstream Relu type registration

4 participants