You'll need to either run:
from theano.tensor import scalar
first, or
import theano.tensor as T
x = T.scalar()

If you're looking at this page:
http://deeplearning.net/software/theano/library/tensor/basic.html
I think there is an implicit
from theano.tensor import *
at the beginning.



On Monday, January 23, 2017 at 12:54:42 PM UTC-8, Pradeep A. Joglekar wrote:
>
>  When I type x =scalar('myvar', dtype='int32'), I get error name scalar is 
> not defined. How to proceed?
> Thanks,
> Pradeep
>

-- 

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