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


    if len(args) > 5:
        raise TypeError("Layer can receive at most 4 positional arguments.")
    if len(args) == 5:
        if all([isinstance(x, int) for x in args[2:5]]):
            kernel_size = (args[2], args[3], args[4])
            args = [args[0], args[1], kernel_size]
            converted.append(("kernel_size", "kernel_dim*"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: chainer/chainercv
Commit Name: 7b2d2148f2628d5b7f186bfbed5ce498c753fe7f
Time: 2017-06-15
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16Layers
Method Name: __init__