I need your help

hello, at start of story i’m starting on this wonderful world of pytorch and AI, i made my frist Neural Network (NN), and in the moment of the test she give that error

'bool' object is not iterable
  File "File_path(i just change to send that error, all the paths are ok)", line 36, in train
    for i, data in enumerate(dataloader):
  File "File_path(i just change to send that error, all the paths are ok)", line 11, in <module>
    model.eval()
TypeError: 'bool' object is not iterable```

Hi @jose_victor welcome to our forum, typically it’s easier for us to help debug if you can share a minimal repro. In your case the problem seems to be that the dataloader object is a boolean and indeed you cannot iterate over that. I’d double check how it was created

thanks guy, well, i know the dataloader who i use on test make this error, but to training the NN i create a dataloader that same form of the dataloader from test, and idk why the test dataloader to test make this error and the train not, why both are created of the same form