Discussion:
NotImplementedError: In() instances and tuple inputs trigger the old semantics...
Tariq Daouda
2014-06-09 21:10:24 UTC
Permalink
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 theano-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Olivier Delalleau
2014-06-09 22:22:02 UTC
Permalink
What are x, y and self.cost?

-=- Olivier
Post by Tariq Daouda
Hello,
Does anyone know what this error means?
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.
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 theano-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Frédéric Bastien
2014-06-09 23:55:52 UTC
Permalink
Hi,

this mean you are mixing the old interface and the new. You are wrapping
theano inputs in In object. Just remove that wrapping and it will work.

Fred


On Mon, Jun 9, 2014 at 6:22 PM, Olivier Delalleau <
Post by Olivier Delalleau
What are x, y and self.cost?
-=- Olivier
Hello,
Does anyone know what this error means?
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
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
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 theano-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Varun Gupta
2017-02-24 19:10:52 UTC
Permalink
could you please explain how to do this ?
Post by Frédéric Bastien
Hi,
this mean you are mixing the old interface and the new. You are wrapping
theano inputs in In object. Just remove that wrapping and it will work.
Fred
Post by Olivier Delalleau
What are x, y and self.cost?
-=- Olivier
Hello,
Does anyone know what this error means?
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
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
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Anonymus
2016-03-25 21:55:37 UTC
Permalink
How did you solve this error ? What unwrapping is required ?
Post by Tariq Daouda
Hello,
Does anyone know what this error means?
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Frédéric Bastien
2016-03-26 02:04:24 UTC
Permalink
Update to Theano 0.8.

Fred
Post by Anonymus
How did you solve this error ? What unwrapping is required ?
Post by Tariq Daouda
Hello,
Does anyone know what this error means?
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
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Frédéric Bastien
2017-02-24 20:43:04 UTC
Permalink
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
Post by Tariq Daouda
Hello,
Does anyone know what this error means?
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
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Francesco Ciompi
2017-07-19 14:36:47 UTC
Permalink
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
Post by Frédéric Bastien
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
Post by Tariq Daouda
Hello,
Does anyone know what this error means?
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
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...