Maxtrix size check; batchy_idx for maxout expand.