Skip to content

Core graph data structures

class tf.Graph

A TensorFlow computation, represented as a dataflow graph.

A Graph contains a set of Operation objects, which represent units of computation; and Tensor objects, which represent the units of data that flow between operations.

class tf.Operation

Represents a graph node that performs computation on tensors.

class tf.Tensor