Why do you set acc_dtype in that position? This can break existing code that expect keepdims in that position. As NumPy don't have this parameter, it is better to put it after keepdims I think.

Similar for all other place of this new param.