TensorFlow 2.0 Beta is available Learn more

tf.compat.v2.strings.length

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