It's ususally assumed that you calculated sigm(X) in the forward pass and you reuse that result here