You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Legion Python interactive console
>>> import cunumeric
>>> import numpy
>>> cunumeric.where(2,1,1)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/auser/mambaforge/envs/legate/lib/python3.1/site-packages/legate/core/runtime.py", line 2149, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/auser/mambaforge/envs/legate/lib/python3.1/site-packages/cunumeric/coverage.py", line 120, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/auser/mambaforge/envs/legate/lib/python3.1/site-packages/cunumeric/array.py", line 148, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/auser/mambaforge/envs/legate/lib/python3.1/site-packages/cunumeric/module.py", line 2995, in where
return ndarray._perform_where(a, x, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/auser/mambaforge/envs/legate/lib/python3.1/site-packages/cunumeric/array.py", line 4386, in _perform_where
out._thunk.where(mask._thunk, one._thunk, two._thunk)
File "/home/auser/mambaforge/envs/legate/lib/python3.1/site-packages/cunumeric/eager.py", line 1618, in where
self.array[:] = np.where(rhs1.array, rhs2.array, rhs3.array)
~~~~~~~~~~^^^
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
>>> numpy.where(2,1,1)
array(1)
>>>
The text was updated successfully, but these errors were encountered:
manopapad
added a commit
to manopapad/cunumeric
that referenced
this issue
Nov 3, 2023
cunumeric/cunumeric/eager.py
Line 1618 in 2666c08
The text was updated successfully, but these errors were encountered: