Computational graph

TensorFlow is based on building a computational graph. A computational graph is a network of nodes, where each node defines an operation running a function; this can be as plain as addition or subtraction, or as complicated as a multivariate equation. TensorFlow programs are structured in a construction phase that assembles a graph and an execution phase that utilizes a session object to execute operations in the graph.

An operation is referred to as the op and can return zero or more tensors, which can be used later in the graph. Each op can be given a constant, array, or n-dimensional matrix. 

Get Neural Network Programming with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.