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

Add source inversion capability #1

Closed
ar4 opened this issue Jul 14, 2018 · 0 comments
Closed

Add source inversion capability #1

ar4 opened this issue Jul 14, 2018 · 0 comments

Comments

@ar4
Copy link
Owner

ar4 commented Jul 14, 2018

At the moment Deepwave only calculates the gradient of the loss with respect
to the model, but for real data the source wavelet is also often not well
known and must be inverted for. I think it should be possible to add this
capability to Deepwave.

deepwave/scalar/scalar.py will need to be modified to allocate memory to store
this gradient, and to pass this memory and the locations of the sources to
backpropagation, possibly with a flag specifying whether the source gradient
should be calculated (which will depend on whether source_amplitudes has
requires_grad set to True), and also to return the calculated gradient as an
output (replacing the appropriate None value in the list of outputs).

deepwave/scalar/scalar.c and scalar.h will need to be modified to accept the
new inputs into the backward function, and to calculate the gradient.

@ar4 ar4 closed this as completed in c0fb6b7 Jul 16, 2018
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

No branches or pull requests

1 participant