Posterior sample from an approximation with Minibatches?

You are right. Using set_value is not the right way to do. In this case please try using more_replacement and sample_node (more details here: doc), there is also more information in the Minibatch docstring.