How can I print the numerical value of a theano TensorVariable? I'm new to theano, so please be patient :)
I have a function where I get y as a parameter.
Now I want to debug-print the shape of this y to the console.
Using
print y.shape
results in the console output (i was expecting numbers, i.e. (2,4,4)):
Shape.0
Or how can I print the numerical result of for example the following code (this counts how many values in y are bigger than half the maximum):
errorCount = T.sum(T.gt(T.abs_(y),T.max(y)/2.0))
errorCount should be a single number because T.sum sums up all the values.
But using
print errCount
gives me (expected something like 134):
Sum.0