Skip to content

[tmva][sofie] Remove Keras and PyTorch parses from ROOT repository - #22734

Open
guitargeek wants to merge 1 commit into
root-project:masterfrom
guitargeek:sofie_keras_torch
Open

[tmva][sofie] Remove Keras and PyTorch parses from ROOT repository#22734
guitargeek wants to merge 1 commit into
root-project:masterfrom
guitargeek:sofie_keras_torch

Conversation

@guitargeek

@guitargeek guitargeek commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

As announced in the Q2 2026 Report and Planning meeting [1], the SOFIE distribution within ROOT will be slimmed down to keep only the core functionality of enabling ONNX model inference on the CPU with ROOT via ONNX parsing and C++ code emit.

That means to keep the ONNX parser, and to remove the Keras and PyTorch parsers. these parsers relied on private implementation details of the Keras or PyTorch libraries, which change faster than appropriate for the stability standards of ROOT. We expect users to choose neural net architectures that are serializable by ONNX for production use.

The Keras and PyTorch parsers remain valuable work, visible in ROOTs commit history and ready to be re-distributed by other parties, which would be very easy since this is just Python code. It would be trivial to ship this as a Python package that requires ROOT or another distribution of C++ SOFIE.

[1] https://indico.cern.ch/event/1699702/ : slide 19

A demo for how it could be packaged outside of ROOT is given in: https://github.com/guitargeek/sofie-extra-parsers

@guitargeek guitargeek self-assigned this Jun 30, 2026
@guitargeek guitargeek added clean build Ask CI to do non-incremental build on PR in:SOFIE labels Jun 30, 2026
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 12h 26m 51s ⏱️
 3 851 tests  3 850 ✅ 0 💤 1 ❌
78 494 runs  78 492 ✅ 1 💤 1 ❌

For more details on these failures, see this check.

Results for commit 64a153f.

♻️ This comment has been updated with latest results.

@guitargeek
guitargeek force-pushed the sofie_keras_torch branch 3 times, most recently from aff6bf7 to b5be88e Compare July 13, 2026 06:49
@guitargeek
guitargeek force-pushed the sofie_keras_torch branch 3 times, most recently from cb23ac9 to b44f619 Compare July 24, 2026 16:30
@guitargeek
guitargeek marked this pull request as ready for review July 24, 2026 16:30

@dpiparo dpiparo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If lorenzo and sanjiban agree, LGTM.

As announced in the Q2 2026 Report and Planning meeting [1], the SOFIE
distribution within ROOT will be slimmed down to keep only the core
functionality of enabling ONNX model inference on the CPU with ROOT via
ONNX parsing and C++ code emit.

That means to keep the ONNX parser, and to remove the Keras and PyTorch
parsers. these parsers relied on private implementation details of the
Keras or PyTorch libraries, which change faster than appropriate for the
stability standards of ROOT. We expect users to choose neural net
architectures that are serializable by ONNX for production use.

The Keras and PyTorch parsers remain valuable work, visible in ROOTs
commit history and ready to be re-distributed by other parties, which
would be very easy since this is just Python code. It would be trivial
to ship this as a Python package that requires ROOT or another
distribution of C++ SOFIE.

[1] https://indico.cern.ch/event/1699702/ : slide 19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean build Ask CI to do non-incremental build on PR in:SOFIE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants