chrisjay commited on
Commit
90e82c9
1 Parent(s): 5bd1489

fixed issue in train bool

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -231,9 +231,9 @@ optimizer = optim.SGD(network.parameters(), lr=learning_rate,
231
  momentum=momentum)
232
 
233
 
234
- def train_and_test(train=True):
235
 
236
- if train:
237
  # Train for one epoch and test
238
  train_dataset = MNISTAdversarial_Dataset('./data_mnist',TRAIN_TRANSFORM)
239
 
 
231
  momentum=momentum)
232
 
233
 
234
+ def train_and_test(train_model=True):
235
 
236
+ if train_model:
237
  # Train for one epoch and test
238
  train_dataset = MNISTAdversarial_Dataset('./data_mnist',TRAIN_TRANSFORM)
239