Functions for Python 2 vs. 3 compatibility.

Conversion routines

In addition to the functions below, as_str converts an object to a str.

Types

The compatibility module also provides the following types:

  • bytes_or_text_types
  • complex_types
  • integral_types
  • real_types

Modules

v1 module: Bring in all of the public TensorFlow interface into this module.

v2 module: Bring in all of the public TensorFlow interface into this module.

Functions

Other Members

  • bytes_or_text_types
  • complex_types
  • integral_types
  • real_types