Skip to content

Commit 7d61aa0

Browse files
Added type check for mkl_verbose function
1 parent 09ee83a commit 7d61aa0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mkl-service/_mkl_service.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ def mkl_set_env_mode(mode):
222222
return mkl.mkl_set_env_mode(mode)
223223

224224

225-
def mkl_verbose(enable):
226-
# ToDo: type - bool
227-
return mkl.mkl_verbose(enable)
225+
def mkl_verbose(isEnabled):
226+
assert(type(isEnabled) is bool)
227+
return mkl.mkl_verbose(isEnabled)
228228

229229

230230
def mkl_set_mpi(vendor, custom_library_name):

0 commit comments

Comments
 (0)