Apply to speak at TensorFlow World. Deadline April 23rd. Propose talk

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.