GradientDescent get a wrong gradient value according to the gradient formula, which is caused by the miniBatchSize parameter.