Update Theano to the dev version. If that don't fix it, give me the URL to
the script and the full error message.

Le 11 nov. 2016 03:58, <[email protected]> a écrit :

>
> I am running lasagne's mnist.py example on a nonGPU machine, cannot seem
> to go beyond the error below.
> Using a virtualenv python 2.7 and opencv3.1
>
> any pointers appreciated. thx
>
>
> File "/home/prasad/.virtualenvs/
> caffe24/local/lib/python2.7/site-packages/theano/tensor/elemwise.py",
> line 526, in __setstate__
>     self.scalar_op.nout)
> ValueError: ('The following error happened while compiling the node',
> DotModulo(A, s, m, A2, s2, m2), '\n', 'Cannot construct a ufunc with more
> than 32 operands (requested number were: inputs = 173 and outputs = 1)')
>
> ----------------trace---------------------------------------
>
> Loading data...
> Building model and compiling functions...
> Traceback (most recent call last):
>   File "mnist.py", line 362, in <module>
>     main(**kwargs)
>   File "mnist.py", line 259, in main
>     prediction = lasagne.layers.get_output(network)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/lasagne/layers/helper.py", line 185, in get_output
>     all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/lasagne/layers/noise.py", line 83, in get_output_for
>     dtype=theano.config.floatX)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/sandbox/rng_mrg.py", line 1289, in binomial
>     x = self.uniform(size=size, nstreams=nstreams)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/sandbox/rng_mrg.py", line 1250, in uniform
>     rstates = self.get_substream_rstates(nstreams, dtype)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/sandbox/rng_mrg.py", line 1153, in get_substream_rstates
>     multMatVect(rval[0], A1p72, M1, A2p72, M2)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/sandbox/rng_mrg.py", line 57, in multMatVect
>     [A_sym, s_sym, m_sym, A2_sym, s2_sym, m2_sym], o, profile=False)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/compile/function.py", line 316, in function
>     output_keys=output_keys)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/compile/pfunc.py", line 523, in pfunc
>     output_keys=output_keys)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/compile/function_module.py", line 1526, in orig_function
>     defaults)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/compile/function_module.py", line 1390, in create
>     input_storage=input_storage_lists)
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/link.py",
> line 607, in make_thunk
>     output_storage=output_storage)[:3]
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/vm.py",
> line 1025, in make_all
>     no_recycling))
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/op.py",
> line 807, in make_thunk
>     no_recycling)
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/op.py",
> line 733, in make_c_thunk
>     output_storage=node_output_storage)
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/cc.py",
> line 1065, in make_thunk
>     keep_lock=keep_lock)
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/cc.py",
> line 1007, in __compile__
>     keep_lock=keep_lock)
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/cc.py",
> line 1434, in cthunk_factory
>     module = get_module_cache().module_from_key(
>   File 
> "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-packages/theano/gof/cc.py",
> line 51, in get_module_cache
>     return cmodule.get_module_cache(config.compiledir,
> init_args=init_args)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/gof/cmodule.py", line 1419, in get_module_cache
>     _module_cache = ModuleCache(dirname, **init_args)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/gof/cmodule.py", line 620, in __init__
>     self.refresh()
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/gof/cmodule.py", line 728, in refresh
>     key_data = pickle.load(f)
>   File "/home/prasad/.virtualenvs/caffe24/local/lib/python2.7/site-
> packages/theano/tensor/elemwise.py", line 526, in __setstate__
>     self.scalar_op.nout)
> ValueError: ('The following error happened while compiling the node',
> DotModulo(A, s, m, A2, s2, m2), '\n', 'Cannot construct a ufunc with more
> than 32 operands (requested number were: inputs = 173 and outputs = 1)')
>
> --
>
> ---
> 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.
>

-- 

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