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.Â