with self.test_context() as sess:
kernels = [K(1) for K in self.kernels]
x_free = tf.placeholder("float64")
[k.make_tf_array(x_free) for k in kernels]
X = tf.placeholder("float64")
X_data = self.rng.randn(10, 1)
for k in kernels:
with k.tf_mode():
After Change
def test_1d(self):
with self.test_context():
kernels = [K(1) for K in self.kernels]
for kernel in kernels:
kernel.compile()
X = tf.placeholder(tf.float64)
X_data = self.rng.randn(10, 1)
for k in kernels:
errors = k.session.run(k.K(X) - k.K(X, X), feed_dict={X: X_data})