File tree 2 files changed +6
-12
lines changed
2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 30
30
torch .int32 ,
31
31
torch .int64 ,
32
32
}
33
+ try :
34
+ # torch >=2.3
35
+ _int_dtypes |= {torch .uint16 , torch .uint32 , torch .uint64 }
36
+ except AttributeError :
37
+ pass
38
+
33
39
34
40
_array_api_dtypes = {
35
41
torch .bool ,
Original file line number Diff line number Diff line change @@ -8,24 +8,12 @@ array_api_tests/test_array_object.py::test_getitem
8
8
array_api_tests/test_array_object.py::test_setitem
9
9
# Masking doesn't suport 0 dimensions in the mask
10
10
array_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)]
18
11
19
12
# Overflow error from large inputs
20
13
array_api_tests/test_creation_functions.py::test_arange
21
14
# pytorch linspace bug (should be fixed in torch 2.0)
22
15
array_api_tests/test_creation_functions.py::test_linspace
23
16
24
- # torch doesn't have higher uint dtypes
25
- array_api_tests/test_data_type_functions.py::test_iinfo[uint16]
26
- array_api_tests/test_data_type_functions.py::test_iinfo[uint32]
27
- array_api_tests/test_data_type_functions.py::test_iinfo[uint64]
28
-
29
17
# We cannot wrap the tensor object
30
18
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]
31
19
array_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