That isn't a normal way to use theano. Have you read about creating theano 
functions with "updates" dictionaries?

There are simple examples here:
http://deeplearning.net/software/theano/tutorial/examples.html#using-shared-variables

On Sunday, May 14, 2017 at 3:05:01 AM UTC-7, Mohamed Akrout wrote:
>
> Hi,
>
> I am new to Theano. My problematic code is the following:
>
> z0 = float32(random.randn(1, 1))
> z = shared(z0)
>
> x0 = float32(random.randn(N, 1))
> x = shared(x0)
>
> wo = shared(zeros((N, 1), dtype=float32))
>
> z.set_value(T.dot(wo.T , x)) # here is the problem
>
>
> This gives me the error: Expected an array-like object, but found a 
> Variable.
>
> I understand that z is a 1x1 numpy array and T.dot(wo.T , x) is a 1x1 
> vector but I did not succeed to find a way to assign the 1x1 vector to z.
>
> Do you have any idea to solve this problem?
>
> Thank you for your help!
>

-- 

--- 
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 theano-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to