Setting and Using Max Batch Sizes