I want to cut a tensor of shape (None,) off at the position of it\'s smallest value. Apperently
cut = tf.math.argmin(x,axis = 0) x = tf.slice(x,[0],[cut])