Skip to content

Commit

Permalink
mnist test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai committed Feb 28, 2024
1 parent e493f69 commit 03f9a62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_train_mp_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,16 @@ def test_loop_fn(loader):
correct = 0
model.eval()
interator_local = 0

print("loader: ", loader)
print("type loader: ", type(loader))

loop_length = loader.__len__
test_dataset = enumerate(loader)

print("test_dataset: ", test_dataset)
print("type test_dataset: ", type(test_dataset))

for data, target in loader:
interator_local = interator_local + 1
print("test_loop_fn for loop: ", interator_local)
Expand Down

0 comments on commit 03f9a62

Please sign in to comment.