Repository navigation
Conversation
Contributor
|
Hi @extint, thanks a lot for this contribution, and sorry it sat open for so long. In the meantime, parametric/dynamic input-tensor support for
Since the operator has been rewritten and this branch can no longer rebase cleanly (it also relies on helpers that were since removed), I'll close it as superseded. Your work was a useful early step in that direction. Thanks again, and we'd be glad to see you contribute in the future! 🙂 |
Pranav-error
added a commit
to Pranav-error/scientific-ml-pipelines
that referenced
this pull request
Aug 21, 2026
Corrects 53100a4's 10/11. That run's BatchNorm codegen failure was a second test artifact, not a SOFIE bug: a freshly initialised BatchNorm has weight == running_var and bias == running_mean, so the ONNX exporter deduplicates them behind Identity nodes, and SOFIE requires scale/B/mean/var to be initialized tensors (root-project/root#16282). With distinct parameter values, as any trained model has, the export contains all four initializers, no Identity nodes, and codegen succeeds. Nothing to report upstream. PyTorch parser stays at 2/11, matching RModelParser_PyTorch.cxx exactly. That gap was already reported as root-project/root#23108 and closed NOT_PLANNED: the parser is orphaned and #22734 removes it in favour of PyTorch's own ONNX export. The 11/11 ONNX column is the evidence that the removal costs users nothing. Also link both upstream issues from the README, so the operator counts and the decision that followed them are traceable rather than asserted. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull request:
Updates the implementation of BatchNormalization Operator to parse input tensors with parametric shapes.
xinput tensor can have shapes of form{dim1, dim2, dim3}scale,B,input_mean,input_vartensors need to be initialized tensorsONNX Documentation
Changes or fixes:
ROperator_BatchNormalization.hxxfile to handle parametric shapes.Checklist:
This PR fixes #