Skip to content

Commit

Permalink
Add resnet50 test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Mar 3, 2017
1 parent 136f1b4 commit 5b0967a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/keras/applications/applications_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@
from keras import backend as K


@keras_test
def test_resnet50():
model = applications.ResNet50(weights=None)
assert model.output_shape == (None, 1000)


@keras_test
def test_resnet50_notop():
model = applications.ResNet50(weights=None, include_top=False)
assert model.output_shape == (None, None, None, 2048)


@keras_test
def test_resnet50_pooling():
model = applications.ResNet50(weights=None,
include_top=False,
pooling='avg')
assert model.output_shape == (None, 2048)


@keras_test
def test_vgg16():
model = applications.VGG16(weights=None)
Expand Down

0 comments on commit 5b0967a

Please sign in to comment.