Repository navigation
Add choose_conv_method - #3464
Conversation
| """ | ||
| fft_ops, direct_ops = _conv_ops(x.size, h.size, mode) | ||
| offset = -1e-3 | ||
| constants = { |
There was a problem hiding this comment.
Please explain what this constants are. I'm wondering these constants are useful also for GPU computations.
There was a problem hiding this comment.
These constants for SciPy were determined using code from https://github.com/stsievert/scipy-convolve-timings as discussed at: scipy/scipy#11031 (comment)
I expect running the same sort of thing on the GPU might give substantially different results. I am not sure how feasible it is to get a single set of numbers that applies in general across a wide range of GPUs, but a single set based on a given GPU would probably still be a better match than these existing CPU-based constants.
|
Jenkins, test this please. |
|
Successfully created a job for commit 870b523: |
|
Jenkins CI test (for commit 870b523, target branch master) succeeded! |
|
LGTM. |
This PR blocks #3371.
It is an implementation of
scipy.signal.choose_conv_method(supporting only 1D inputs currently). One difference from SciPy's behaviour is that it always chooses direct convolution for signed/unsigned integers