Skip to content

Commit 0fede67

Browse files
authored
MAINT: Use asterisk import for finch-tensor (#857)
1 parent 281d5eb commit 0fede67

File tree

1 file changed

+2
-239
lines changed

1 file changed

+2
-239
lines changed

sparse/finch_backend/__init__.py

Lines changed: 2 additions & 239 deletions
Original file line numberDiff line numberDiff line change
@@ -3,242 +3,5 @@
33
except ModuleNotFoundError as e:
44
raise ImportError("Finch not installed. Run `pip install sparse[finch]` to enable Finch backend") from e
55

6-
from finch import (
7-
DefaultScheduler,
8-
GalleyScheduler,
9-
SparseArray,
10-
abs,
11-
acos,
12-
acosh,
13-
add,
14-
all,
15-
any,
16-
arange,
17-
asarray,
18-
asin,
19-
asinh,
20-
astype,
21-
atan,
22-
atan2,
23-
atanh,
24-
bitwise_and,
25-
bitwise_invert,
26-
bitwise_left_shift,
27-
bitwise_or,
28-
bitwise_right_shift,
29-
bitwise_xor,
30-
bool,
31-
can_cast,
32-
ceil,
33-
compiled,
34-
complex64,
35-
complex128,
36-
compute,
37-
conj,
38-
cos,
39-
cosh,
40-
divide,
41-
e,
42-
empty,
43-
empty_like,
44-
equal,
45-
exp,
46-
expm1,
47-
eye,
48-
finfo,
49-
float16,
50-
float32,
51-
float64,
52-
floor,
53-
floor_divide,
54-
full,
55-
full_like,
56-
greater,
57-
greater_equal,
58-
iinfo,
59-
imag,
60-
inf,
61-
int8,
62-
int16,
63-
int32,
64-
int64,
65-
int_,
66-
isfinite,
67-
isinf,
68-
isnan,
69-
lazy,
70-
less,
71-
less_equal,
72-
linalg,
73-
linspace,
74-
log,
75-
log1p,
76-
log2,
77-
log10,
78-
logaddexp,
79-
logical_and,
80-
logical_or,
81-
logical_xor,
82-
matmul,
83-
max,
84-
min,
85-
moveaxis,
86-
multiply,
87-
nan,
88-
negative,
89-
newaxis,
90-
nonzero,
91-
not_equal,
92-
ones,
93-
ones_like,
94-
permute_dims,
95-
pi,
96-
positive,
97-
pow,
98-
prod,
99-
random,
100-
real,
101-
remainder,
102-
reshape,
103-
round,
104-
set_optimizer,
105-
sign,
106-
sin,
107-
sinh,
108-
sqrt,
109-
square,
110-
subtract,
111-
sum,
112-
tan,
113-
tanh,
114-
tensordot,
115-
trunc,
116-
uint,
117-
uint8,
118-
uint16,
119-
uint32,
120-
uint64,
121-
where,
122-
zeros,
123-
zeros_like,
124-
)
125-
126-
__all__ = [
127-
"DefaultScheduler",
128-
"GalleyScheduler",
129-
"SparseArray",
130-
"abs",
131-
"acos",
132-
"acosh",
133-
"add",
134-
"asarray",
135-
"asin",
136-
"asinh",
137-
"astype",
138-
"atan",
139-
"atan2",
140-
"atanh",
141-
"bitwise_and",
142-
"bitwise_invert",
143-
"bitwise_left_shift",
144-
"bitwise_or",
145-
"bitwise_right_shift",
146-
"bitwise_xor",
147-
"bool",
148-
"compiled",
149-
"complex64",
150-
"complex128",
151-
"compute",
152-
"cos",
153-
"cosh",
154-
"divide",
155-
"eye",
156-
"float16",
157-
"float32",
158-
"float64",
159-
"floor_divide",
160-
"int8",
161-
"int16",
162-
"int32",
163-
"int64",
164-
"int_",
165-
"lazy",
166-
"linalg",
167-
"matmul",
168-
"multiply",
169-
"negative",
170-
"permute_dims",
171-
"moveaxis",
172-
"positive",
173-
"pow",
174-
"prod",
175-
"random",
176-
"sin",
177-
"sinh",
178-
"subtract",
179-
"sum",
180-
"tan",
181-
"tanh",
182-
"tensordot",
183-
"uint",
184-
"uint8",
185-
"uint16",
186-
"uint32",
187-
"uint64",
188-
"max",
189-
"min",
190-
"all",
191-
"any",
192-
"log",
193-
"log10",
194-
"log1p",
195-
"log2",
196-
"sqrt",
197-
"exp",
198-
"expm1",
199-
"sign",
200-
"round",
201-
"floor",
202-
"ceil",
203-
"nonzero",
204-
"where",
205-
"full",
206-
"full_like",
207-
"ones",
208-
"ones_like",
209-
"zeros",
210-
"zeros_like",
211-
"equal",
212-
"not_equal",
213-
"less",
214-
"less_equal",
215-
"greater",
216-
"greater_equal",
217-
"e",
218-
"pi",
219-
"inf",
220-
"nan",
221-
"newaxis",
222-
"isnan",
223-
"isfinite",
224-
"isinf",
225-
"reshape",
226-
"square",
227-
"logaddexp",
228-
"trunc",
229-
"remainder",
230-
"logical_and",
231-
"logical_or",
232-
"logical_xor",
233-
"finfo",
234-
"iinfo",
235-
"can_cast",
236-
"real",
237-
"imag",
238-
"conj",
239-
"empty",
240-
"empty_like",
241-
"arange",
242-
"linspace",
243-
"set_optimizer",
244-
]
6+
from finch import * # noqa: F403
7+
from finch import __all__ as __all__

0 commit comments

Comments
 (0)