F.interpolate should not throw this error, as it’s underlying operations are independent regarding the batch size.
Could you check your model for batchnorm layers?
If you don’t find anything suspicious, could you post a code snippet to reproduce this error?