-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: start an autodiff poc. #82
Conversation
Fixed the tests here ! Good work guys, although we need to merge #96 first |
tests/test_autodiff.py
Outdated
samples=kspace_loc, | ||
shape=shape, | ||
smaps=None, | ||
squeeze_dims=False, # Squeezing breaks dimensions ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paquiteau I think we need a check for this. We need squeeze_dims to be false for now if we want autograd to work good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added check for this.
src/mrinufft/operators/autodiff.py
Outdated
def __init__(self, nufft_op): | ||
super().__init__() | ||
if nufft_op.squeeze_dims: | ||
raise ValueError("Squeezing dimensions is not " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, we check if squeeze_dims is True, we raise an error
No description provided.