98465b85d020f1326bcef7632f1261a9a7a84e92,keras/legacy/interfaces.py,,conv3d_args_preprocessor,#Any#Any#,376

Before Change


    if len(args) > 5:
        raise TypeError("Layer can receive at most 4 positional arguments.")
    if len(args) == 5:
        if isinstance(args[2], int) and isinstance(args[3], int) and isinstance(args[4], int):
            kernel_size = (args[2], args[3], args[4])
            args = [args[0], args[1], kernel_size]
            converted.append(("kernel_size", "kernel_dim*"))

After Change


            args = [args[0], args[1], kernel_size]
            converted.append(("kernel_size", "kernel_dim*"))
    elif len(args) == 3:
        if all([x in kwargs for x in ["kernel_dim2", "kernel_dim3"]]):
            kernel_size = (args[2],
                           kwargs.pop("kernel_dim2"),
                           kwargs.pop("kernel_dim3"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: 98465b85d020f1326bcef7632f1261a9a7a84e92
Time: 2018-09-23
Author: me@taehoonlee.com
File Name: keras/legacy/interfaces.py
Class Name:
Method Name: conv3d_args_preprocessor


Project Name: microsoft/nni
Commit Name: 17be7967d6905c3d370c5e42eff58e8aad1e8ad9
Time: 2019-06-21
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/gp_tuner/target_space.py
Class Name: TargetSpace
Method Name: array_to_params


Project Name: google/deepvariant
Commit Name: 9423dc741a1da8ffbee5d9b7ae6a49d00d3ed151
Time: 2019-06-13
Author: sidharthgoel@google.com
File Name: deepvariant/vcf_stats.py
Class Name:
Method Name: _get_variant_type