File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 3131 torch .int32 ,
3232 torch .int64 ,
3333}
34- try :
35- # torch >=2.3
36- _int_dtypes |= {torch .uint16 , torch .uint32 , torch .uint64 }
37- except AttributeError :
38- pass
39-
4034
4135_array_api_dtypes = {
4236 torch .bool ,
Original file line number Diff line number Diff line change @@ -8,11 +8,23 @@ array_api_tests/test_array_object.py::test_getitem
88array_api_tests/test_array_object.py::test_setitem
99# Masking doesn't suport 0 dimensions in the mask
1010array_api_tests/test_array_object.py::test_getitem_masking
11+ # torch doesn't have uint dtypes other than uint8
12+ array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint16)]
13+ array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint32)]
14+ array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint64)]
15+ array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint16)]
16+ array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint32)]
17+ array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint64)]
1118
1219# Overflow error from large inputs
1320array_api_tests/test_creation_functions.py::test_arange
1421# pytorch linspace bug (should be fixed in torch 2.0)
1522
23+ # torch doesn't have higher uint dtypes
24+ array_api_tests/test_data_type_functions.py::test_iinfo[uint16]
25+ array_api_tests/test_data_type_functions.py::test_iinfo[uint32]
26+ array_api_tests/test_data_type_functions.py::test_iinfo[uint64]
27+
1628# We cannot wrap the tensor object
1729array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]
1830array_api_tests/test_has_names.py::test_has_names[array_method-to_device]
You can’t perform that action at this time.
0 commit comments