def _do_before_cal(self, x): if self.nn == 'up_unpooling': x = F.unpooling_2d(x, 2, 2, 0, cover_all=False) return x