b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,,check_composed_tensor_operations,#Any#Any#Any#Any#Any#Any#,116
Before Change
second_function_name, second_function_args,
input_shape, backend_list):
val = np.random.random(input_shape) - 0.5
x_list = [k.variable(val) for k in backend_list]
y_list = []
for x, k in zip(x_list, backend_list):
y_list.append(getattr(k, first_function_name)(x, **first_function_args))
z_list = []
for y, k in zip(y_list, backend_list):
z_list.append(k.eval(getattr(k, second_function_name)(y, **second_function_args)))
After Change
val = np.random.random(input_shape) - 0.5
z_list = []
for k in backend_list:
x = k.variable(val)
y = getattr(k, first_function_name)(x, **first_function_args)
z = k.eval(getattr(k, second_function_name)(y, **second_function_args))
z_list += [z]
assert_list_pairwise(z_list)
class TestBackend(object):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
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:
Method Name: check_composed_tensor_operations
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: 94dbc3042f5a85b399f5ce2859d4e8fbafd235b9
Time: 2017-07-06
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name: check_single_tensor_operation
Project Name: keras-team/keras
Commit Name: 94dbc3042f5a85b399f5ce2859d4e8fbafd235b9
Time: 2017-07-06
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name: check_two_tensor_operation