question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Circular imports in `cupyx.scipy.signal.convolve`

See original GitHub issue

I 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'

Rel #3748, #3743 blocks #3547

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
coderforlifecommented, Aug 21, 2020

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.

1reaction
coderforlifecommented, Aug 21, 2020

I also submitted a bug report and then retracted it: #3756.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found