• Computes the dot product of two matrices and/or vectors, t1 and 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();

    Parameters

    Returns Tensor

    Doc

Generated using TypeDoc