Skip to content

Commit

Permalink
refactor: remove asarray
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jul 27, 2023
1 parent cca8179 commit e5f6f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/awkward/operations/ak_nan_to_num.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def action(layout, backend, **kwargs):

def action(inputs, backend, **kwargs):
if all(isinstance(x, ak.contents.NumpyArray) for x in inputs):
tmp_layout = backend.nplike.asarray(inputs[0].data)
tmp_layout = inputs[0].data
if id(nan) in broadcasting_ids:
tmp_nan = inputs[broadcasting_ids[id(nan)]].to_backend_array()
else:
Expand Down

0 comments on commit e5f6f78

Please sign in to comment.