Sigmoid function in Tensorflow tutorial