c2244d2a4cb5f86968fb117f75469283a19b8a24,tests/keras/backend/backend_test.py,TestBackend,test_sparse_dot,#TestBackend#,1832
Before Change
backends.append(KTH)
for k in backends:
t_W = k.variable(W)
k_s = k.eval(k.dot(k.variable(x_sparse), t_W))
k_d = k.eval(k.dot(k.variable(x_dense), t_W))
assert k_s.shape == k_d.shape
assert_allclose(k_s, k_d, atol=1e-05)
After Change
W = np.random.random((5, 4))
t_W = K.variable(W)
k_s = K.eval(K.dot(K.variable(x_sparse), t_W))
k_d = K.eval(K.dot(K.variable(x_dense), t_W))
assert k_s.shape == k_d.shape
assert_allclose(k_s, k_d, atol=1e-05)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: keras-team/keras
Commit Name: c2244d2a4cb5f86968fb117f75469283a19b8a24
Time: 2018-10-21
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_sparse_dot
Project Name: keras-team/keras
Commit Name: b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe
Time: 2017-07-29
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_gather
Project Name: keras-team/keras
Commit Name: 907e8035656b0597a7a2f3cc1bf237a8cbf48821
Time: 2018-08-21
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_one_hot