C5W4A1 Why attention formula in a transformer assignment formula (4) in the assignment means to use matmul instead of dot product? Isn’t matmul usually indicated by * and without it means dot product?
No, both tf.matmul
and np.matmul
are dot product style multiply.
2 Likes
Np.multiply is element-wise, and equivalent to *.
Oh, I got it. I thought matmul is element-wise multiplication. Thanks!