Closed arvoelke closed 4 years ago
In general it is expected that the minibatch size of the data has to match the minibatch size specified when creating the Simulator. It'd be good to allow flexible batch size (it's a planned future feature), but not anything that is implemented at the moment. We could fake it by zero-padding the data as a short-term fix, but then you're not really getting the benefits of running with a smaller batch size (in terms of performance).
That's definitely a bug in the error message though.
Related to #121.
Minimal reproducer:
Stack trace:
Expected behaviour: I expected this to be okay, as it may not be that uncommon to want to evaluate some subset of the data (e.g., test data) that is smaller than the minibatch size. The error is also a little confusing because the sample size isn't 0 (it is 1).