Skip to content

Commit 58715ec

Browse files
committed
revert abstraction
1 parent 8f6dea9 commit 58715ec

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

.github/workflows/array_api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ jobs:
5757
# for hypothesis-driven test case generation
5858
# pytest $GITHUB_WORKSPACE/tools/pre_compile_ufuncs.py -s
5959
# only run a subset of the conformance tests to get started
60-
pytest array_api_tests/meta/test_broadcasting.py array_api_tests/meta/test_equality_mapping.py array_api_tests/meta/test_signatures.py array_api_tests/meta/test_special_cases.py array_api_tests/test_constants.py array_api_tests/meta/test_utils.py array_api_tests/test_creation_functions.py::test_ones array_api_tests/test_creation_functions.py::test_ones_like array_api_tests/test_data_type_functions.py::test_result_type array_api_tests/test_array_object.py::test_scalar_casting array_api_tests/test_operators_and_elementwise_functions.py::test_sign array_api_tests/test_operators_and_elementwise_functions.py::test_round array_api_tests/test_operators_and_elementwise_functions.py::test_trunc array_api_tests/test_operators_and_elementwise_functions.py::test_ceil array_api_tests/test_operators_and_elementwise_functions.py::test_floor array_api_tests/test_operators_and_elementwise_functions.py::test_isnan array_api_tests/test_operators_and_elementwise_functions.py::test_equal array_api_tests/test_creation_functions.py::test_zeros array_api_tests/test_creation_functions.py::test_zeros_like array_api_tests/test_creation_functions.py::test_full_like
60+
pytest array_api_tests/meta/test_broadcasting.py array_api_tests/meta/test_equality_mapping.py array_api_tests/meta/test_signatures.py array_api_tests/meta/test_special_cases.py array_api_tests/test_constants.py array_api_tests/meta/test_utils.py array_api_tests/test_creation_functions.py::test_ones array_api_tests/test_creation_functions.py::test_ones_like array_api_tests/test_data_type_functions.py::test_result_type array_api_tests/test_array_object.py::test_scalar_casting array_api_tests/test_operators_and_elementwise_functions.py::test_isnan array_api_tests/test_operators_and_elementwise_functions.py::test_equal array_api_tests/test_creation_functions.py::test_zeros array_api_tests/test_creation_functions.py::test_zeros_like array_api_tests/test_creation_functions.py::test_full_like

pykokkos/__init__.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,12 @@
3434
from pykokkos.interface.views import astype
3535

3636
import numpy as np
37-
from pykokkos.lib.pk_array import PKArray
3837

3938

40-
def _pk_func(np_func):
41-
def wrapper(*args, **kwargs):
42-
return PKArray(np_func(*args, **kwargs))
43-
44-
return wrapper
45-
46-
47-
isnan = _pk_func(np.isnan)
48-
isinf = _pk_func(np.isinf)
49-
isfinite = _pk_func(np.isfinite)
50-
equal = _pk_func(np.equal)
51-
sign = _pk_func(np.sign)
52-
round = _pk_func(np.round)
53-
trunc = _pk_func(np.trunc)
54-
ceil = _pk_func(np.ceil)
55-
floor = _pk_func(np.floor)
56-
39+
isnan = np.isnan
40+
isinf = np.isinf
41+
isfinite = np.isfinite
42+
equal = np.equal
5743

5844
runtime_singleton.runtime = Runtime()
5945

0 commit comments

Comments
 (0)