Try the following code, helped in my case:

import theano
theano.config.compute_test_value = "ignore"




On Thursday, 1 October 2015 16:11:33 UTC+10, Mohammad Nauman wrote:
>
> Hi, 
>
> I am new to Theano and just getting started but I can't seem to get the 
> MNIST dataset (mnist.pkl.gz) to work. I am getting the following error when 
> I try to train the model using the following:
>
> classifier = LogisticRegression(input=x, n_in=28 * 28, n_out=10)
>
> ValueError: Cannot compute test value: input 0 (Shape.0) of Op 
> Elemwise{Cast{int32}}(Shape.0) missing default value
>
> (I tried using the basic DeepLearningTutorials/code/logistic_sgd.py and 
> even with the keras library.) 
>
> theano.__version__ = '0.7.0.dev-RELEASE'
> numpy.__version__ = '1.9.2'
> python = '2.7.10'
>
>
>

-- 

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