Minibatch when latent variable size depends on data dimension

Ah, thank you! I didn’t think of having a shared variable for the indices. :slight_smile: Will be trying this now.