Missed TensorFlow World? Check out the recap. Learn more

tf.compat.v2.strings.length

View source on GitHub
tf.compat.v2.strings.length(
    input,
    unit='BYTE',
    name=None
)