-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add gradient and autodiff checks for linear operators #536
base: main
Are you sure you want to change the base?
Conversation
📚 Documentation |
…PTB-MR/mrpro into gradient_checks_only_for_lin_op
Tests which currently do not pass: |
That is a known issue #409 🙈 There is imho no feasibe way tfor us to support the slice projection operator in torch.func. Fixing it in pytorch would also be infeasible for us, as the the functorch c backend seems to cause the issue, as sparse tensors or completely missing in its implementation, We could replace the sparse-matrix/dense vector multiplication by manual indexing and dotproducts. This will make it quite a bit slower and way more complicated. For now, I would ether remove the tests or mark them as failing. This mainly means that we cant solve a superresolutionproblem with fista or pdgh if we keep using torch.func for the gradients. |
@fzimmermann89 do you think you could add the missing tests for GridSamplingOp? Everthing else should now be covered... |
This supersedes #407 - it was too difficult to bring this up-to-date with main.
forward_mode_autodiff_of_linear_operator_test and gradient_of_linear_operator_test still need to be added to
Do we want to run forward_mode_autodiff_of_linear_operator_test and gradient_of_linear_operator_test on all parametrize-options used for the adjointness tests?