b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,,check_single_tensor_operation,#Any#Any#Any#,43

Before Change


        z_list += [z]

    for (z1, z2) in zip(z_list[1:], z_list[:-1]):
        assert z1.shape == z2.shape
        assert_allclose(z1, z2, atol=1e-05)


def check_two_tensor_operation(function_name, x_input_shape,

After Change



def check_single_tensor_operation(function_name, x_shape_or_val, backend_list, **kwargs):
    shape_or_val = kwargs.pop("shape_or_val", True)
    assert_value_equality = kwargs.pop("assert_value_equality", True)
    assert_value_with_ref = kwargs.pop("assert_value_with_ref", None)
    cntk_dynamicity = kwargs.pop("cntk_dynamicity", False)

    if shape_or_val:
        x_shape, x_val = parse_shape_or_val(x_shape_or_val)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

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_single_tensor_operation


Project Name: polyaxon/polyaxon
Commit Name: f67e0f54ef3b6b253d29bf8a86c20944ec6bd7b5
Time: 2019-09-22
Author: contact@polyaxon.com
File Name: tests/test_ops/test_operations.py
Class Name: TestOperationsConfigs
Method Name: test_param_validation_with_inputs


Project Name: fgnt/pb_bss
Commit Name: ebdd901de9615320086e5de3a0a08fe1a6094a1e
Time: 2019-08-05
Author: heitkaemper@nt.upb.de
File Name: paderbox/speech_enhancement/beamformer.py
Class Name:
Method Name: get_bf_vector


Project Name: polyaxon/polyaxon
Commit Name: f67e0f54ef3b6b253d29bf8a86c20944ec6bd7b5
Time: 2019-09-22
Author: contact@polyaxon.com
File Name: tests/test_ops/test_operations.py
Class Name: TestOperationsConfigs
Method Name: test_param_validation_with_outputs


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_single_tensor_operation


Project Name: polyaxon/polyaxon
Commit Name: 6b7350efb16271e02060f8ee0779c6d58a5f39ff
Time: 2018-06-21
Author: mouradmourafiq@gmail.com
File Name: tests/test_experiment_groups/test_serializers.py
Class Name: TestExperimentGroupSerializer
Method Name: test_serialize_one