print (theano.config.floatX) doesnt work.
my .theanorc is as below:
[global]
floatX = float32
device = gpu0
[nvcc]
fastmath = True
Found the solution at :Python won't find variable in module
You have to go to the Python interpreter settings in Eclipse preferences and add theano.configdefaults to the list of built-ins