Computes the dot product of two matrices and/or vectors, t1 and t2.
t1
t2
const a = tf.tensor1d([1, 2]);const b = tf.tensor2d([[1, 2], [3, 4]]);const c = tf.tensor2d([[1, 2, 3], [4, 5, 6]]);a.dot(b).print(); // or tf.dot(a, b)b.dot(a).print();b.dot(c).print(); Copy
const a = tf.tensor1d([1, 2]);const b = tf.tensor2d([[1, 2], [3, 4]]);const c = tf.tensor2d([[1, 2, 3], [4, 5, 6]]);a.dot(b).print(); // or tf.dot(a, b)b.dot(a).print();b.dot(c).print();
The first tensor in the dot operation.
The second tensor in the dot operation.
Generated using TypeDoc
Computes the dot product of two matrices and/or vectors,
t1
andt2
.