From da1cad5257185196e7bd82824ed9b962b7725c60 Mon Sep 17 00:00:00 2001 From: Matthew Bergkoetter Date: Sun, 21 Feb 2016 12:29:00 -0500 Subject: [PATCH] Fixes typo that prevented setting backend. --- arrayfire/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrayfire/library.py b/arrayfire/library.py index 91ba1af70..9748f6c39 100644 --- a/arrayfire/library.py +++ b/arrayfire/library.py @@ -496,7 +496,7 @@ def set_backend(name, unsafe=False): unsafe : optional: bool. Default: False. If False, does not switch backend if current backend is not unified backend. """ - if (backend.is_unified() == False and unsanfe == False): + if (backend.is_unified() == False and unsafe == False): raise RuntimeError("Can not change backend after loading %s" % name) if (backend.is_unified()):