Restore fast convolution Ops, rewrites, and docs #548
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When the
nnet
sub-module was depreciated, the old theano convolution functions went into the trashcan, along with the associated docs. This was partially reverted, but the docs and the "efficient" versions of the Ops are still missing.There is interest in convolutions on the discourse from time-to-time, so it's worth talking about these.
This PR is a draft because I just restored everything. To be frank this part of the library seems somewhat bloated, and would probably be better served by an overhaul than by just restoring this code. For example, there is commentary about CUDA kernels in the docstrings -- I assume this is from the days when thenao was trying to target GPUs with pycuda. We use JAX these days, and I wager these Ops don't compile to JAX at all (though I haven't tried), or numba for that matter...
It's marked as draft for 2 reasons:
Comments requested.
Related Issue
Checklist
Type of change