tensorflow報錯:Shape must be rank 2 but is rank 3 for 'MatMul' (op: 'MatMul')

tensorflow矩陣相乘,秩不一樣報錯 在tensorflow中寫了這樣一句:python [python] view plain copy print ? y_out = tf.matmul(outputs, W)   y_out = tf.matmul(outputs, W) 其中,outputs的shape爲[16,336,400],W的shape爲[400,1] 出現如下報錯:web
相關文章
相關標籤/搜索