Skip to content

[tmva][sofie] Register the existing Swish operator in the ONNX parser #22552

Closed

Description

@harz05

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

  1. harz05 commented on Jun 9, 2026

    @harz05
    ContributorAuthor

    will raise a PR for this shortly

  2. added a commit that references this issue on Jul 9, 2026
    bda82f3
  3. added a commit that references this issue on Jul 9, 2026
    3b28e0d
  4. added a commit that references this issue on Oct 16, 2026
    8a4e53a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions