Skip to content

[tmva][sofie] Fixes for parsing mlpf model#22150

Open
lmoneta wants to merge 1 commit intoroot-project:masterfrom
lmoneta:tmva_sofie_fixes
Open

[tmva][sofie] Fixes for parsing mlpf model#22150
lmoneta wants to merge 1 commit intoroot-project:masterfrom
lmoneta:tmva_sofie_fixes

Conversation

@lmoneta
Copy link
Copy Markdown
Member

@lmoneta lmoneta commented May 5, 2026

  • After the changes for CLAD the mlpf modek could not be parsed anymore. Handle now correctly the variable defining the number of non zero elements coming from Non_Zero
  • Fixes also TMVA::SOFIE::Copy for different types than float making it a template function
  • Add also output shape definition in generated code as it is done for the input

- After the changes for CLAD the mlpf modek could not be parsed anymore.
Handle now correctly the variable defining the number of non zero elements coming from Non_Zero
- Fixes also TMVA::SOFIE::Copy for different types than float making it a template function
- Add also output shape definition in generated code as it is done for the input
@lmoneta lmoneta requested a review from guitargeek May 5, 2026 13:29
@lmoneta lmoneta self-assigned this May 5, 2026
Copy link
Copy Markdown
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you very much! Looks good to me once the test is fixed.

Copy link
Copy Markdown
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I remember that the RModel has a non-zero class version, and we can't add new non-transient data members without incrementing the class version.

Does the RModel actually need to be serializable?

Same discussion as here:

MemoryPoolInfo fIntermediateMemoryInfo; ///<! intermediate memory info (transient)
std::unordered_map<std::string_view, size_t> fIntermediateTensorFrequencyLookup; ///<! lookup table for intermediate tensor frequency (transient)

std::string fExtraCodeForDimShapes; // extra code needed for initialization of dynamic parameters (e.g. number of non zero elements in NonZero operator)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't add new non-transient class members without updating the class version

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Test Results

    22 files      22 suites   3d 12h 26m 12s ⏱️
 3 850 tests  3 847 ✅ 0 💤  3 ❌
76 936 runs  76 919 ✅ 0 💤 17 ❌

For more details on these failures, see this check.

Results for commit bf80eb7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants