Skip to content

Commit

Permalink
automatically import models.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaofo committed Apr 11, 2021
1 parent 5d1e4e6 commit 499e065
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions hubconf.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
dependencies = ['torch']

from pytorch_cifar_models import cifar10_resnet20
from pytorch_cifar_models import cifar10_resnet32
from pytorch_cifar_models import cifar10_resnet44
from pytorch_cifar_models import cifar10_resnet56
import pytorch_cifar_models

from pytorch_cifar_models import cifar100_resnet20
from pytorch_cifar_models import cifar100_resnet32
from pytorch_cifar_models import cifar100_resnet44
from pytorch_cifar_models import cifar100_resnet56

from pytorch_cifar_models import cifar10_vgg11_bn
from pytorch_cifar_models import cifar10_vgg13_bn
from pytorch_cifar_models import cifar10_vgg16_bn
from pytorch_cifar_models import cifar10_vgg19_bn
dependencies = ['torch']

from pytorch_cifar_models import cifar100_vgg11_bn
from pytorch_cifar_models import cifar100_vgg13_bn
from pytorch_cifar_models import cifar100_vgg16_bn
from pytorch_cifar_models import cifar100_vgg19_bn
models = filter(lambda name: name.startswith("cifar"), dir(pytorch_cifar_models))
globals().update({model: getattr(pytorch_cifar_models, model) for model in models})

0 comments on commit 499e065

Please sign in to comment.