Skip to content
Discussion options

You must be logged in to vote

Predict takes a dataloader, not a tensor. It still "works" because the trainer just iterates through the batch dimension, but then you get an error later because the input lost the batch dimension, and batch norm doesn't work with batch size 1.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@awaelchli
Comment options

@dsantiago
Comment options

Answer selected by carmocca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment