Skip to content

Commit

Permalink
Fix underlying bug in asarray.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxmrs committed Aug 3, 2024
1 parent 46f486a commit 3637e23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cubed/array_api/creation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def asarray(
a = nxp.asarray(a, dtype=dtype)
if dtype is None:
dtype = _to_default_precision(a.dtype, device=device)
a = a.astype(dtype)

chunksize = to_chunksize(normalize_chunks(chunks, shape=a.shape, dtype=dtype))
name = gensym()
Expand Down

0 comments on commit 3637e23

Please sign in to comment.