Dynamic Bernoulli distribution supports minibatches now