tf.linalg.cross

Compute the pairwise cross product.

tf.linalg.cross(
    a, b, name=None
)

a and b must be the same shape; they can either be simple 3-element vectors, or any shape where the innermost dimension is 3. In the latter case, each pair of corresponding 3-element vectors is cross-multiplied independently.

Args:

Returns:

A Tensor. Has the same type as a.