def _do_after_cal_1(self, x, test): if self.noise: x = add_noise(x, test=test) if self.dropout: x = F.dropout(x, train=not test) return x