Computes the dot product of two matrices, A * B. These must be matrices.
const a = tf.tensor2d([1, 2], [1, 2]);const b = tf.tensor2d([1, 2, 3, 4], [2, 2]);a.matMul(b).print(); // or tf.matMul(a, b) Copy
const a = tf.tensor2d([1, 2], [1, 2]);const b = tf.tensor2d([1, 2, 3, 4], [2, 2]);a.matMul(b).print(); // or tf.matMul(a, b)
First matrix in dot product operation.
Second matrix in dot product operation.
Optional
If true, a is transposed before multiplication.
a
If true, b is transposed before multiplication.
b
Computes the dot product of two matrices, A * B. These must be matrices.