Circular imports in `cupyx.scipy.signal.convolve`
See original GitHub issueI am unable to import cupyx.scipy.signal.convolve
because cupyx.signal was removed in #3645.
I got the following output when I tried from cupyx.scipy.signal import convolve
File "/home/.../cupy/cupyx/scipy/ndimage/_filters_core.py", line 105, in <module>
weights_dtype=cupy.float64, structure_dtype=cupy.float64):
AttributeError: module 'cupy' has no attribute 'float64'
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
cupyx.scipy.signal.convolve — CuPy 11.3.0 documentation
cupyx.scipy.signal.convolve# · 'direct' : The convolution is determined directly from sums, the definition of convolution · 'fft' : The Fourier Transform is used ......
Read more >scipy.signal.convolve — SciPy v1.9.3 Manual
Convolve two N-dimensional arrays. Convolve in1 and in2, with the output size determined by the mode argument. Parameters. in1array_like. First input ...
Read more >Cupyx 3D FFT convolution on GPU slows down after multiple ...
The dilations are accomplished using fft convolution on the GPU using cupyx.scipy.signal.signaltools.convolve, which takes ~ 0.005 seconds. Less ...
Read more >Released CuPy v8.0.0rc1 - Google Groups
It was moved to the cupyx.scipy.sparse namespace in CuPy v5, ... Fix circular imports (#3743); Skip FFT input checks for some CUDA >=...
Read more >cuCIM API Reference - RAPIDS Docs
import cucim.core.operations.color as ccl >>> # input is channel first 3d array ... from cupyx.scipy.signal import convolve2d >>> psf = cp.ones((5, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Then the easiest solution is to import within a function instead of at a top level. However, cupy’s style guidelines dictate that this isn’t allowed, even though it is an easy and viable solution to this problem.
I also submitted a bug report and then retracted it: #3756.