i was trying to simply compute the dot product of two matrices using theano.
my code is very simple.


import theano
import theano.tensor as T
import numpy as np
from theano import function

def covarience(array):

    input_array=T.matrix('input_array')
    deviation_matrix = T.matrix('deviation_matrix')
    matrix_filled_with_1s=T.matrix('matrix_filled_with_1s')
    z = T.dot(input_array, matrix_filled_with_1s)


    identity=np.ones((len(array),len(array)))

    f=function([array,identity],z)
    # print(f)


covarience(np.array([[2,4],[6,8]]))




but the problem is each time i run this code , i get error message like 
"TypeError: Unknown parameter type: <class 'numpy.ndarray'>"

i am kind of lost here. can anyone tell me whats wrong with my code ?. Any 
kind of help from any one of you would be highly appreciated. 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to