mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
enable gpu for inference X
This commit is contained in:
parent
6c0d3a8a16
commit
8856144890
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,8 @@ class Inference_X(Model):
|
|||
super(Inference_X, self).__init__(name)
|
||||
self.likelihood = model.likelihood.copy()
|
||||
self.kern = model.kern.copy()
|
||||
if model.kern.useGPU:
|
||||
self.kern.GPU(True)
|
||||
from copy import deepcopy
|
||||
self.posterior = deepcopy(model.posterior)
|
||||
self.variational_prior = model.variational_prior.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue