Skip to content

Add fallible AD rule hooks#13

Merged
shinaoka merged 1 commit into
mainfrom
codex/result-aware-primitive-op
May 5, 2026
Merged

Add fallible AD rule hooks#13
shinaoka merged 1 commit into
mainfrom
codex/result-aware-primitive-op

Conversation

@shinaoka
Copy link
Copy Markdown
Member

@shinaoka shinaoka commented May 5, 2026

Summary

  • Add ADRuleError, ADRuleKind, and ADRuleResult for non-panicking AD rule failures.
  • Add PrimitiveOp try_linearize and try_transpose_rule hooks while keeping existing infallible compatibility methods.
  • Document and test unsupported-rule reporting.

Validation

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --release
  • cargo test --doc --release

Implemented with OpenAI Codex.

@shinaoka shinaoka enabled auto-merge (squash) May 5, 2026 08:16
@shinaoka shinaoka merged commit da3f2b5 into main May 5, 2026
4 checks passed
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