Skip to content

fix[autograd]: remove frequency summing in CustomMedium gradient and … #2430

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

Merged
merged 1 commit into from
May 9, 2025

Conversation

groberts-flex
Copy link
Contributor

@groberts-flex groberts-flex commented May 6, 2025

Based on a recent update for structure derivative computation, we now need to now sum over frequency in CustomMedium gradient computation because we are computing one frequency at a time (the iteration happens over frequency in autograd.py now).

@groberts-flex
Copy link
Contributor Author

groberts-flex commented May 6, 2025

actually, there are a few other problematic spots in the medium file where we sum over frequency that need fixing.

@groberts-flex groberts-flex force-pushed the groberts-flex/debug_autograd_wdm branch 2 times, most recently from 44f42a2 to 09b3488 Compare May 6, 2025 16:30
@groberts-flex
Copy link
Contributor Author

going to fix this in a slightly different given the multiple other cases that came up, will update when I have that done!

@groberts-flex groberts-flex force-pushed the groberts-flex/debug_autograd_wdm branch 2 times, most recently from d602448 to b106971 Compare May 8, 2025 16:22
@groberts-flex
Copy link
Contributor Author

groberts-flex commented May 8, 2025

alright, rebased and cleaned a couple of things up, think this is ready for review now

Copy link
Collaborator

@yaugenst-flex yaugenst-flex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @groberts-flex for fixing this! Looks great, only some minor comments.

@groberts-flex groberts-flex force-pushed the groberts-flex/debug_autograd_wdm branch from b106971 to a5e3c09 Compare May 8, 2025 16:56
@groberts-flex groberts-flex force-pushed the groberts-flex/debug_autograd_wdm branch from a5e3c09 to 14cb927 Compare May 8, 2025 16:57
@yaugenst-flex yaugenst-flex added 2.8 will go into version 2.8.* .4 labels May 8, 2025
@yaugenst-flex yaugenst-flex merged commit 91232e4 into develop May 9, 2025
29 checks passed
@yaugenst-flex yaugenst-flex deleted the groberts-flex/debug_autograd_wdm branch May 9, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 will go into version 2.8.* .4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants