|TensorFlow 1 version||View source on GitHub|
A TensorFlow computation, represented as a dataflow graph.
Compat aliases for migration
See Migration guide for more details.
Used in the notebooks
|Used in the guide||Used in the tutorials|
Graphs are used by
tf.functions to represent the function's computations.
Each graph contains a set of
tf.Operation objects, which represent units of
tf.Tensor objects, which represent the units of data that
flow between operations.
Using graphs directly (deprecated)
tf.Graph can be constructed and used directly without a
was required in TensorFlow 1, but this is deprecated and it is recommended to
tf.function instead. If a graph is directly used, other deprecated
TensorFlow 1 clas