cc5e7d00a6696a8cf6e40686455e7e034fbf26ff,testing/test_kerns.py,TestArcCosine,test_nan_in_gradient,#TestArcCosine#,114
Before Change
X_data = rng.rand(N, D)
kernel = gpflow.kernels.ArcCosine(D)
x_free = tf.placeholder("float64")
kernel.make_tf_array(x_free)
X = tf.placeholder("float64")
with kernel.tf_mode():
After Change
X = tf.placeholder(tf.float64)
kernel.compile()
grads = tf.gradients(kernel.K(X), X)
gradients = kernel.session.run(grads, feed_dict={X: X_data})
self.assertFalse(np.any(np.isnan(gradients)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: TestArcCosine
Method Name: test_nan_in_gradient
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: keras-team/keras
Commit Name: 114b82a212ed2b2590d45550c41c3384ffa0d53e
Time: 2016-11-01
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: