Module: tf.compat

Defined in tensorflow/tools/api/generator/api/compat/__init__.py.

Imports for Python API.

This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script.

Functions

as_bytes(...): Converts either bytes or unicode to bytes, using utf-8 encoding for text.

as_str(...): Converts either bytes or unicode to bytes, using utf-8 encoding for text.

as_str_any(...): Converts to str as str(value), but use as_str for bytes.

as_text(...): Returns the given argument as a unicode string.

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

Other Members

bytes_or_text_types

complex_types

integral_types

real_types