Skip to content

Commit

Permalink
Address xfails
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Jan 31, 2025
1 parent 039264d commit 4f49320
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 2 additions & 0 deletions ndonnx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
inf,
nan,
pi,
newaxis,
)

try:
Expand All @@ -185,6 +186,7 @@
"inf",
"nan",
"pi",
"newaxis",
"arange",
"asarray",
"empty",
Expand Down
20 changes: 10 additions & 10 deletions ndonnx/_data_types/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ def canonical_name(dtype: CoreType) -> str:

_kinds = {
bool: ("bool",),
int8: ("signed integer", "integer", "numeric"),
int16: ("signed integer", "integer", "numeric"),
int32: ("signed integer", "integer", "numeric"),
int64: ("signed integer", "integer", "numeric"),
uint8: ("unsigned integer", "integer", "numeric"),
uint16: ("unsigned integer", "integer", "numeric"),
uint32: ("unsigned integer", "integer", "numeric"),
uint64: ("unsigned integer", "integer", "numeric"),
float32: ("floating", "numeric"),
float64: ("floating", "numeric"),
int8: ("signed integer", "integral", "numeric"),
int16: ("signed integer", "integral", "numeric"),
int32: ("signed integer", "integral", "numeric"),
int64: ("signed integer", "integral", "numeric"),
uint8: ("unsigned integer", "integral", "numeric"),
uint16: ("unsigned integer", "integral", "numeric"),
uint32: ("unsigned integer", "integral", "numeric"),
uint64: ("unsigned integer", "integral", "numeric"),
float32: ("real floating", "numeric"),
float64: ("real floating", "numeric"),
}


Expand Down
4 changes: 0 additions & 4 deletions xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
array_api_tests/test_searching_functions.py::test_argmin
array_api_tests/test_searching_functions.py::test_argmax

array_api_tests/test_constants.py::test_newaxis
array_api_tests/test_creation_functions.py::test_eye
array_api_tests/test_creation_functions.py::test_meshgrid
array_api_tests/test_data_type_functions.py::test_can_cast
array_api_tests/test_data_type_functions.py::test_isdtype
array_api_tests/test_has_names.py::test_has_names[array_method-__complex__]
array_api_tests/test_has_names.py::test_has_names[array_method-__dlpack__]
array_api_tests/test_has_names.py::test_has_names[array_method-__dlpack_device__]
Expand Down

0 comments on commit 4f49320

Please sign in to comment.