Skip to content

Commit 764f0d9

Browse files
committed
Merge pull request #62 from bergkoet/hotfix
Fixes typo that prevented setting backend.
2 parents dffa4f2 + da1cad5 commit 764f0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def set_backend(name, unsafe=False):
496496
unsafe : optional: bool. Default: False.
497497
If False, does not switch backend if current backend is not unified backend.
498498
"""
499-
if (backend.is_unified() == False and unsanfe == False):
499+
if (backend.is_unified() == False and unsafe == False):
500500
raise RuntimeError("Can not change backend after loading %s" % name)
501501

502502
if (backend.is_unified()):

0 commit comments

Comments
 (0)