2016-11-16 58 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,你必须确保列表中的每个矩阵具有相同的形状。