maxpooling accepts gradoutput which is not contiguous