Created
April 21, 2019 14:44
-
-
Save budui/07d7796d7d8c8c3e30b759892ef32864 to your computer and use it in GitHub Desktop.
Use `string` param to switch model to load.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import models | |
model = getattr(models, 'AlexNet')() | |
# same as: | |
# model = models.AlexNet() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment