def sample_prob(self,probs): return tf.nn.relu(tf.sign(probs - tf.random_uniform(probs.get_shape())))