Skip to content

Add ONNX Softplus import and shape propagation - #21

Merged
mtavenrath merged 1 commit into
rustnn:mainfrom
rebeckerspecialties:feat/onnx-softplus
Oct 13, 2026
Merged

mtavenrath merged 1 commit into
rustnn:mainfrom
rebeckerspecialties:feat/onnx-softplus

Conversation

@matthargett

Copy link
Copy Markdown
Contributor

ONNX Softplus currently fails import, including the delta projection in a small Mamba fixture. WebNN already provides the matching unary operation.

  • Map Softplus directly to softplus, without expanding it into potentially unstable exp/log arithmetic.
  • Preserve shape in both inference paths.
  • Add regression coverage for FP32/FP16 vector and matrix import, optimized/unoptimized conversion, JS emission, malformed input counts, and scalar/matrix shape inference without output annotations.

Validation: regression tests fail before the change and pass afterward; make fmt-check, strict all-target Clippy, and the full 201-test suite pass with Rust 1.97.0 and 1.98. The parser-only configuration also passes. The Mamba fixture now gets past Softplus and stops at the separate Pad gap; this is not an end-to-end model claim.

@matthargett
matthargett marked this pull request as ready for review September 27, 2026 22:52
@mtavenrath
mtavenrath merged commit 37f91d9 into rustnn:main Oct 13, 2026
7 checks passed
@matthargett
matthargett deleted the feat/onnx-softplus branch October 13, 2026 22:17
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