Hi,
I did training with;
for epoch in range(EPOCH):
  for x, t in dataloader_train:

The dataloader_train includes input x with mini-batch size image and t as a scalar label. The code as above, I think same (x, t) is multiply loaded by EPOCH, so same sequence is repeated EPOCH times. If we use random sampling for each iteration for “epoch” then it is OK, I think, but such the above code is not appropriate code.
Is my thought a correct? And if it is so must I rewrite as follows?
for epoch in range(EPOCH):
  dataloader_train = load_randomly()
  for x, t in dataloader_train: