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)

After Change


        function_outputs_list = [f([input_val])[0] for f in f_list]
        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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

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: maxpumperla/elephas
Commit Name: 15d1eb2dbc7c60c11aaf4219a20c0bd66d9fa0ca
Time: 2021-01-01
Author: danielenricocahall@gmail.com
File Name: elephas/utils/functional_utils.py
Class Name:
Method Name: subtract_params


Project Name: maxpumperla/elephas
Commit Name: 15d1eb2dbc7c60c11aaf4219a20c0bd66d9fa0ca
Time: 2021-01-01
Author: danielenricocahall@gmail.com
File Name: elephas/utils/functional_utils.py
Class Name:
Method Name: add_params