Thank you, it works, but the model was predicting at random, which shouldn’t be,
prediction = int(torch.max(output.data, 1)[0].cpu().numpy())

In the training module, dataloader was used, could this be the reason
Link to the training module