-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: use to_backend_array() instead of `asarray` * test: ensure nan_to_num doesn't break * refactor: remove `asarray`
- Loading branch information
Showing
2 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE | ||
|
||
import pytest | ||
|
||
import awkward as ak | ||
|
||
pytest.importorskip("jax") | ||
|
||
ak.jax.register_and_check() | ||
|
||
|
||
def test(): | ||
ak.nan_to_num( | ||
ak.Array([1, 2, 3], backend="jax"), nan=ak.Array([1, 2, 3], backend="jax") | ||
) |