tf.compat.path_to_str

tf.compat.path_to_str(path)

Defined in tensorflow/python/util/compat.py.

Returns the file system path representation of a PathLike object, else as it is.

Args:

  • path: An object that can be converted to path representation.

Returns:

A str object.