Skip to content

Commit de49c27

Browse files
committed
New
1 parent 48f4a95 commit de49c27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/train.py

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def fast_hist(a, b, n):
9292

9393

9494
def main():
95+
# 加载数据
96+
97+
9598
# 使用drop_last让Batch能够整除
9699
train_loader = torch.utils.data.DataLoader(train_data, batch_size=16, drop_last=True)
97100
test_loader = torch.utils.data.DataLoader(test_data, batch_size=16, drop_last=True)

0 commit comments

Comments
 (0)