Problem with dictionary of DataLoaders in training_step. #8978
-
I followed the steps from the documentation when it comes to returning a dictionary of DataLoaders. The problems occurs in the training_step method. I expect the batch parameter to be a dictionary, but in reality it is a string, the first key of the expected dictionary.
In training_step
I don't know if there is a problem with my collate_fn method. The batching was working all right when one single DataLoader was used. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's so funny how fast one can find the answer to his own question. The problem was related to the validation DataLoaders. I was trying to return a dictionary in a similar manner to the training_dataloader, but the validation loop works with a sequence of DataLoaders. There is a similar question answered here: #8623 |
Beta Was this translation helpful? Give feedback.
It's so funny how fast one can find the answer to his own question. The problem was related to the validation DataLoaders. I was trying to return a dictionary in a similar manner to the training_dataloader, but the validation loop works with a sequence of DataLoaders. There is a similar question answered here: #8623