def forward(self, V, is_training): self.in_act = V V2 = V.cloneAndZero() V2.w = map(tanh, V.w) self.out_act = V2 return self.out_act