tf.compat.v1.strings.length

View source on GitHub

String lengths of input.

tf.compat.v1.strings.length(
    input, name=None, unit='BYTE'
)

Computes the length of each string given in the input tensor.

Args:

Returns:

A Tensor of type int32.