That’s strange, as the last error points to a too small spatial size of your input.
I.e. if you are using convs and pooling layers, which decrease your spatial size, you might end up with an empty tensor at one point, which will raise the issue.