Computes the outer product of two vectors, v1 and v2.
v1
v2
const a = tf.tensor1d([1, 2, 3]);const b = tf.tensor1d([3, 4, 5]);tf.outerProduct(a, b).print(); Copy
const a = tf.tensor1d([1, 2, 3]);const b = tf.tensor1d([3, 4, 5]);tf.outerProduct(a, b).print();
The first vector in the outer product operation.
The second vector in the outer product operation.
Generated using TypeDoc
Computes the outer product of two vectors,
v1
andv2
.