tf.keras.ops.outer

Compute the outer product of two vectors.

Given two vectors x1 and x2, the outer product is:

out[i, j] = x1[i] * x2[j]

x1 First input tensor.
x2 Second input tensor.

Outer product of x1 and x2.