https://www.tensorflow.org/api_docs/python/tf/edit_distance
tf.edit_distance | TensorFlow Core r1.14 | TensorFlow
Computes the Levenshtein distance between sequences. Aliases: tf.compat.v1.edit_distance tf.compat.v2.edit_distance tf.edit_distance( hypothesis, truth, normalize=True, name='edit_distance' ) This operation takes variable-length sequences (hypothesis and t
www.tensorflow.org