Continuous batching from first principles

Sources