I have ndarray like :
diag = [] diag.append(np.diag([1,1,0])) diag.append(np.diag([0,1,1])) diag [array([[1, 0, 0], [0, 1, 0], [0, 0, 0]]), array([[0, 0, 0], [0, 1, 0], [0, 0, 1]])]
How can I convert it into Theano tensor variable of type float 64, matrix ? As I need to perform dot operation like
Theano.dot(diag, X) where X is shared variable of type float 64, matrix.