76b07a3212541102e66f4aa91335c68fac8ef00b,tests/test_net_transformer.py,,test_default_transform,#,48

Before Change




def test_default_transform():
    graphs = default_transform(DefaultClassifierGenerator(10, (28, 28, 1)).generate())
    // print()
    // for index, layer in enumerate(graphs[0].layer_list):
    //     print(index, layer)
    graphs[0].produce_model()
    assert len(graphs) == 1
    assert len(graphs[0].layer_list) == 42

After Change




def test_default_transform():
    graphs = default_transform(DefaultClassifierGenerator(10, (32, 32, 3)).generate())
    model = graphs[0].produce_model()
    model(torch.Tensor(get_conv_data()))
    assert len(graphs) == 1
    assert len(graphs[0].layer_list) == 42
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 76b07a3212541102e66f4aa91335c68fac8ef00b
Time: 2018-08-01
Author: jin@tamu.edu
File Name: tests/test_net_transformer.py
Class Name:
Method Name: test_default_transform


Project Name: keras-team/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