cc5e7d00a6696a8cf6e40686455e7e034fbf26ff,testing/test_kerns.py,TestAdd,test_sym,#TestAdd#,295

Before Change


            X = tf.placeholder("float64")
            X_data = self.rng.randn(10, 1)
            for k in [self.rbf, self.lin, self.k]:
                with k.tf_mode():
                    k._K = sess.run(
                        k.K(X),
                        feed_dict={x_free: k.get_free_state(), X: X_data})
            self.assertTrue(np.allclose(self.rbf._K + self.lin._K, self.k._K))

    def test_asym(self):
        with self.test_context() as sess:

After Change


            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():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: dmlc/gluon-nlp
Commit Name: 090944e816fd3ff8e861fba4452851e0a901491d
Time: 2019-01-28
Author: linhaibin.eric@gmail.com
File Name: scripts/language_model/large_word_language_model.py
Class Name:
Method Name: train


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_asym