W3cubDocs

/TensorFlow Python

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(...): Returns the given argument as a unicode string.

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

__cached__

__loader__

__spec__

bytes_or_text_types

complex_types

integral_types

real_types

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/compat