0
votes

Suppose I have two matrices each one with a shape of [20 256] and when I want to multiply them I use the following

tf.matmul(v1, v2, transpose_b=True) 

Now what if I have three matrices each with shape of [20 256] Can I multiply it as

tf.matmul(v1, v2, v3, transpose_b=True)
1

1 Answers

1
votes

I suppose you want to do an element-wise multiplication

tf.math.multiply(v3, tf.math.multiply(v1, v2))

Please check here