Skip to content

Add ONNX Softplus import and shape propagation - #21

Open
matthargett wants to merge 1 commit into
rustnn:mainfrom
rebeckerspecialties:feat/onnx-softplus
Open

matthargett wants to merge 1 commit into
rustnn:mainfrom
rebeckerspecialties:feat/onnx-softplus

Conversation

@matthargett

Copy link
Copy Markdown

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.

This branch has not been deployed

No deployments
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.

1 participant