From 7376627895996d33ba32e2ea3a38151f2227f06f Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Thu, 3 Sep 2015 10:23:09 +0100 Subject: [PATCH] [magnification] static corrections --- GPy/kern/_src/static.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPy/kern/_src/static.py b/GPy/kern/_src/static.py index b32077e9..e7bee6c2 100644 --- a/GPy/kern/_src/static.py +++ b/GPy/kern/_src/static.py @@ -25,6 +25,8 @@ class Static(Kern): return np.zeros(X.shape) def gradients_XX(self, dL_dK, X, X2): + if X2 is None: + X2 = X return np.zeros((X.shape[0], X2.shape[0], X.shape[1]), dtype=np.float64) def gradients_XX_diag(self, dL_dKdiag, X): return np.zeros(X.shape)