b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,TestBackend,test_tile,#TestBackend#,303

Before Change


        for i in range(len(z_list) - 1):
            assert_allclose(z_list[i], z_list[i + 1], atol=1e-05)
            if hasattr(z_list[i], "_keras_shape"):
                assert z_list[i]._keras_shape == z_list[i].shape

        check_single_tensor_operation("tile", (2, 5), BACKENDS, n=[5, 2])

        // test theano shape inference when

After Change


    def test_tile(self):
        shape = (3, 4)
        arr = np.arange(np.prod(shape)).reshape(shape)
        check_single_tensor_operation("tile", arr, BACKENDS, n=[2, 1])
        check_single_tensor_operation("tile", (2, 5), BACKENDS, n=[5, 2])

        // test theano shape inference when
        // input shape has None entries
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

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_tile


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_random_variables


Project Name: keras-team/keras
Commit Name: 545acc4b66b5fb0ed5457ef7288d836f022c118d
Time: 2018-09-01
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_eye


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_spatial_2d_padding


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_repeat_elements