Skip to content

[Tools] MlResponse: bugfix assure equality of number of checked features to that in the .onnx file#16722

Merged
fmazzasc merged 1 commit into
AliceO2Group:masterfrom
lubynets:ml-bugfix
Jun 18, 2026
Merged

[Tools] MlResponse: bugfix assure equality of number of checked features to that in the .onnx file#16722
fmazzasc merged 1 commit into
AliceO2Group:masterfrom
lubynets:ml-bugfix

Conversation

@lubynets

Copy link
Copy Markdown
Contributor

The check introduced by PR #16424 did not take into account the case when input features are not configured via json file, but are fixed (as in PWGHF/TableProducer/trackIndexSkimCreator.cxx), and thus mCachedIndices.size() == 0.
This PR fixes this error by moving the check from init() to getModelOutput() and checking getNumInputNodes() against the size of the input features vector.
Tagging @fgrosa

@github-actions github-actions Bot added the tools label Jun 17, 2026
@github-actions github-actions Bot changed the title MlResponse: bugfix assure equality of number of checked features to that in the .onnx file [Tools] MlResponse: bugfix assure equality of number of checked features to that in the .onnx file Jun 17, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 0 disabled

@fmazzasc fmazzasc merged commit 70406db into AliceO2Group:master Jun 18, 2026
13 checks passed
@lubynets lubynets deleted the ml-bugfix branch June 18, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants