def test_sym(self):
with self.test_context() as sess:
x_free = tf.placeholder("float64")
[k.make_tf_array(x_free) for k in (self.rbf, self.lin, self.k)]
X = tf.placeholder("float64")
X_data = self.rng.randn(10, 1)
for k in [self.rbf, self.lin, self.k]:
After Change
for k in self.kernels:
k.compile()
res.append(k.session.run(k.K(X), feed_dict={X: X_data}))
self.assertTrue(np.allclose(res[0] + res[1], res[2]))
def test_asym(self):
with self.test_context():
X = tf.placeholder(tf.float64)