Skip to content

Feature/remove convolver#340

Merged
Jammy2211 merged 2 commits intofeature/jax_wrapperfrom
feature/remove_convolver
Apr 3, 2025
Merged

Feature/remove convolver#340
Jammy2211 merged 2 commits intofeature/jax_wrapperfrom
feature/remove_convolver

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

The Convolver object mapped out the 2D convolution calculation for a 2D mask and 2D kernel, using the fact that for model-fitting both quantities were fixed and therefore the exact sequence of calculations required could be precomputed in memory.

This object relies heavily on in-place memory manipulation and therefore is not suitable for JAX, therefore I have removed it.

All 2D convolutions are now performed using standard jax.scipy convolution methods on 2D arrays.

The Conolver object worked on the contents of masked arrays mapped to 1D representation, and the current JAX implementation of convolutions requires mapping back and forth from 1D and 2D. This likely leads to a loss of performance and we may need to optimize these functions in the future.

@Jammy2211 Jammy2211 requested review from CKrawczyk and rhayes777 April 2, 2025 20:14
@Jammy2211 Jammy2211 merged commit 310c42d into feature/jax_wrapper Apr 3, 2025
0 of 8 checks passed
@Jammy2211 Jammy2211 deleted the feature/remove_convolver branch June 24, 2025 13:48
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.

1 participant