Skip to content

Commit b619c53

Browse files
committed
FEAT: Adding init function to ease interop with other libraries
1 parent d62e838 commit b619c53

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arrayfire/device.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
from .library import *
1414
from .util import (safe_call, to_str)
1515

16+
def init():
17+
"""
18+
Note
19+
-----
20+
This function may need to be called when interoperating with other libraries
21+
"""
22+
safe_call(backend.get().af_init())
23+
1624
def info():
1725
"""
1826
Displays the information about the following:

0 commit comments

Comments
 (0)