1
我不知道如何將這個問題放入標題。但是會在使用Tensorflow時顯示我需要幫助的示例。用矢量乘以矩陣(元素明智)Tensorflow
舉一個例子:
matrix_1 shape = [4,2]
matrix_2 shape = [4,1]
matrix_1 * matrix 2
[[1,2],
[3,4],
[5,6],
[7,8]]
*
[[0.1],
[0.2],
[0.3],
[0.4]]
= [[0.1,0.2],
[0.6,0.8],
[1.5,1.8],
[2.8,3.2]]
是否有任何的算法來實現這一目標?
謝謝
這是我從簡化的問題,例如獲得上述錯誤:
ValueError: Dimensions must be equal, but are 784 and 100 for 'mul_13' (op: 'Mul') with input shapes: [100,784], [100]