You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[tmva][sofie] Register the existing Swish operator in the ONNX parser #22552
Explain what you would like to see improved and how.
SOFIE already has a complete ROperator_Swish, listed in OperatorList.hxx, but the ONNX parser never registers "Swish", so a model containing the standard ONNX Swish op (opset 24, Swish(x) = x*sigmoid(alpha*x), alpha default 1) fails to parse even though the operator is implemented.
The improvement is to add a ParseSwish (mirroring ParseSigmoid) and RegisterOperator("Swish", ParseSwish), which makes the existing operator reachable from ONNX.
Small Note: the current operator implements alpha = 1 (the default). The parser should read the optional alpha attribute and either reject alpha != 1 with a clear error or extend the operator with an alpha parameter.
ROOT version
6.41.01
Installation method
Built from source
Operating system
Ubuntu 22.04.2 LTS
Additional context
Reproducer: parse any ONNX model with a Swish node -> "Operator type Swish is not yet supported", despite ROperator_Swish existing.
Activity
harz05 commentedon Jun 9, 2026
will raise a PR for this shortly
[tmva][sofie] Register Swish operator in the ONNX parser
[tmva][sofie] Register Swish operator in the ONNX parser
[tmva][sofie] Register Swish operator in the ONNX parser