Article / Updated 06-19-2018
Machine learning applications store a great deal of data in vectors (one-dimensional tensors) and matrices (two-dimensional tensors). To process this data, TensorFlow provides many functions that operate on vectors and matrices. The following table lists these functions and provides a description of each.Vector and Matrix Operations
Function
Description
tensordot(a, b, axes, name=None)
Returns the sum of products for the elements in the given axes
cross(a, b, name=None)
Returns the element-wise cross product
diag(diagonal, name=None)
Returns a matrix with the given diagonal values, other values set to zero
trace(x, name=None)
Returns the sum of the diagonal elements
transpose(x, perm=None,name='transpose')
Switches rows and columns
eye(num_rows, num_columns=None,batch_shape=None,dtype=tf.