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
Also, fill_value supports array_like, but cunumeric only supports scalar.
cnp is cunumeric
>>> np.full(shape=(5,2), fill_value=(4,5))
array([[4, 5],
[4, 5],
[4, 5],
[4, 5],
[4, 5]])
>>> cnp.full(shape=(5,2), fill_value=(4,5))
TypeError: only length-1 arrays can be converted to Python scalars
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/suranap/projects/legate/legate.core/legate/core/runtime.py", line 2154, in wrapper
result = func(*args, **kwargs)
File "/home/suranap/projects/legate/cunumeric/cunumeric/coverage.py", line 120, in wrapper
return func(*args, **kwargs)
File "/home/suranap/projects/legate/cunumeric/cunumeric/module.py", line 420, in full
result._thunk.fill(val)
File "/home/suranap/projects/legate/cunumeric/cunumeric/eager.py", line 536, in fill
self.array.fill(value)
ValueError: setting an array element with a sequence.
cunumeric/cunumeric/module.py
Line 384 in 503affb
change to
fill_value
. See doc.The text was updated successfully, but these errors were encountered: