mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 22:06:22 +02:00
[GPU] caching not working
This commit is contained in:
parent
934ecc7e95
commit
5e01b94d37
1 changed files with 3 additions and 2 deletions
|
|
@ -328,6 +328,7 @@ class PSICOMP_SSRBF(object):
|
||||||
self.gpuCacheAll = None
|
self.gpuCacheAll = None
|
||||||
self.gpuCache = None
|
self.gpuCache = None
|
||||||
|
|
||||||
|
@Cache_this(limit=1)
|
||||||
def psicomputations(self, variance, lengthscale, Z, mu, S, gamma):
|
def psicomputations(self, variance, lengthscale, Z, mu, S, gamma):
|
||||||
"""Compute Psi statitsitcs"""
|
"""Compute Psi statitsitcs"""
|
||||||
if isinstance(lengthscale, np.ndarray) and len(lengthscale)>1:
|
if isinstance(lengthscale, np.ndarray) and len(lengthscale)>1:
|
||||||
|
|
@ -370,9 +371,9 @@ class PSICOMP_SSRBF(object):
|
||||||
comp_psi1(psi1_gpu, variance, l_gpu, Z_gpu, mu_gpu, S_gpu, logGamma_gpu, log1Gamma_gpu, logpsi1denom_gpu, N, M, Q)
|
comp_psi1(psi1_gpu, variance, l_gpu, Z_gpu, mu_gpu, S_gpu, logGamma_gpu, log1Gamma_gpu, logpsi1denom_gpu, N, M, Q)
|
||||||
comp_psi2(psi2_gpu, variance, l_gpu, Z_gpu, mu_gpu, S_gpu, logGamma_gpu, log1Gamma_gpu, logpsi2denom_gpu, N, M, Q)
|
comp_psi2(psi2_gpu, variance, l_gpu, Z_gpu, mu_gpu, S_gpu, logGamma_gpu, log1Gamma_gpu, logpsi2denom_gpu, N, M, Q)
|
||||||
|
|
||||||
# return psi0_gpu.get(), psi1_gpu.get(), psi2_gpu.get()
|
|
||||||
return psi0_gpu, psi1_gpu, psi2_gpu
|
return psi0_gpu, psi1_gpu, psi2_gpu
|
||||||
|
|
||||||
|
@Cache_this(limit=1)
|
||||||
def _psiDercomputations(self, variance, lengthscale, Z, mu, S, gamma):
|
def _psiDercomputations(self, variance, lengthscale, Z, mu, S, gamma):
|
||||||
"""Compute the derivatives w.r.t. Psi statistics"""
|
"""Compute the derivatives w.r.t. Psi statistics"""
|
||||||
N, M, Q = mu.shape[0],Z.shape[0], mu.shape[1]
|
N, M, Q = mu.shape[0],Z.shape[0], mu.shape[1]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue