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

Before Change


                  optimizer=Adadelta(),
                  metrics=["accuracy"])
    a2, b2 = conv_to_wider_layer(a, b, 5)
    model2 = Sequential([a2, b2])
    model2.compile(loss=categorical_crossentropy,
                   optimizer=Adadelta(),
                   metrics=["accuracy"])
    random_input = np.random.rand(1, 28, 28, 1)

After Change


    temp_tensor = Activation("relu")(temp_tensor)
    temp_tensor = new_conv2(temp_tensor)
    temp_tensor = copy_layer(model.layers[5])(temp_tensor)
    temp_tensor = Activation("relu")(temp_tensor)
    model2 = Model(inputs=new_input, outputs=temp_tensor)

    random_input = get_conv_data()
    output1 = model.predict_on_batch(random_input)
    output2 = model2.predict_on_batch(random_input)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

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: tensorlayer/tensorlayer
Commit Name: 3e4f01c870033ebb65f6f687479dfd1eb7df5b30
Time: 2019-06-04
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_TRPO.py
Class Name:
Method Name: mlp_gaussian_policy


Project Name: NTMC-Community/MatchZoo
Commit Name: 478d2f388dc65736b5d67f3560328904210ef1a1
Time: 2018-12-01
Author: i@uduse.com
File Name: matchzoo/models/arci_model.py
Class Name: ArcIModel
Method Name: build


Project Name: tensorlayer/tensorlayer
Commit Name: 3e4f01c870033ebb65f6f687479dfd1eb7df5b30
Time: 2019-06-04
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_TRPO.py
Class Name:
Method Name: mlp_categorical_policy