a72a5b05d8edcde1e1bbb808ed26d5c858b112d5,gluon/models/dpn.py,,_test,#,587
Before Change
assert (model != dpn107 or weight_count == 86917800)
assert (model != dpn131 or weight_count == 79254504)
x = Variable(torch.randn(1, 3, 224, 224))
y = net(x)
assert (tuple(y.size()) == (1, 1000))
After Change
ctx = mx.cpu()
if not pretrained:
net.initialize(ctx=ctx)
net_params = net.collect_params()
weight_count = 0
for param in net_params.values():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: osmr/imgclsmob
Commit Name: a72a5b05d8edcde1e1bbb808ed26d5c858b112d5
Time: 2018-08-27
Author: osemery@gmail.com
File Name: gluon/models/dpn.py
Class Name:
Method Name: _test
Project Name: cornellius-gp/gpytorch
Commit Name: b61a525baee25d2ea31ab088540dd4d2ffed2251
Time: 2017-08-15
Author: gpleiss@gmail.com
File Name: test/kernels/rbf_kernel_test.py
Class Name:
Method Name: test_computes_radial_basis_function_gradient
Project Name: osmr/imgclsmob
Commit Name: 8cc023c568f2cdcdf5c34c5fa1b76090073bca73
Time: 2018-12-04
Author: osemery@gmail.com
File Name: gluon/gluoncv2/models/resattnet.py
Class Name:
Method Name: _test