cc5e7d00a6696a8cf6e40686455e7e034fbf26ff,testing/test_kerns.py,TestAdd,test_asym,#TestAdd#,308
Before Change
def test_asym(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")
Z = tf.placeholder("float64")
X_data = self.rng.randn(10, 1)
Z_data = self.rng.randn(12, 1)
After Change
res = []
for k in self.kernels:
k.compile()
res.append(k.session.run(k.K(X, Z), feed_dict={X: X_data, Z: Z_data}) )
self.assertTrue(np.allclose(res[0] + res[1], res[2]))
In pattern: SUPERPATTERN
Frequency: 4
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_asym
Project Name: GPflow/GPflow
Commit Name: 49a385eae93032125a6718433b3ca1753aee3b1e
Time: 2017-11-02
Author: art.art.v@gmail.com
File Name: testing/test_method_equivalence.py
Class Name: TestEquivalence
Method Name: test_all
Project Name: ray-project/ray
Commit Name: 460c2757a3a954f4de8812381bf83b86ecc07ec3
Time: 2021-03-03
Author: antoine@foobot.io
File Name: python/ray/experimental/tf_utils.py
Class Name: TensorFlowVariables
Method Name: set_weights
Project Name: NervanaSystems/coach
Commit Name: 619ea0944e1f652a426045038ee2977996733758
Time: 2019-01-02
Author: gouravr@amazon.com
File Name: rl_coach/architectures/tensorflow_components/savers.py
Class Name: GlobalVariableSaver
Method Name: restore