Skip to content
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

fix box gradients < 3d #1801

Merged
merged 1 commit into from
Jul 4, 2024
Merged

fix box gradients < 3d #1801

merged 1 commit into from
Jul 4, 2024

Conversation

tylerflex
Copy link
Collaborator

@tylerflex tylerflex commented Jul 4, 2024

Fixes a bug that occurred in 2D autograd with Box, where xr.DataArray.integrate gives 0 for any dimensions with 1 coordinate, making the whole gradient 0. This simply ignores such dimensions in the integration.

@tylerflex tylerflex force-pushed the tyler/autograd_/fix/box2d branch from 11769d5 to 3703cd1 Compare July 4, 2024 20:19
@tylerflex tylerflex requested a review from momchil-flex July 4, 2024 20:19
@tylerflex tylerflex added the 2.7 will go into version 2.7.* label Jul 4, 2024
@tylerflex tylerflex requested review from yaugenst-flex and removed request for momchil-flex July 4, 2024 20:59
@tylerflex tylerflex force-pushed the tyler/autograd_/fix/box2d branch from 3703cd1 to 8ff13f3 Compare July 4, 2024 21:12
@tylerflex tylerflex merged commit 0b875ae into develop Jul 4, 2024
16 checks passed
@tylerflex tylerflex deleted the tyler/autograd_/fix/box2d branch July 4, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 will go into version 2.7.*
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants