Repository navigation
Fix benchmark play inference scope - #7174
kellyguo11 merged 2 commits into
Conversation
Greptile SummaryThe PR fixes pretrained navigation-policy inference by disabling autograd while computing delegated low-level actions.
Confidence Score: 5/5The PR appears safe to merge, with the inference-only autograd change narrowly scoped and covered by a regression test. The embedded policy output is now computed without gradient tracking while existing observation computation, action decimation, buffer reuse, and downstream action application remain unchanged. Important Files Changed
Reviews (1): Last reviewed commit: "Fix navigation pretrained policy inferen..." | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The change scopes gradient suppression to the embedded low-level policy inference, adds a focused regression test for gradient-free delegated actions, and records the user-visible fix in the package changelog.
- Design and architecture: The fix remains local to
PreTrainedPolicyAction.apply_actionsand preserves the existing observation computation, decimation, action delegation, and counter behavior. No architectural concerns were identified. - API: No public symbols, configuration fields, tensor shapes, or action interfaces change. The intentional behavioral change is that generated low-level actions no longer participate in autograd tracking.
- Implementation: Wrapping the policy call and buffer assignment in
torch.no_grad()prevents the preallocated action buffer from acquiring autograd history while preserving inference values and control flow. The regression test directly covers the affected delegation path, although its construction throughobject.__new__and manually populated private state creates a minor maintenance coupling to the class internals.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
## Summary Cherry-picks the following merged PRs from `develop` onto `release/3.0.0`, preserving each as an individual commit with `-x` provenance: - #7193 — Bake CI pytest deps into the built Docker image - #7077 — Add OVPhysX support to Franka deformable lift tasks - #7175 — Raise on unsupported camera renderer outputs - #7174 — Fix benchmark play inference scope - #7173 — Report resolved backend for play benchmarks - #7172 — Add video recording to play benchmarks - #7215 — Reduce GearAssembly default environment count - #7214 — Remove Kamino preset from open drawer - #7213 — Fix OvPhysX scene gravity randomization - #7212 — Fix OVPhysX material binding device selection - #7189 — Make preview surfaces renderer agnostic - #7206 — Fix OVPhysX benchmark articulation setup All cherry-picks and the final rebase onto the latest `release/3.0.0` tip completed without conflicts. ## Validation - Verified all 12 backported commits have patch IDs identical to their source squash commits and retain their `cherry picked from` footers. - `git diff --check upstream/release/3.0.0..HEAD` - Bash syntax validation for the modified CI shell scripts. - YAML parsing for the modified composite actions. - Changelog validation against `release/3.0.0`. - Targeted pytest coverage for benchmark APIs/play, video recording, GearAssembly defaults, OVPhysX presets and runtime semantics, and renderer-agnostic materials: **81 passed, 4 skipped, 1 deselected**. - The deselected case is an unchanged test that hard-codes a POSIX `/tmp` path and fails on Windows path normalization. - `uv run isaaclab -f` passed all hooks except the changelog hook's known release-branch baseline finding for `source/isaaclab/changelog.d/core-test-config-fixtures.skip`; the targeted release-base changelog check passed. --------- Co-authored-by: Matthew Taylor <[email protected]> Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: Mike Yan Michelis <[email protected]> Co-authored-by: Maximilian Krause <[email protected]> Co-authored-by: Octi Zhang <[email protected]> Co-authored-by: Mustafa H <[email protected]>
Summary
torch.inference_mode(), matching normal play and startup benchmarks.Validation
uv run isaaclab -fuv run python tools/changelog/cli.py check developuv run --extra test python -m pytest source/isaaclab/test/benchmark/test_play_schema.pyChecklist