Man I made a whole lot of changes today. This was a siamese architecture 
and I just wanted a scalar score of comparison at the end. Having no 
trouble with it so far. With respect to input what I mainly did was 
reshaping it to 4d at the start itself and reuse the variable

The current code:
http://pastebin.com/mumczScn

On Thursday, 8 September 2016 01:18:01 UTC+5:30, nouiz wrote:
>
> I'm still not sure you are computing what you have in mind. See Theano 
> tutorial on how to print theano graph.
>
> On Wed, Sep 7, 2016 at 3:40 PM, Ganesh Iyer <[email protected] 
> <javascript:>> wrote:
>
>> Ya reshaping the same variable worked somehow. 
>>
>> Thanks Anyways :)
>>
>> On Thu, Sep 8, 2016 at 12:29 AM, Frédéric Bastien <[email protected] 
>> <javascript:>> wrote:
>>
>>> When you call theano.funciton, the inputs you give should correspond to 
>>> the inputs when you call.
>>>
>>> You have a problem in your code in the part that build the multiple 
>>> layers. You define input_left as a matrix, but later you override it to be 
>>> a 4d tensor at line 295. This also make that your compiled function don't 
>>> have multiple layers...
>>>
>>> You must keep the original matrix variable and not override it.
>>>
>>> Fred
>>>
>>> On Wed, Sep 7, 2016 at 2:22 AM, Ganesh Iyer <[email protected] 
>>> <javascript:>> wrote:
>>>
>>>> Okay so I figured a workaround. But just wanted to know if I'm using 
>>>> dmatrices why should it expect a 4 dimensional input.
>>>>
>>>> --
>>>>
>>>> ---
>>>> 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] <javascript:>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> -- 
>>>
>>> --- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "theano-users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/theano-users/eOFITlIDUOI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

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