Skip to content

Commit b31ec5a

Browse files
committed
Avoid problems with circular import
1 parent c4d89cd commit b31ec5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arrayfire/array.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from .base import *
2020
from .index import *
2121
from .index import _Index4
22-
from .algorithm import sum
2322

2423
def _create_array(buf, numdims, idims, dtype):
2524
out_arr = ct.c_void_p(0)
@@ -1059,3 +1058,5 @@ def display(a):
10591058
safe_call(backend.get().af_print_array(a.arr))
10601059
except:
10611060
safe_call(backend.get().af_print_array(a.arr))
1061+
1062+
from .algorithm import sum

0 commit comments

Comments
 (0)