A new TensorFlow op that calculates sampled softmax loss with dynamic number of true classes per training instance.