b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,,check_composed_tensor_operations,#Any#Any#Any#Any#Any#Any#,116

Before Change


    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):

After Change


    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)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: f99f633725815635a1cf24aa2dd70bdb094ed7aa
Time: 2018-08-13
Author: ybliang8@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name: check_two_tensor_operation


Project Name: keras-team/keras
Commit Name: f99f633725815635a1cf24aa2dd70bdb094ed7aa
Time: 2018-08-13
Author: ybliang8@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name: check_single_tensor_operation