Support batch size of 0.
0.1.1