mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-29 14:56:24 +02:00
reenabling gil
This commit is contained in:
parent
6068369979
commit
521ca142bb
1 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ def backprop_gradient_par(double[:,:] dL, double[:,:] L):
|
|||
dL_dK[k, k] /= (2. * L[k, k])
|
||||
return dL_dK
|
||||
|
||||
cdef void chol_backprop(int N, double[:, ::1] dL, double[:, ::1] L):# nogil:
|
||||
cdef void chol_backprop(int N, double[:, ::1] dL, double[:, ::1] L) nogil:
|
||||
cdef int i, k, n
|
||||
|
||||
# DSYMV required constant arguments
|
||||
|
|
@ -109,6 +109,6 @@ def backprop_gradient_par_c(double[:, :] dL, double[:, :] L):
|
|||
cdef double[:, ::1] dL_dK = np.tril(dL) # makes a copy, c-contig
|
||||
cdef double[:, ::1] L_cont = np.ascontiguousarray(L)
|
||||
cdef int N = L.shape[0]
|
||||
if True:#with nogil:
|
||||
with nogil:
|
||||
chol_backprop(N, dL_dK, L_cont)
|
||||
return np.asarray(dL_dK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue