53ec990d54130dd0a457dd235c93d39de32d571d,tests/keras/applications/applications_test.py,,test_nasnet_no_top,#,363

Before Change


    model = applications.NASNetMobile(weights=None, include_top=False)
    assert model.output_shape == (None, None, None, 1056)

    model = applications.NASNetLarge(weights=None, include_top=False)
    assert model.output_shape == (None, None, None, 4032)


@keras_test

After Change


@pytest.mark.skipif((K.backend() != "tensorflow"),
                    reason="NASNets are supported only on TensorFlow")
def test_nasnet_no_top():
    random.seed(time.time())
    fun, dim = random.choice(NASNET_LIST)
    model = fun(weights=None, include_top=False)
    assert model.output_shape == (None, None, None, dim)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: keras-team/keras
Commit Name: 53ec990d54130dd0a457dd235c93d39de32d571d
Time: 2018-01-15
Author: me@taehoonlee.com
File Name: tests/keras/applications/applications_test.py
Class Name:
Method Name: test_nasnet_no_top


Project Name: keras-team/keras
Commit Name: 53ec990d54130dd0a457dd235c93d39de32d571d
Time: 2018-01-15
Author: me@taehoonlee.com
File Name: tests/keras/applications/applications_test.py
Class Name:
Method Name: test_nasnet_variable_input_channels


Project Name: keras-team/keras
Commit Name: 53ec990d54130dd0a457dd235c93d39de32d571d
Time: 2018-01-15
Author: me@taehoonlee.com
File Name: tests/keras/applications/applications_test.py
Class Name:
Method Name: test_nasnet_pooling