Skip to content

Commit

Permalink
add drop_last in mnist eager example
Browse files Browse the repository at this point in the history
  • Loading branch information
brucekimrokcmu committed Oct 14, 2023
1 parent 3e35a39 commit 347a561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/eager_mlp/mlp_eager_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_train_loader(self):

def get_test_loader(self):
return DataLoader(
dataset=self.mnist_testset, batch_size=self.batch_size, shuffle=False
dataset=self.mnist_testset, batch_size=self.batch_size, shuffle=False, drop_last=True,
)


Expand Down Expand Up @@ -70,7 +70,7 @@ def infer_iteration(model, images):
def infer():
# Example Parameters
config = {
"batch_size": 100,
"batch_size": 64,
"learning_rate": 0.001,
"num_epochs": 10,
}
Expand Down

0 comments on commit 347a561

Please sign in to comment.