fit bounds of inplace minibatch