MaxPooling seems be overwrited at Python side, it can not works when transfered to a scripted module.