5e797436c3defd2d863ac1ffab11c48dbd42588e,tests/keras/backend/backend_test.py,TestBackend,test_conv3d,#TestBackend#,845

Before Change


        kernel_val = np.random.random(kernel_shape) - 0.5
        // Test invalid use cases
        for k in BACKENDS:
            with pytest.raises(ValueError):
                k.conv3d(k.variable(xval), k.variable(kernel_val), data_format="channels_middle")

    def test_separable_conv2d(self):

After Change


        // TF input shape: (samples, conv_dim1, conv_dim2, conv_dim3, input_depth)
        // TH kernel shape: (depth, input_depth, x, y, z)
        // TF kernel shape: (x, y, z, input_depth, depth)
        for (input_shape, kernel_shape, data_format) in [
                ((2, 3, 4, 5, 4), (2, 2, 2, 3, 4), "channels_first"),
                ((2, 3, 5, 4, 6), (3, 2, 4, 3, 4), "channels_first"),
                ((1, 2, 2, 2, 1), (2, 2, 2, 1, 1), "channels_last")]:
            check_two_tensor_operation("conv3d", input_shape, kernel_shape,
                                       BACKENDS, cntk_dynamicity=True,
                                       data_format=data_format)

    def test_separable_conv2d(self):
        for (input_shape, data_format) in [
                ((2, 3, 4, 5), "channels_first"),
                ((2, 3, 5, 6), "channels_first"),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: 5e797436c3defd2d863ac1ffab11c48dbd42588e
Time: 2018-02-25
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_conv3d


Project Name: keras-team/keras
Commit Name: 5e797436c3defd2d863ac1ffab11c48dbd42588e
Time: 2018-02-25
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_conv2d


Project Name: OpenMined/PySyft
Commit Name: 4de851e5f21bbebd109cec91a03bb386b7a5e85c
Time: 2021-03-23
Author: chirag.codes@gmail.com
File Name: tests/syft/lib/python/collections/ordered_dict/ordered_dict_sanity_test.py
Class Name:
Method Name: test_update