How to get the value of a Theano.tensor variable?

  python, tensor, theano

I have to do something like this:

import Theano.tensor as tt

a = 2
b = 3
c = tt.arctan2(a,b)

c has now as output Elemwise{arctan2,no_inplace}.0. How can I get the computed value of the function? Have already read here that I need to compile the Theano function, but didn’t really understood how… Can someone please help me?

Thanks in advance

Source: Python Questions

LEAVE A COMMENT