Merge pull request #31 from williamFalcon/examples

fixed drop prob import
This commit is contained in:
William Falcon 2019-08-03 22:03:13 -05:00 committed by GitHub
commit ea7c8e55d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -224,6 +224,7 @@ class LightningTemplateModel(LightningModule):
parser.add_argument('--in_features', default=28*28, type=int)
parser.add_argument('--out_features', default=10, type=int)
parser.add_argument('--hidden_dim', default=50000, type=int) # use 500 for CPU, 50000 for GPU to see speed difference
parser.opt_list('--drop_prob', default=0.2, options=[0.2, 0.5], type=float, tunable=False)
# data
parser.add_argument('--data_root', default=os.path.join(root_dir, 'mnist'), type=str)