Repository navigation
docs(explanation): flexibility at every compile stage, with exact GELU as the example - #1432
Merged
Merged
Conversation
…U as the example New Explanation page mapping what can change at each stage of the compiled path (trace, DAG, StableHLO, IREE), who changes it, and which TargetOptimizer hooks are wired. It follows gelu(approximate = false) down four paths: inline chlo.erf, a keepFused composite, the recorded tanh legalization, and eager execution, and states which eager-vs-compiled checks exist and which do not. Adds three SVG diagrams (stage knobs and hooks, the four lowering paths, and the exact-vs-tanh error curve computed from the formulas), a nav entry next to eager execution, and a cross-link from the HLO tutorial's composite section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
📖 Documentation Preview The documentation has been built successfully for this PR. Generated Files:
Artifacts:
This comment will be updated automatically when the PR is updated. |
… diagrams Each diagram now ships as a -light.svg / -dark.svg pair, included with role=only-light / role=only-dark. A small style block in the supplemental footer partial hides the copy that does not match the UI bundle's data-theme toggle (light shows when the attribute is missing). Also quotes the image alt texts: they contain commas, which AsciiDoc read as width/height positional attributes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Pushed
The Antora build passes with no warnings, and all six SVGs are published under 🤖 Generated with Claude Code |
|
📖 Documentation Preview The documentation has been built successfully for this PR. Generated Files:
Artifacts:
This comment will be updated automatically when the PR is updated. |
aharakal
approved these changes
Oct 21, 2026
michalharakal
added a commit
that referenced
this pull request
Oct 21, 2026
CHANGELOG [0.62.1] - 2026-10-21 over everything develop holds since 0.62.0: the FFM Q8_0/Q4_0/Q5_0/Q5_1 binding fix (#1436) as the headline, the YOLO move-out (#1437), the StableHLO softmax axis and logSoftmax fixes, the compile-flexibility explanation (#1432) and the SKEEP-008 draft (#1434). VERSION_NAME, CITATION, Antora version, README bom coordinate, What's New and contributors, Android tutorial coordinates; regenerated operator and kernel-support matrices.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new Explanation page (Divio quadrant: understanding, not steps):
explanation/compile-flexibility.adoc, "Flexibility at every compile stage".It covers:
TargetOptimizerhooks are wired (dagPasses(),granularity()) and which are only declared (CompilePhase.TAPE,STABLE_HLO).chlo.erfkeepFusedcomposite with its decompositionGeluApproximationLegalizationPassrewritechlo.erf; the conformance oracles are still tanh).Also
images/:math.erfChecked
develop(fd0f6da):GeluLowering,GeluApproximationLegalizationPass,TargetOptimization.kt,OpGranularityPolicy.kt, and 13 converter families increateExtended.skainet-antoraimage, with no warnings. The three images resolve under_images/.my-npuandmy-dspare marked as example names, and the Status section says that no shipped target uses the pass or the fused composite yet.🤖 Generated with Claude Code