Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlia-Chehata committed Jul 2, 2020
1 parent d6de99a commit 98a33e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cupy/math/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ def _fft_convolve(a1, a2, mode):


def _dot_convolve(a1, a2, mode):
if a1.size == 0 or a2.size == 0:
raise ValueError('Array arguments cannot be empty')

offset = 0
if a1.size < a2.size:
Expand Down
2 changes: 2 additions & 0 deletions cupy/statistics/correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def correlate(a, v, mode='valid'):
.. seealso:: :func:`numpy.correlate`
"""
if a.size == 0 or v.size == 0:
raise ValueError('Array arguments cannot be empty')
if a.ndim != 1 or v.ndim != 1:
raise ValueError('object too deep for desired array')
# choose_conv_method does not choose from the values in
Expand Down

0 comments on commit 98a33e3

Please sign in to comment.