tf.strings.length

tf.strings.length(
    input,
    name=None
)

Defined in generated file: tensorflow/python/ops/gen_string_ops.py.

String lengths of input.

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

Args:

  • input: A Tensor of type string. The string for which to compute the length.
  • name: A name for the operation (optional).

Returns:

A Tensor of type int32.