0a80b9769115d291f15c244429793eda4cb8ecad,tests/test_layer_transformer.py,,test_conv_to_wider_layer,#,60

Before Change


               activation="relu",
               input_shape=(28, 28, 1),
               padding="same")
    b = Conv2D(30, kernel_size=(1, 1),
               activation="relu",
               padding="same")
    model = Sequential([a, b])
    model.compile(loss=categorical_crossentropy,
                  optimizer=Adadelta(),
                  metrics=["accuracy"])
    a2, b2 = conv_to_wider_layer(a, b, 5)

After Change


    conv1 = model.layers[1]
    conv2 = model.layers[4]
    bn1 = model.layers[2]
    new_conv1, [new_conv2], [new_bn1] = conv_to_wider_layer(conv1, [conv2], [bn1], 3)

    new_input = Input(shape=get_int_tuple(model.inputs[0].shape[1:]))
    temp_tensor = new_conv1(new_input)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: 0a80b9769115d291f15c244429793eda4cb8ecad
Time: 2017-12-28
Author: jhfjhfj1@gmail.com
File Name: tests/test_layer_transformer.py
Class Name:
Method Name: test_conv_to_wider_layer


Project Name: dmlc/gluon-cv
Commit Name: cf767a1297d67caf41577508aacc7cbc24ae8f14
Time: 2020-09-16
Author: 43100519+xdeng7@users.noreply.github.com
File Name: scripts/gan/stylegan/modules.py
Class Name: EqualConv2d
Method Name: __init__


Project Name: shenweichen/DeepCTR
Commit Name: b787cdf9d9d1c7f500f91ccdeb87aa6d7725ae14
Time: 2019-05-18
Author: wcshen1994@163.com
File Name: deepctr/layers/interaction.py
Class Name: FGCNNLayer
Method Name: call


Project Name: dmlc/gluon-cv
Commit Name: 2318052dc79966bf36675606b7d992a347418292
Time: 2019-01-07
Author: cheungchih@gmail.com
File Name: gluoncv/model_zoo/se_resnet.py
Class Name: SE_BasicBlockV2
Method Name: __init__