21994919156aac15558f77555538346fb702bcbc,tests/nn/test_graph.py,,test_long_transform,#,202

Before Change



def test_long_transform():
    graph = CnnGenerator(10, (32, 32, 3)).generate()
    history = [("to_wider_model", 1, 256), ("to_conv_deeper_model", 1, 3),
               ("to_concat_skip_model", 5, 9)]
    for args in history:
        getattr(graph, args[0])(*list(args[1:]))
        graph.produce_model()
    assert legal_graph(graph)


def test_node_consistency():

After Change


    graph.to_deeper_model(16, StubReLU())
    graph.to_add_skip_model(13, 47)
    model = graph.produce_model()
    model(torch.Tensor(np.random.random((10, 1, 28, 28))))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 21994919156aac15558f77555538346fb702bcbc
Time: 2018-11-26
Author: jhfjhfj1@gmail.com
File Name: tests/nn/test_graph.py
Class Name:
Method Name: test_long_transform


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: fdfbd05f6a3e9b5bb1d73302180b4ecf260ff3d2
Time: 2017-11-17
Author: max.lapan@gmail.com
File Name: ch08/run_model.py
Class Name:
Method Name: