The meaning of batch size is loading [batch size] training data in one iteration. If your batch size is 100 then you should be getting 100 data at one iteration. batch size doesnt equal to no. of iteration unless there is a coincidence. well looking at the code i cant find the problem check the batch size once if the iteration is 100 then the batch size should be 600…make sure you arent confusing 100 with the epoch, the only variable i see that can produce 100 is epoch.