2016-11-16 57 views
3

我有一列theano矩陣(用於神經網絡實現)。我需要對相應的元素進行元素明智的總和。Theano - theano矩陣列表的明智總和計算

例如輸入:x1 = [<TensorType(float64, matrix)>, <TensorType(float64, matrix)> , <TensorType(float64, matrix)>]

Output : <TensorType(float64, matrix)> -> which is the element wise sum of the 3 matrices. 

看着幾個職位,但無法弄清楚如何繼續。請指教。提前致謝。

回答

0

你可以使用掃描函數在theano,你必須確保列表中的每個矩陣具有相同的形狀。