File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 33test.py
44github_ssh
55github_ssh.pub
6+ mkl_rt.2.dll
67
78
89# =================== PYCHARM ===================
Original file line number Diff line number Diff line change 55import os
66if "MKL_NUM_THREADS" not in os .environ :
77 os .environ ["MKL_NUM_THREADS" ] = str (os .cpu_count ())
8- import sparse_dot_mkl
8+
9+
10+ __pygrank_sparse_dot_mkl_warning = False
11+ try :
12+ import sparse_dot_mkl
13+ except Exception as e :
14+ __pygrank_sparse_dot_mkl_warning = True
15+ warnings .warn ("sparse_dot_mkl could not be imported.\n "
16+ "Please check your environment setup."
17+ "Falling back to numpy implementation for this backend." )
18+ warnings .warn (str (e ))
919
1020
1121def backend_init ():
@@ -61,8 +71,6 @@ def self_normalize(obj):
6171 obj = obj / np_sum
6272 return obj
6373
64- __pygrank_sparse_dot_mkl_warning = False
65-
6674
6775def conv (signal , M ):
6876 global __pygrank_sparse_dot_mkl_warning
You can’t perform that action at this time.
0 commit comments