Skip to content

[tmva][sofie] Improvements to SOFIE Keras parser on the Python side#22381

Open
guitargeek wants to merge 2 commits into
root-project:masterfrom
guitargeek:tmva-sofie-pyz
Open

[tmva][sofie] Improvements to SOFIE Keras parser on the Python side#22381
guitargeek wants to merge 2 commits into
root-project:masterfrom
guitargeek:tmva-sofie-pyz

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

@guitargeek guitargeek commented May 22, 2026

Some improvements to the SOFIE Keras parser on the Python side, inspired by the cppyy upgrade work.

This also fixes a logic error where a binary operator with any name was falling back to multiplication.

@guitargeek guitargeek self-assigned this May 22, 2026
@guitargeek guitargeek force-pushed the tmva-sofie-pyz branch 2 times, most recently from e342e8a to 77629bd Compare May 22, 2026 06:59
Re-implement the binary operator creation in the Keras parser code path
in C++, so the Python side Keras parser implementation doesn't have to
deal with SOFIE implementation details like the `EBasicBinaryOperator`
or which binary operator types are supported.

This also fixes a logic error where a binary operator with any name was
falling back to multiplication.
This makes the overload that takes memory by raw pointer more consistent
with the other overload that takes a `std::shared_ptr<void>`.

This avoids also the need for some template instantiations on the SOFIE
Pythonizations side, saving some memory cost.
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.

1 participant