Skip to content

Commit

Permalink
Fix case where shape is an int for empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Sep 12, 2023
1 parent 92e2f18 commit b8902ba
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 @@ -79,6 +79,7 @@ def asarray(


def empty(shape, *, dtype=None, device=None, chunks="auto", spec=None) -> "Array":
shape = normalize_shape(shape)
return empty_virtual_array(
shape, dtype=dtype, device=device, chunks=chunks, spec=spec, hidden=False
)
Expand Down

0 comments on commit b8902ba

Please sign in to comment.