Yes, different batch sizes should be directly usable, as I tried to avoid fixed batch sizes (or other dimensions).
Currently, of course idx is fixed as well as its last dimension, but I understand that that’s exactly the use case.
Let me know, if you encounter any issues using this code with other shapes.