|TensorFlow 1 version||View source on GitHub|
A tensor is a multidimensional array of elements represented by a
See Migration guide for more details.
tf.Tensor( op, value_index, dtype )
tf.Tensor object. All elements are of a single known data type.
When writing a TensorFlow program, the main object that is
manipulated and passed around is the
tf.Tensor has the following properties:
- a single data type (float32, int32, or string, for example)
- a shape
TensorFlow supports eager execution and graph execution. In eager execution, operations are evaluated immediately. In graph execution, a computational graph is constructed for later evaluation.
TensorFlow defaults to eager execution. In the example below, the matrix multiplication results are calculated immediately.