Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added test/expect/ModelTester.test_alexnet_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_densenet121_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_densenet161_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_densenet169_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_densenet201_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_googlenet_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_inception_v3_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_mnasnet0_5_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_mnasnet0_75_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_mnasnet1_0_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_mnasnet1_3_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_mobilenet_v2_expect.pkl
Binary file not shown.
Binary file not shown.
Binary file added test/expect/ModelTester.test_resnet101_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_resnet152_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_resnet18_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_resnet34_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_resnet50_expect.pkl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg11_bn_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg11_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg13_bn_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg13_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg16_bn_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg16_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg19_bn_expect.pkl
Binary file not shown.
Binary file added test/expect/ModelTester.test_vgg19_expect.pkl
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ def check_script(self, model, name):
def _test_classification_model(self, name, input_shape):
# passing num_class equal to a number other than 1000 helps in making the test
# more enforcing in nature
set_rng_seed(0)
model = models.__dict__[name](num_classes=50)
self.check_script(model, name)
model.eval()
x = torch.rand(input_shape)
out = model(x)
self.assertExpected(out, rtol=1e-2, atol=0.)
self.assertEqual(out.shape[-1], 50)

def _test_segmentation_model(self, name):
Expand Down