b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,TestBackend,test_function,#TestBackend#,506
Before Change
assert function_outputs_list[i].shape == function_outputs_list[i + 1].shape
assert_allclose(function_outputs_list[i], function_outputs_list[i + 1], atol=1e-05)
new_val_list = []
for x, k in zip(x_list, test_backend):
new_val_list.append(k.get_value(x))
for i in range(len(new_val_list) - 1):
assert new_val_list[i].shape == new_val_list[i + 1].shape
assert_allclose(new_val_list[i], new_val_list[i + 1], atol=1e-05)
def test_rnn(self):
// implement a simple RNN
input_dim = 8
output_dim = 4
After Change
assert_list_pairwise(function_outputs_list)
new_val_list = [k.get_value(x) for x, k in zip(x_list, test_backend)]
assert_list_pairwise(new_val_list)
def test_rnn(self):
// implement a simple RNN
input_dim = 8
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
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_function
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:
Method Name: check_composed_tensor_operations
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_concat