Skip to content

cupy to numpy transform error #5679

@Jay-ju

Description

@Jay-ju

Describe the bug

__________________________________ test_cupy ___________________________________
tests/test_datatype_inference.py:538: in test_cupy
assert dt.infer_from_object(arr) == dt.tensor(dt.int64())
arr = array([1, 2, 3])
cupy = <module 'cupy' from '/data00/codebase/daft/ccfp4/.venv/lib/python3.11/site-packages/cupy/init.py'>
daft/datatype.py:424: in infer_from_object
s = Series.from_pylist([obj])
Series = <class 'daft.series.Series'>
cls = <class 'daft.datatype.DataType'>
obj = array([1, 2, 3])
daft/series.py:106: in from_pylist
pys = PySeries.from_pylist(data, name, None if dtype is None else dtype._dtype)
data = [array([1, 2, 3])]
dtype = None
name = 'list_series'
pyobj = 'allow'
cupy/_core/core.pyx:1581: in cupy._core.core._ndarray_base.array
???
E TypeError: Implicit conversion to a NumPy array is not allowed. Please use .get() to construct a NumPy array explicitly.

To Reproduce

No response

Expected behavior

No response

Component(s)

Other

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp2 (backlog)Nice to have features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions