Hi,

I found this message while looking for a solution to this same error 
message.
I am using theano 0.9 and python 3.5.

The error I get is:

"In() instances and tuple inputs trigger the old "
NotImplementedError: In() instances and tuple inputs trigger the old 
semantics, which disallow using updates and givens

when trying to compile:

self.train_fn = theano.function([input_var, target_var], [loss, out], 
updates=updates)

where input_var is actually a Python list of 3 tensor variables of the same 
shape.

Could this be the reason for this error? Are lists supported as type of 
input variables?

Thanks,
Francesco



On Friday, February 24, 2017 at 9:43:17 PM UTC+1, nouiz wrote:
>
> What is the running code? Did you update theano as the last message 
> suggest? What is your Theano version?
>
> Make sure to use Theano 0.9beta1 or 0.9rc1. If the code come from the Deep 
> learning tutorial, update it. Old combination of DLT and Theano could give 
> this.
>
> Current Theano version don't raise this error anymore.
>
> Fred
>
> On Mon, Jun 9, 2014 at 5:10 PM Tariq Daouda <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>>
>> Does anyone know what this error means?
>>
>> Traceback (most recent call last):
>>   File "mlp.py", line 115, in <module>
>>     *nn.train([train_set_x[i]], [train_set_y[i]])*
>>   File "mlp.py", line 75, in train
>>     *return theano.function(inputs = [x, y], outputs = self.cost, 
>> updates = self.updates)*
>>   File 
>> "/u/daoudat/usr/lib/python2.6/site-packages/theano/compile/function.py", 
>> line 205, in function
>>     "In() instances and tuple inputs trigger the old "
>> *NotImplementedError: In() instances and tuple inputs trigger the old 
>> semantics, which disallow using updates and givens*
>>
>> Concerning the inputs, train_set_x[i] is a numpy array and train_set_y[i] 
>> is an integer.
>>
>> Cheers,
>>
>> Tariq Daouda
>>
>> -- 
>>
>> --- 
>> 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