Hi all,

I have 2 tensor4 tensors of different shape:
x:(1,b,c,d)
y:(a,b,c,d) with a!=1.

How can I do the following in a theano function?
z=sum(x*y)

I tried the following:
var1=T.tensor4('var1')
var2=T.tensor4('var2')
z=var1*var2
f=theano.function([var1, var2], z)
f(x,y)

but I get a Elemwise error due to the different shapes.

Thank you!
Antonis

-- 

--- 
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