I think you mean `(1 + tanh(p)) / 2`, but I don't know offhand that this is any faster. If it is, the change should be made in Theano.