Skip to content

[tmva][sofie] Fix Conv dynamic-shape output formula when stride > 1#21730

Open
harz05 wants to merge 2 commits intoroot-project:masterfrom
harz05:fix/sofie-conv-stride
Open

[tmva][sofie] Fix Conv dynamic-shape output formula when stride > 1#21730
harz05 wants to merge 2 commits intoroot-project:masterfrom
harz05:fix/sofie-conv-stride

Conversation

@harz05
Copy link
Copy Markdown
Contributor

@harz05 harz05 commented Mar 28, 2026

Changes or fixes:

In ROperator_Conv.hxx line 202, the +1 in the conv output formula (input + pad - kernel) / stride + 1 was being string-concatenated onto the stride value instead of added separately, generating ((W+-3)/21) for stride=2 instead of the correct ((W+-3)/2+1).

simple fix is to change the: std::to_string(stride) + "1)"; to + std::to_string(stride) + "+1)";

Checklist:

  • tested changes locally

This PR fixes #21729

@harz05 harz05 requested a review from lmoneta as a code owner March 28, 2026 16:16
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: dynamic-shape output formula generates wrong C++ when stride > 1

2 participants