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

feat: start an autodiff poc. #82

Merged
merged 23 commits into from
Apr 29, 2024
Merged

feat: start an autodiff poc. #82

merged 23 commits into from
Apr 29, 2024

Conversation

paquiteau
Copy link
Member

No description provided.

@chaithyagr
Copy link
Member

Fixed the tests here ! Good work guys, although we need to merge #96 first

samples=kspace_loc,
shape=shape,
smaps=None,
squeeze_dims=False, # Squeezing breaks dimensions !
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

Added check for this.

def __init__(self, nufft_op):
super().__init__()
if nufft_op.squeeze_dims:
raise ValueError("Squeezing dimensions is not "
Copy link
Member

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

@chaithyagr chaithyagr marked this pull request as ready for review April 29, 2024 09:10
chaithyagr and others added 2 commits April 29, 2024 13:06
@paquiteau paquiteau merged commit bb949af into master Apr 29, 2024
7 checks passed
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.

4 participants