Module: tf.compat | TensorFlow v2.16.1 (original) (raw)
Module: tf.compat
Stay organized with collections Save and categorize content based on your preferences.
Public API for tf._api.v2.compat namespace
Modules
v1 module: Bring in all of the public TensorFlow interface into this module.
Functions
as_bytes(...): Converts bytearray
, bytes
, or unicode python input types to bytes
.
as_str_any(...): Converts input to str
type.
as_text(...): Converts any string-like python input types to unicode.
dimension_at_index(...): Compatibility utility required to allow for both V1 and V2 behavior in TF.
dimension_value(...): Compatibility utility required to allow for both V1 and V2 behavior in TF.
forward_compatibility_horizon(...): Context manager for testing forward compatibility of generated graphs.
forward_compatible(...): Return true if the forward compatibility window has expired.
path_to_str(...): Converts input which is a PathLike
object to str
type.
Other Members | |
---|---|
bytes_or_text_types | (<class 'bytes'>, <class 'str'>) |
complex_types | (<class 'numbers.Complex'>, <class 'numpy.number'>) |
integral_types | (<class 'numbers.Integral'>, <class 'numpy.integer'>) |
real_types | (<class 'numbers.Real'>, <class 'numpy.integer'>, <class 'numpy.floating'>) |