tf.compat.as_str_any

Converts input to str type.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.compat.as_str_any

Uses str(value), except for bytes typed inputs, which are converted using as_str.

value A object that can be converted to str.

A str object.