diff --git a/GPy/kern/src/static.py b/GPy/kern/src/static.py index e02513378..a854fe416 100644 --- a/GPy/kern/src/static.py +++ b/GPy/kern/src/static.py @@ -68,6 +68,11 @@ def to_dict(self): input_dict = super(White, self)._save_to_input_dict() input_dict["class"] = "GPy.kern.White" return input_dict + + @staticmethod + def _build_from_input_dict(kernel_class, input_dict): + useGPU = input_dict.pop('useGPU', None) + return White(**input_dict) def K(self, X, X2=None): if X2 is None: