Hello,
I am starting with theano and for the life of me, I can't figure out how to
define a simple TensorVariable whose eval method returns a constant. theano
itself defines such variables, for instance
> E = T.eye(2)
> type(E)
theano.tensor.var.TensorVariable
> E.eval()
array([[ 1., 0.],
[ 0., 1.]])
So, what is theano doing under the hood here? how do I assign a constant value
to a dscalar x?
> x = T.dscalar('x')
> type(x)
theano.tensor.var.TensorVariable
Also, if someone knows of a reference that answers these basic questions that
are not answered in the docs, I would be grateful.
daniel
--
---
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.