Repository navigation
Conversation
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Test quality (1). Other reviewed categories look good.
- PR description: The title and body match the launch-boundary fix, replay assertions, and changelog; validation reports functional results, and the zero-copy metadata conversion introduces no material copying change 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: Style consistency looks good.
- Test quality: Capture replay repeats the same shared implementation for each command name; keep one indexed and one masked replay while retaining per-command eager assertions.
Minor fixes needed. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
| torch.testing.assert_close(command_buffer.torch.cpu(), expected) | ||
|
|
||
| joint_ids = wp.to_torch(joint_ids) | ||
| with wp.ScopedCapture(device="cpu") as capture: |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Capture each setter path once
Position, velocity, and effort use the same indexed and masked capture paths. Four replays add test cost without a distinct regression; keep one replay per path and retain the existing per-command eager assertions.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Test quality (1). Other reviewed categories look good.
- PR description: The title and body match the three-file setter, test, and changelog diff; reported regression and Cartpole validation address correctness, and no measurable performance claim requires benchmarking.
- 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: Style consistency looks good.
- Test quality: Capture blocks repeat identical shared helpers across command names already covered by eager routing assertions; retain one indexed and one masked replay check while preserving parametrized eager coverage.
Minor fixes needed. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
| torch.testing.assert_close(command_buffer.torch.cpu(), expected) | ||
|
|
||
| joint_ids = wp.to_torch(joint_ids) | ||
| with wp.ScopedCapture(device="cpu") as capture: |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Capture each setter path once
Both capture blocks repeat the same shared helper for position, velocity, and effort; eager assertions already check command routing. Capture once per selector mode and retain parametrized eager coverage.
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryConverts Torch values and index selectors to Warp views before actuator target writes. Backend staging and index dispatch stay unchanged.
No actionable issues were found. Tests were inspected but not run. Reviews (1) · Last reviewed commit: "Fix Torch actuator targets during CPU gr..." · Reviewed by Greptile |
Description
After #8959 enabled Newton CPU graph capture, actuator target writes could fail with
AttributeError: 'Tensor' object has no attribute 'ptr'. Warp's CPU capture expects array metadata when recording the Torch values and selectors passed to these kernels.Convert Torch arguments to zero-copy
wp.from_torchviews at the indexed and masked target-setter launch boundaries. This preserves storage, dtype, strides, and selector order, so graph replay observes in-place command updates. Existing dispatch and backend staging remain unchanged.Extends the two existing setter tests with CPU capture/replay checks for updated values, selections, and untouched entries.
Validation