Repository navigation
Keep axis-angle conversion gradients finite at identity - #9251
Open
sylvesterkaczmarek wants to merge 3 commits into
Open
sylvesterkaczmarek wants to merge 3 commits into
sylvesterkaczmarek wants to merge 3 commits into
Conversation
Fixes isaac-sim#9250. Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
sylvesterkaczmarek
requested review from
AntoineRichard,
StafaH,
fatimaanes,
kellyguo11,
ooctipus and
pbarejko
as code owners
November 26, 2026 00:21
Contributor
[Medium impact] The PR appears safe to merge. Summary
Reviews (1) · Last reviewed commit: "Keep axis-angle conversion gradients fin..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (1), Test quality (1). Other reviewed categories look good.
- PR description: The title and body match the denominator guard, regression, changelog, and contributor entry; reported CPU validation and omitted checks are explicit, with no measurable performance claim requiring benchmarks.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency:
ones_like(angle)creates an unnecessary batch-sized fallback allocation; use scalar1.0intorch.whereinstead. - Test quality: The distinct identity-gradient regression lacks the required kitless marker, excluding its file from marker-text selection; add
pytest.mark.kitlessto the test.
Minor fixes needed. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
Contributor
Author
|
Used a scalar 1.0 fallback in torch.where and marked the identity-gradient regression kitless in 76e3a20. The existing forward and Taylor branches are unchanged. Python syntax and diff checks passed; runtime tests were not rerun locally. |
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
This branch has not been deployed
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.
Description
Use a safe denominator for the inactive exact-ratio branch of quaternion-to-axis-angle conversion. Preserve the existing forward calculation and Taylor approximation, while preventing NaN gradients at identity rotations.
Fixes #9250.
Type of change
Validation
Checklist
Current-head validation: 123 CPU math tests passed, 3 CUDA-only tests skipped; scoped Ruff lint and formatting pass. The final follow-up is formatting-only. Full simulator/GPU integration remains pending.