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)

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: BindsNET/bindsnet
Commit Name: 79eeaa6c61fdd6a5733d54e0318117637154cf80
Time: 2018-04-05
Author: hqkhan@umass.edu
File Name: bindsnet/analysis/vsualization.py
Class Name:
Method Name: main