Skip to content

Commit cb951b3

Browse files
Upgrade finch-tensor (#702)
* Upgrade finch-tensor * Bump finch-tensor version --------- Co-authored-by: Hameer Abbasi <[email protected]>
1 parent 3caff33 commit cb951b3

File tree

4 files changed

+10
-18
lines changed

4 files changed

+10
-18
lines changed

ci/Finch-array-api-xfails.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ array_api_tests/test_signatures.py::test_func_signature[unique_counts]
1111
array_api_tests/test_signatures.py::test_func_signature[unique_inverse]
1212
array_api_tests/test_signatures.py::test_func_signature[unique_values]
1313
# creation functions
14-
array_api_tests/test_signatures.py::test_func_signature[empty]
15-
array_api_tests/test_signatures.py::test_func_signature[empty_like]
16-
array_api_tests/test_signatures.py::test_func_signature[arange]
17-
array_api_tests/test_signatures.py::test_func_signature[linspace]
1814
array_api_tests/test_signatures.py::test_func_signature[meshgrid]
1915
array_api_tests/test_signatures.py::test_func_signature[tril]
2016
array_api_tests/test_signatures.py::test_func_signature[triu]
@@ -72,10 +68,6 @@ array_api_tests/test_signatures.py::test_array_method_signature[__setitem__]
7268
# test_creation_functions
7369

7470
# not implemented
75-
array_api_tests/test_creation_functions.py::test_arange
76-
array_api_tests/test_creation_functions.py::test_empty
77-
array_api_tests/test_creation_functions.py::test_empty_like
78-
array_api_tests/test_creation_functions.py::test_linspace
7971
array_api_tests/test_creation_functions.py::test_meshgrid
8072

8173
# test_array_object
@@ -87,10 +79,6 @@ array_api_tests/test_array_object.py::test_setitem_masking
8779

8880
# test_operators_and_elementwise_functions
8981

90-
# ArgumentError: invalid rational: zero(...)//zero(...)
91-
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[floor_divide(x1, x2)]
92-
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[__floordiv__(x1, x2)]
93-
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[__ifloordiv__(x1, x2)]
9482
# throws for x < 1 instead of NaN
9583
array_api_tests/test_operators_and_elementwise_functions.py::test_acosh
9684
# not implemented
@@ -142,11 +130,7 @@ array_api_tests/test_has_names.py::test_has_names[set-unique_values]
142130
array_api_tests/test_has_names.py::test_has_names[searching-argmax]
143131
array_api_tests/test_has_names.py::test_has_names[searching-argmin]
144132
array_api_tests/test_has_names.py::test_has_names[searching-searchsorted]
145-
array_api_tests/test_has_names.py::test_has_names[creation-arange]
146-
array_api_tests/test_has_names.py::test_has_names[creation-empty]
147-
array_api_tests/test_has_names.py::test_has_names[creation-empty_like]
148133
array_api_tests/test_has_names.py::test_has_names[creation-from_dlpack]
149-
array_api_tests/test_has_names.py::test_has_names[creation-linspace]
150134
array_api_tests/test_has_names.py::test_has_names[creation-meshgrid]
151135
array_api_tests/test_has_names.py::test_has_names[creation-tril]
152136
array_api_tests/test_has_names.py::test_has_names[creation-triu]

examples/matmul_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
@sparse.compiled
3333
def sddmm_finch(a, b):
34-
return sparse.sum(a[:, None, :] * sparse.permute_dims(b, (1, 0))[None, :, :], axis=-1)
34+
return a @ b
3535

3636
# Compile
3737
result_finch = sddmm_finch(a, b)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tests = [
3939
]
4040
tox = ["sparse[tests]", "tox"]
4141
all = ["sparse[docs,tox]", "matrepr"]
42-
finch = ["finch-tensor>=0.1.27"]
42+
finch = ["finch-tensor>=0.1.30"]
4343

4444
[project.urls]
4545
Documentation = "https://sparse.pydata.org/"

sparse/finch_backend/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
add,
1212
all,
1313
any,
14+
arange,
1415
asarray,
1516
asin,
1617
asinh,
@@ -36,6 +37,8 @@
3637
cosh,
3738
divide,
3839
e,
40+
empty,
41+
empty_like,
3942
equal,
4043
exp,
4144
expm1,
@@ -64,6 +67,7 @@
6467
lazy,
6568
less,
6669
less_equal,
70+
linspace,
6771
log,
6872
log1p,
6973
log2,
@@ -223,4 +227,8 @@
223227
"real",
224228
"imag",
225229
"conj",
230+
"empty",
231+
"empty_like",
232+
"arange",
233+
"linspace",
226234
]

0 commit comments

Comments
 (0)