Skip to content

Commit

Permalink
Remove module names from arch list in Imagenet example (pytorch#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maratyszcza authored and soumith committed Jan 28, 2017
1 parent 9f125c1 commit 2cfe5e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imagenet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@


model_names = sorted(name for name in models.__dict__
if name.islower() and not name.startswith("__"))
if name.islower() and not name.startswith("__")
and callable(models.__dict__[name]))


parser = argparse.ArgumentParser(description='PyTorch ImageNet Training')
Expand Down

0 comments on commit 2cfe5e1

Please sign in to comment.