Skip to content

feat: autograd support for angle gradients of rotated box #2436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

rahul-flex
Copy link
Contributor

@rahul-flex rahul-flex commented May 9, 2025

Autograd support for derivative w.r.t rotation angle for box geometry in the Transformed class. Key changes are:

Derivative Computation:

  • Applies the chain rule in two stages:

 Uses adjoint sensitivities at face‑mesh sample points to obtain ∂J/∂X_rot. Then derivative of sample points coordinates wrt rotation matrix elements.

Testing:
Finite‑difference vs Autograd checks for seven representative angles across all three rotation axes (x, y, z).
grad_theta_fd_vs_ad_axis_y
grad_theta_fd_vs_ad_axis_z
grad_theta_fd_vs_ad_axis_x

@rahul-flex rahul-flex requested a review from yaugenst-flex May 9, 2025 03:13
@yaugenst-flex
Copy link
Collaborator

Closing in favor of #2475

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.

2 participants