cc5e7d00a6696a8cf6e40686455e7e034fbf26ff,testing/test_kerns.py,TestAdd,test_sym,#TestAdd#,295
Before Change
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]:
with k.tf_mode():
After Change
X = tf.placeholder(tf.float64)
X_data = self.rng.randn(10, 1)
res = []
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():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_sym
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestKernSymmetry
Method Name: test_5d
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestKernSymmetry
Method Name: test_1d