Skip to content

Conversation

@aymuos15
Copy link
Contributor

Fixes #81

When observe_from() is called multiple times during optimization loops with
gradient computation, the tensor aliasing between the robot's configured_vertices
and intermediate tensors in the matmul chain causes incorrect gradient flow.
Adding .clone() breaks the aliasing, ensuring independent tensor graphs for each
iteration.

Fixes lbr-stack#81
@mhubii
Copy link
Contributor

mhubii commented Nov 5, 2025

thanks for the PR @aymuos15 ! While this fixes the issue indeed, I'll have to spend some time understanding the core problem here.

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.

Scene differentiability wrt joint states

2 participants