We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dffa4f2 + da1cad5 commit 764f0d9Copy full SHA for 764f0d9
arrayfire/library.py
@@ -496,7 +496,7 @@ def set_backend(name, unsafe=False):
496
unsafe : optional: bool. Default: False.
497
If False, does not switch backend if current backend is not unified backend.
498
"""
499
- if (backend.is_unified() == False and unsanfe == False):
+ if (backend.is_unified() == False and unsafe == False):
500
raise RuntimeError("Can not change backend after loading %s" % name)
501
502
if (backend.is_unified()):
0 commit comments